How can I query nagios?
BOLLENGIER Eric
ebollengier at sigma.fr
Mon Nov 17 09:03:29 CET 2003
Hi,
you want do something like
awk -F ';' "/SERVICE;$host;$serv;/"' { print $7 } '
/var/log/nagios/status.log
? (or equivalent in perl)
After, you can use ssh or nrpe2 to do this by network.
Regards
On Sat, 2003-11-15 at 00:37, 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)
>
> Thanks, Massimo.
>
> Massimo Bandinelli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20031117/e39575d1/attachment.html>
More information about the Users
mailing list