I have a file in unix that consists of a single number that I want to graph. What would I use in Zabbix to pull the number from the file?
Ad Widget
Collapse
How can I graph an interger within file?
Collapse
X
-
Define in zabbix_agentd.conf:
UserParameter=catfile[*], cat $1
Use item key catfile[/path/to/your/file] on server side. -
Are you running Windows Agentd?
Look at this thread #5
Actually, you started that thread to.....and hidden down in your own thread was the possible answer. (if you are running windows)
(I think)
Try a specific hard coded filename to cat.. or actually "type"Comment
-
FreeBSD 6.0
Actually I'm not getting any data from the zabbix agent despite the fact the server says it is available. When I use the default Unix template it displays no data.
Anythoughts? Once I get this working I suspect my cat script will work as well.Comment
-
Did you try running the agentd with "-p" option?
for example /usr/local/bin/zabbix_agentd -p
this will show you all the paramters the agentd is capable of gatheringComment
Comment