How can I query nagios?
David Olbersen
DOlbersen at stbernard.com
Sat Nov 15 01:39:52 CET 2003
Massimo Bandinelli wrote:
> Hi!
>
> I need to query nagios about the status of services, but an host
> different from the nagios host.
>
> Is there a command with this function??
>
> Es.:
>
> # check_service_status <nagios host> <host> <service>
>
> # check_service_status mynagios.foo.it dns.foo.it DNS
> STATUS OK (exit 0)
Massimo,
There's no such thing that I've found. The solution I've taken is having an event handler create a zero-byte file on the machine that's concerned.
For example:
- Monitor machine A's disk space because machine B needs to put stuff there
- Write an event handler so that if A.disk goes critical, write a 0 byte file on machine B
(like /var/tmp/a_disk_full) saying so. When the service goes back to normal, rm the file.
- Update whatever program needs to know, to look for that file.
I think it'll work just fine.
--
David Olbersen
iGuard Engineer
St. Bernard Software
15015 Avenue of Sciences
San Diego, CA 92127
x2152
-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
_______________________________________________
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