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: Fri, 10 Sep 2010 12:36:24 -0700
User-agent: Thunderbird 2.0.0.22 (X11/20090609)

If it has python you can use the Nagios plugin I mentioned, or roll your own based on that one.  It's trivial to get and parse the XML status from monit remotely.

Andrew Holt wrote:
Hi,


Thanks to all of you for your suggestions, however the system I am running on is an embedded linux device, and does not & will not have links.  It does have wget though.

Regards,
Andrew

On 9 Sep 2010, at 17:01, Eric Pailleau wrote:

  
Le 09/09/2010 17:57, Eric Pailleau a écrit :
    
This one is more beautified ...

--8<---------------
echo -e -n "$1\t" ; (links -dump http://127.0.0.1:2812/$1 | grep Status
| cut -d '|' -f 3 ) && exit 0 || exit 1
--8<---------------

--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general
      
Sorry, read :

echo -e -n "$1\t" ; (links -dump http://127.0.0.1:2812/$1 | grep Status | cut -d '|' -f 3 | grep running ) && exit 0 || exit 1


    


-- 
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)

reply via email to

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