<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>Determining status of a single service</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P ALIGN=LEFT><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">Hi All!</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">Is there any combination of parameters with status.cgi</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"></FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"> <FONT SIZE=2 FACE="Arial">or</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"> <FONT SIZE=2 FACE="Arial">some other script</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"> <FONT SIZE=2 FACE="Arial">that one could use to</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"> <FONT SIZE=2 FACE="Arial">easily</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"> <FONT SIZE=2 FACE="Arial">determine the current status of a specific host:service?</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"> <FONT SIZE=2 FACE="Arial">I can get the</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"> <FONT SIZE=2 FACE="Arial">whole page with this kind of URL</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">nagios/cgi-bin/status.cgi?host=</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">HOSTNAME</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">and then simply parse out the status of the specific</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"> <FONT SIZE=2 FACE="Arial">service. However, I am not too happy with relying on the structure of an HTML page.</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"> </SPAN></P>
<P ALIGN=LEFT><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">I would like to be able to</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"> <FONT SIZE=2 FACE="Arial">call up a URL from a remote machine</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">, passing the hostname and service,</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"> and get some very basic text like OK or a numer</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">ic value</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"> <FONT SIZE=2 FACE="Arial">for</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"></FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"> <FONT SIZE=2 FACE="Arial">the</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"> status of that service.</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"> <FONT SIZE=2 FACE="Arial">I would then take this value and</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"> <FONT SIZE=2 FACE="Arial">pass it to some other application.</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"> <FONT SIZE=2 FACE="Arial">Building something with</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"> <FONT SIZE=2 FACE="Arial">P</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">erl or PHP is straight forward</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"><FONT SIZE=2 FACE="Arial"></FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"> <FONT SIZE=2 FACE="Arial"> (we</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">’</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">re running NDO</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">)</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">. But I was hoping</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"> <FONT SIZE=2 FACE="Arial">that something is</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"> <FONT SIZE=2 FACE="Arial">already available</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">.</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"> </SPAN></P>
<BR>
<P ALIGN=LEFT><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">Any input is appreaciated.</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">Regards,</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">Jim Mohr</FONT></SPAN><SPAN LANG="de"></SPAN><SPAN LANG="de"></SPAN></P>
<DIV><P><HR>
<BR>
--<BR>
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.<BR>
<BR>
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.<BR>
</P></DIV>
</BODY>
</HTML>