nagios Monitor
Assaf Flatto
nagios at flatto.net
Tue Jul 20 08:36:19 CEST 2010
Ron Wilson wrote:
>
> Yes but that is passive. If you do not get an alert you presume it is
> all OK But if the ngaios system was misbehaving for instance or maybe
> your sms notification was down you would not know. What is really
> needed is a check independent of ngaios and that can use an alerting
> system separate from ngaios. It could check and say regular iintervals
> alerting only if it the check fails
>
>
>
simple bash script will do can run on the machine or another host
This will be psuodo code
#!/bin/bash
$result = curl -D - http://nagioshost/nagios/tac.cgi |grep -v {some
parameter} #get the cgi to reply
if $result != (value we want)
# nagios is down
mail -s " Nagios is dead " your at email.here -c
mobile at smsc.provider.com < /a/file/with/text
That is about the gist of it.
Assaf
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list