Hello!
I'm setting up zabbix 1.8 and I've got most things set up. I've set up and tweaked the default Linux template and I've created my own templates to monitor the variety of custom processes we run on our boxes but I'm having trouble with the last thing I'm trying to set up; monitoring inside log files.
Here is what I've set up:
Item:
Type - zabbix agent (active)
Key - log["/opt/log/error.log","running",,120]
Type of information - Log
Update interval - 1 sec
Trigger:
Expression - {Log Template:log["/opt/log/error.log","running",,120].str(running)}=1
zabbix_agentd.conf:
Hostname=Server (this is the same as what the name of the server is in zabbix server)
DisableActive=0
Log File Info:
-rwxrwxrwx 1 root root 2023650255 Dec 6 20:28 error.log
Log File Entry:
2012-12-06 20:28:35,656 INFO task=running,last post=2012-12-06 20:28:35.656007,total posts=82560000,throttle=100%
The log file is generally updated every 10 to 20 seconds with an entry that is very similar to the above.
The way I think this should work is that I should receive an e-mail every 10 to 20 seconds every time zabbix detects the word "running" inside the error.log file. Obvious this isn't working and at this point I'm boggled as to why. I'm sure its just something small I've missed but I've run out of ideas. Any help is appreciated. Thanks!
I'm setting up zabbix 1.8 and I've got most things set up. I've set up and tweaked the default Linux template and I've created my own templates to monitor the variety of custom processes we run on our boxes but I'm having trouble with the last thing I'm trying to set up; monitoring inside log files.
Here is what I've set up:
Item:
Type - zabbix agent (active)
Key - log["/opt/log/error.log","running",,120]
Type of information - Log
Update interval - 1 sec
Trigger:
Expression - {Log Template:log["/opt/log/error.log","running",,120].str(running)}=1
zabbix_agentd.conf:
Hostname=Server (this is the same as what the name of the server is in zabbix server)
DisableActive=0
Log File Info:
-rwxrwxrwx 1 root root 2023650255 Dec 6 20:28 error.log
Log File Entry:
2012-12-06 20:28:35,656 INFO task=running,last post=2012-12-06 20:28:35.656007,total posts=82560000,throttle=100%
The log file is generally updated every 10 to 20 seconds with an entry that is very similar to the above.
The way I think this should work is that I should receive an e-mail every 10 to 20 seconds every time zabbix detects the word "running" inside the error.log file. Obvious this isn't working and at this point I'm boggled as to why. I'm sure its just something small I've missed but I've run out of ideas. Any help is appreciated. Thanks!
Comment