View Full Version : Special use of zabbix
teleneko
16-11-2004, 19:50
Hi all,
I would like to monitor some of my hosts in an special way. Because of some reasons I only can comunicate with them by email so I will gather information through this media. My idea is use some scripts to put this information in the zabbix database and then use alarms an graphing tools from zabbix like with the other host, but I am not sure if it is possible. Any ideas?
R-ds.
I would suggest using combination of procmail, zabbix_sender, and zabbix_trapperd. Should be quite straight forward.
teleneko
16-11-2004, 20:34
What I have pIanned is receive a mail with all the data interesting for me in a text archive, use procmail to extract the file and then a perl script to extract the relevant data wich can be easily stored in a DB. The system is half developed because we have been using this idea for two years, but we want to integrate it in a monitoring system as zabbix.
Regarding your suggestion, if I have understanded rigth, what I have to to do is use zabbix_sender to introduce information on zabbix db instead of putting it directly in the db. I look for information about zabbix_sender but I do not find any (only inthe forum).
R-ds.
[...]
Regarding your suggestion, if I have understanded rigth, what I have to to do is use zabbix_sender to introduce information on zabbix db instead of putting it directly in the db. I look for information about zabbix_sender but I do not find any (only inthe forum).
Have a look on the manual: you'll find some more info.
Example of use: I wanted my backups scripts to inform ZABBIX of the correctness of the backup. So, I :
. used a custom trigger/element parameter named myscript-correct collected via zabbix trapperd
. on the host running the script, used zabbix_sender to send the info to the zabbix server trapperd daemon
To do so, I added to my scripts :
zabbix_sender zabbixservername 10001 myhost:myscript-corret 0
(0 if ok, else 1)
Then, on a status 1, I places trigger and actions to mail to sysadmin something is wrong out there...
Simple and stupid, but ok for my usage. Hope this'll help you.
Cheers,
teleneko
17-11-2004, 14:35
Hi,
I though that the online manual was equal to the pdf manual, but I have read the pdf and found more information.
Thank you very much because your suggestion and example will be very useful, in some cases and for new developments. But I have some developed software and I want to use it to directly put information in the db, if posible.
R-ds.