monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New feature


From: Daniel Rich
Subject: Re: New feature
Date: Thu, 09 Sep 2010 08:44:26 -0700
User-agent: Thunderbird 2.0.0.22 (X11/20090609)

Take a look at the check_monit.py Nagios plugin, it does what you are trying to do without requiring that monit be installed on the system where you want to run the check. 
    http://code.google.com/p/nagios-monit-plugin/

For example:
> /usr/local/libexec/nagios/check_monit.py -H server -u admin -P xxxx
OK: Total 27 services are monitored
> /usr/local/libexec/nagios/check_monit.py -H server -u admin -P xxxx -i apache
OK: Total 1 services are monitored
> /usr/local/libexec/nagios/check_monit.py -H server2 -u admin -P xxxx -i asterisk
OK: Total 1 services are monitored
  

Andrew Holt wrote:
Hi,

I am considering adding a new feature to monit, to whit:


monit status <service>

e.g.

monit status spread ; echo $?

Would return

running   0


Which would return a string, and, set an appropriate error code on exit ( e.g. 0 - OK, 1 - unknown etc)

Unless there is a better way ?

Thanks,
Andrew
  


-- 
Dan Rich <address@hidden> |   http://www.employees.org/~drich/
                               |  "Step up to red alert!"  "Are you sure, sir?
                               |   It means changing the bulb in the sign..."
                               |          - Red Dwarf (BBC)

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]