2

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
  • 1
    Please add more details.
    – rvs
    Sep 13, 2011 at 5:12

2 Answers 2

1

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:

https://www.zabbix.com/documentation/current/manual/discovery/low_level_discovery

0

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).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .