-
New Feature Request
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
Linux
It would be good to have a new variant of active items:
Instead of cyclic updates, zabbix-agent should be capable to watch inotify events on directories or files. If a inotify event appears the item(s) should be fetched and delivered.
For some types of items this eases reviews of values/certain situations, allows to write easy nodata triggers and saves lots of space in the database.
Example:
The puppet state file /var/lib/puppet/state/last_run_summary.yaml is written after every puppetrun. If the zabbix detects the change and send only values if the event appear it would be easy to get the exact execution time and the resulting value of puppetruns.
Probably it would be a good idea to have a more general solution:
External checks which are allowed to block forever until values are delivered.
—
#!/bin/bash
inotifywait -e modify /var/lib/puppet/state/last_run_summary.yaml
- converted from yaml file
echo < EOF
Linux DB1" db.ping 1
"Linux DB3" db.ping 0
"Zabbix server" db.status 0
"Zabbix server" db.error "Linux DB3 down"
EOF -