Script to probe service status in Nagios
Miah, W (Wadud)
W.Miah at rl.ac.uk
Fri Dec 14 14:49:42 CET 2007
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.
------------
Wadud Miah
Scientific Computing Systems Support
High Performance Computing Services Group, e-Science, RAL
01235 446 794
------------
-------------------------------------------------------------------------
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