Currently I cannot get a plugin I wrote to work in zenoss. It is a simple diff
script that reports back in nagios fashion for pass fail of the script. The
script grabs the sysName via snmpget, and compares it to the zope DB name (I
hope) and generates a trap if the two do not match. The reason for this is our
backup servers do not rename themselves in the snmpd.conf file when they take
over for another server. I want to use this to inform people when the backup
has taken over for a different machine.
If anyone can point me in the right direction for this, I would really
appreciate it.
I have this set under /devices/template, so it should work globally in my
config.
Currently it works command line by hand, but zenoss does not execute the script
ever. Here is the syntax I have set:
/usr/lib/nagios/plugins/check_host ${dev/manageIp} ${dev/SystemName} -r
${here/Hostname}
the -r switch should be doing a regex for the word synched
Here is what i get back when I run this by hand with a deliberate error:
./check_host xxx.xxx.xxx.xxx HOST-MARKET-ISP
HOST-MARKET-ISP is reporting a hostname of HOST-MARKET-FW ;;;1
Here is what I get back when running by hand with everything correct:
./check_host xxx.xxx.xxx.xxx HOST-MARKET-FW
hostname synched;;;0
------------------------
Christopher Hubbard
-------------------- m2f --------------------
Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=11798#11798
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users