zabbix regex trigger on multiple string values - zabbix

I have the following trigger the gist is I only want it to trigger when it's already a problem and when any of the expected values are not found.
Currently this is not working. Any suggestions?
({TRIGGER.VALUE}=1 and {Template_App_JAMS_Agent:app.jams.agent.state.regexp(Online|Connected|Connecting|Idle|Throttled)}=0)
edit - I know it's not working as currently I have a value of Timeout to one of those keys for hours and it's not triggering. The regex does not seem to be working.

Related

Zabbix - Problem with count function and external item data

Trying to setup Zabbix to show incomming login failures by syslog log files. I try to create an trigger which triggers when the last value occurs in the last 5 minutes of x amount of items.
The following expression is created:
Code:
count(/Syslog server/log[/var/log/failedlogin.log],5m,"like","last(/Syslog server/log[/var/log/failedlogin.log],#0)")>3
Also the following does not work:
Code:
count(/Syslog server/log[/var/log/failedlogin.log],5m,"like","{ITEM.LASTVALUE}")>3
I'm sure the count function works like it should be, when i fill in de variable manually the item does trigger.
But when i try to get a value out of an other items which is containing the data is seems to not work.
Could someone tell me if this is even possible? Thanks and greetings.

ora-01403 at run time environment Only [duplicate]

This question already has an answer here:
enable-update-delete-insert a row when radio buttons pressed
(1 answer)
Closed 7 years ago.
after i had alert one of my tables column and change its type from
number to varchar2 and changing the data type also for the text item
I tried also the data block wizard to refresh the data block and also
write the DISPLAY_ERROR at each step but nothing show up !
I had tried to delete the FMX file and recompile the form and generate the FMx file but thats was not help !!
frm-40508 oracle error unable to insert record !
at run time environment Only but when I run the from from developers
it is works fine !
i know it should be sample error to solve but all my tried had fail
whats the problem please !
is their any cache or something I need to refresh it ?!
should I delete the whole datablock and re-builded cause of that little change ?!
Just for sharing my problem that I was navigating through multiple forms using
OPEN_FORMS which is by default has NO_SHARE_DATA_LIBRARY I had replace it with
CALL_FORM which is has same parameters as OPEN_FORMS but it is allow forms to do update insert and delete transactions for more understanding Please refer to oracle forms builder help search for OPEN_FORM AND CALL_FORM key words
Thanks

Math formula with MYSQL trigger outputs incorrect calculation

I couldn't find anything on the site specifically addressing this issue,so I decided to post a question for some help.
I'm trying to run a "BEFORE UPDATE" trigger on a table in my database. The trigger is set to execute after a cron job query runs to evaluate user data. If the data targets are met ,then BEFORE UPDATE trigger kicks in to manipulate additional columns via two simple math formulas.
sqlQuery (via cron job)
UPDATE table1.records SET date_created=IF(expiration_date<(CURDATE()),IF(postCOUNT>0,CURDATE(),'error'),date_created)
BEFORE UPDATE TRIGGER (created via phpMyAdmin cPanel)
1. BEGIN
2. IF NEW.date_created != OLD.date_created THEN
3. SET NEW.date_created=New.date_created;
4. SET NEW.expiration_date = NEW.date_created + 2;
5. SET NEW.postCOUNT = OLD.postCOUNT-1;
6. END IF;
7. END
Now I'm sure there are far better ways of coding to accomplish this task but everything seems to working until the math formula in LINE 5 of the trigger. Instead of subtracting "1" from OLD.postCOUNT, the formula keeps subtracting "2". I'm baffled as to why this is happening,the formula seems straight-forward. I've even tried other numbers in the formula and still the answers are never correct.
Any advice or insight would be greatly appreciated.
Thanks in advance!

zabbix regex to trigger for wrong data type

I have an item of type float, but sometimes a string is received in case of error instead of a number. How can I make a trigger regexp to fire in this case?
I have no idea now to check for "wrong data type".
Actually this is by design and what I'm trying to do is this: if the data gathering fails, I send an error message in order to see it on zabbix end.
I tried with nodata(0), but this doesn't seem to work.
In you case zabbix will not store the "wrong" value for the item. And if you don't care what the string is then you can just setup a trigger for "nodata" for the period of your interval. Look in the triggers manual and search for the "nodata".
Edit: scratch that, didn't read the whole question ....
Edit2: if you are certain that this is not working by design and not because your trigger interval misses the data interval, then you can try to catch the unsupported status. There is an open request for the functionality, but you can setup a side script similar to this. Or you can wrap the monitored item on the node into a UserParameter script that reads the value and prints -1 or something if it is not a number. Then proceed with a normal numeric trigger.

NotInList script

I am trying to use Access and VBA to create a DB to store my library. I already posted a question and got a useful answer but I am still failing with the basics, so, after having checked this tutorial link I am starting from scratch and doing it in smaller steps (i.e. asking more basic questions...).
I have the following DB structure and relationship details:
DB structure and relationship details http://img195.imageshack.us/img195/8184/relationshipdetails.png
Using the Access AutoForm:Columnar wizard I created a Form based on the Table Libri, then I changed the field "Stanza" into a ComboBox, I entered the RowSource as follows:
ComboBox http://img560.imageshack.us/img560/160/comboboxdata.png
Then in the Event tab I selected the ... controls in the NotInList and in the VBA I entered the following code:
VBA code http://img689.imageshack.us/img689/1416/notinlistcode.png
Saved everithing, but when I open the Form Libri and try to enter a value in the ComboBox I get the following error message:
Error message http://img41.imageshack.us/img41/8937/errormsgt.png
All my tables are empty (no records).
So the VBA code seems not to be considered/executed at all, what am I doing wrong or missing?
Ok, I was completely blind.
The error is the option: "Limit to list" that I set to "NO" and instead, the NotInList event is only filred if such option is set to "yes".
I find this conter-intuitive, but at least now I know.
Sorry for bothering other. hope this is helpful some other newbe like me.