<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.0.9">
</HEAD>
<BODY>
Hi,<BR>
<BR>
you want do something like<BR>
<BR>
awk -F ';' "/SERVICE;$host;$serv;/"' { print $7 } ' /var/log/nagios/status.log<BR>
<BR>
? (or equivalent in perl)<BR>
<BR>
After, you can use ssh or nrpe2 to do this by network.<BR>
<BR>
Regards<BR>
<BR>
<BR>
On Sat, 2003-11-15 at 00:37, Massimo Bandinelli wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE><FONT COLOR="#7f7f7f"><I>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</I></FONT></PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>