View Full Version : Function 'str' in beta5
Just now examined changelog and founded this:
Function 'str' will work for LOG files.
Is it means, what zabbix can now monitor LOG files for the purpose of some strings?
How can i do that? :rolleyes:
Thanks! :o
For example, trigger "Error in syslog" may look like this:
{host:log[/var/log/syslog].str(error)}=1
The function returns 1 if matches, 0 - otherwise.
You may also use function regexp:
{host:log[/var/log/syslog].regexp(error)}=1
[cc]smart
26-04-2006, 12:48
Old post, but still the right place...
How do i have to define the item in the first place.
The way i tried yields "not supported". These are my settings:
Type: Zabbix agent
Key: log[/var/log/messages]
Type of Information: Log
Status: Monitored
Log time format: <empty>
What am i doing wrong ?
The information may be useful for you: http://www.zabbix.com/manual/v1.1/tutorials.php
Item type is incorrect. Must be ZABBIX agent (active).
[cc]smart
26-04-2006, 15:31
How to reactivate (change to state "monitored") an item in state "not supported" when it's provided by a template ?
Update item of the template. It would be possible to update a single item in next release.
[cc]smart
26-04-2006, 16:58
The template stayed in "active" though.
I tried the workaround of deactive, wait, activate, but it seems this was not effective to make the server retry.
[cc]smart
27-04-2006, 15:18
I have retried changing state, to be sure, this time with server disabled. When i disable / enable the trigger in the template, the on in the host is not reactivated. If i got this right, the one in the host shuld get activated, too.