[Top][All Lists]

[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 (X11/20090609)

Take a look at the 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.

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

Andrew Holt wrote:

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

monit status <service>


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 ?


Dan Rich <address@hidden> |
                               |  "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]