Hello, I'm trying to install a mysql check slave nagios plug-in for Zenoss. 
I've been reading through all sorts of documenation and ran into a wall. Maybe 
someone who is familiar with nagios plugins for Zenoss can shed some light.

The nagios plugin I want to install is a perl script check-mysql-slave.pl. When 
running the script on command line: 


> /bi/usr/local/zenoss/libexec/check-mysql-slave.pl --host=hostxxx.com 
> --port=3306 --user=userxxx --password=pass' 


I recieve a good output



> OK - Waiting for master to send event, replicating host (ip):3306


This means that replication is working and the script does what it is asked for.

So now the problem occurs when trying to add the template for this. I created a 
local copy of my template. Go into datasource and create a new Command 
datasource. Added the command into the command template and save. Now I got 
back into the command line and run:


> /usr/local/zenoss/bin/zencommand run -d hostxxx.com -v10



I get the following results:


> 
> DEBUG:zen.zencommand:Command: '/bin/sh -c exec 
> /usr/local/zenoss/libexec/check-mysql-slave.pl --host=hostxxx.com --port=3306 
> --user=user --password=(pass)'
> DEBUG:zen.zencommand:Output: ''
> DEBUG:zen.zencommand:Process check-mysql-slave.pl --host=hostxxx.com 
> --port=3306 --user=user --password=(pass)  stopped (255), 0.085734 elapsed
> DEBUG:zen.zencommand:The result of 
> "/usr/local/zenoss/libexec/check-mysql-slave.pl --host=hostxxx.com 
> --port=3306 --user=user --password=(pass)' was ""



It seems as though it is not returning an output. I then try to run : /bin/sh 
-c exec /usr/local/zenoss/libexec/check-mysql-slave.pl --host=hostxxx.com 
--port=3306 --user=user --password=(pass)

And this does not give an output. So I created a simple script that gives me 
the time and run that script against the /bin/sh -c exec command and it still 
does not output. 


Any idea what might be the problem?




-------------------- m2f --------------------

Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=16299#16299

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to