I am trying to get the log file's name that we are monitoring using zabbix.
Is there a way to do this?

I created one item in zabbix to monitor log file like this: logrt["/var/logs/error_[0-9]{1,3}.log","Critical"]

When it fetches data, it gives me the exact row but I want to know from which file that data came as I am monitoring multiple error log files.

  • 1
    Please add more details. – rvs Sep 13 '11 at 5:12

I will do it in a different t way, creating custom low level discovery rules.

The idea is to have a discovery rule that lists all the available log files and a rule that creates Zabbix items/triggers/graphs... based on the output of the discovery.

The discovery runs every n seconds so you will end up automating the creation and even the deletion of log items if needed. It is used for full monitoring discovery and automation!

See the Zabbix documentation:


| improve this answer | |

It is not so easy but you can try getting information directly from your zabbix DB. As information about every item is stored for several days (which is user-adjustable), you can try finding it in history table. For more details you can look through this (/http://zabbixzone.com/zabbix/history-and-trends).

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.