PDA

View Full Version : Function 'str' in beta5


disparo
10-01-2006, 12:42
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

Alexei
10-01-2006, 13:48
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 ?

Alexei
26-04-2006, 12:51
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 ?

Alexei
26-04-2006, 16:07
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.