If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to REGISTER before you can post. To start viewing messages, select the forum that you want to visit from the selection below.
couldn't find this option for zabbix: how can I set zabbix to check files like /var/log/messages and identify errors and other kind of messages?
thanks
Step 1: chgrp zabbix /var/log/messages
Step 2: Create an item for that host with
Step 3: key = log[/var/log/messages,VALUE]
Step 4: Set VALUE to the string or regexp value you wish to watch for in the log
Step 5: ENJOY!
many thanks, zibbax, worked out for me
now, can anyone tell me if there is a way to return in zabbix server the exact log from that file? I mean everytime the error appers, i have to ssh the machine and look manualy trough logs.
If you view the node group in Monitoring -> Overview you will see the name of the item you made as one of the rows. If you click the tuple (where the row and column for the host meet) for that item/host it will give you the option to view the 500 latest values. This will give you the full strings that match your item key.
Comment