Script to probe service status in Nagios

Miah, W (Wadud) W.Miah at rl.ac.uk
Fri Dec 14 15:15:36 CET 2007


I'm not aware of the plugin check_nagios_service. Does such a plugin
exist? If so, where can I get this from?

-----Original Message-----
From: Kurt Yoder [mailto:ktynagios at richard-group.com] 
Sent: 14 December 2007 14:11
To: Miah, W (Wadud)
Cc: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Script to probe service status in Nagios


On Dec 14, 2007, at 8:49 AM, Miah, W (Wadud) wrote:

> I should have clarified exactly what I meant in my previous email. Is
> there a script that connects to the Nagios front end that can  
> determine
> the state of a service/host? I must be able to execute this cript from
> any Linux/Unix host. For example,
>
> [nagios at host1]$ ./check_nagios_service -H http://nagios.rl.ac.uk/ 
> nagios
> --host=server --service=nscd
> service nscd on host server is OK
> [nagios at host1]$ echo $?
> 0
> [nagios at host1]$ ./check_nagios_service -H http://nagios.rl.ac.uk/ 
> nagios
> --host=server --service=httpd
> service httpd on host server is CRITICAL
> [nagios at host1]$ echo $?
> 2
> [nagios at host1]$
>
> where http://nagios.rl.ac.uk/nagios is the Nagios front end, host  
> is the
> host that runs the service nscd.
>
> Thanks in advance.




Is there any reason you wouldn't want to just run it from ssh? Eg:

/usr/bin/ssh your.nagios.host /usr/lib/nagios/plugins/ 
check_nagios_service -H $1 --host=server --service=nscd >/dev/null


--
Kurt Yoder


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
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