<!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.10.3">
</HEAD>
<BODY>
That should probably be<BR>
<BR>
<FONT COLOR="#000000">command_line    $USER1$/check_url.pl</FONT> $ARG1$<BR>
<BR>
On Sat, 2007-01-06 at 12:28 +0530, Prashant N wrote:
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">hi,</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000"> </FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">from the command line is used as : /usr/lib/nagios/plugins/check_url.pl <A HREF="https://172.16.1.78/blog">https://172.16.1.78/blog</A></FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">and the check_url command in the commands.cfg looks like:</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">---------------------------------------------------------------------------------------</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000"># 'check_url' command definition</FONT><BR>
    <FONT COLOR="#000000">define command{</FONT><BR>
    <FONT COLOR="#000000">        command_name    check_url</FONT><BR>
    <FONT COLOR="#000000">        command_line    $USER1$/check_url.pl</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">        }</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">---------------------------------------------------------------------------------------------</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">the services.cfg file</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">-----------------------------------------------------------------------------------------------</FONT><BR>
    <FONT COLOR="#000000">services.cfg</FONT><BR>
    <FONT COLOR="#000000">-------------------------------------------------------------</FONT><BR>
    <FONT COLOR="#000000"># URL SERVICES</FONT><BR>
    <FONT COLOR="#000000">define service{</FONT><BR>
    <FONT COLOR="#000000">        use                             basic-service</FONT><BR>
    <FONT COLOR="#000000">        name                            url-service</FONT><BR>
    <FONT COLOR="#000000">        service_description             URL</FONT><BR>
    <FONT COLOR="#000000">        notification_interval           10</FONT><BR>
    <FONT COLOR="#000000">        notification_options            c,r </FONT><BR>
    <FONT COLOR="#000000">        notification_period             24x7</FONT><BR>
    <FONT COLOR="#000000">        check_command                   check_url</FONT><BR>
    <FONT COLOR="#000000">        register                        0</FONT><BR>
    <FONT COLOR="#000000">        }</FONT><BR>
    <FONT COLOR="#000000">define service{</FONT><BR>
    <FONT COLOR="#000000">        use                             url-service </FONT><BR>
    <FONT COLOR="#000000">        host_name                       <A HREF="http://kmp.mobiapps.biz">kmp.mobiapps.biz</A></FONT><BR>
    <FONT COLOR="#000000">        service_description             URL</FONT><BR>
    <FONT COLOR="#000000">        check_command                   check_url!https://172.16.1.78/blog </FONT><BR>
    <FONT COLOR="#000000">        contact_groups                  einsteins</FONT><BR>
    <FONT COLOR="#000000">        }</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">----------------------------------------------------------------------------------------------------------------</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000"> </FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">Regards</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">Shann</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000"> </FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">On 1/6/07, </FONT><FONT COLOR="#000000"><B>Jason Martin</B></FONT><FONT COLOR="#000000"> <<A HREF="mailto:jhmartin@toger.us">jhmartin@toger.us</A>> wrote: </FONT><BR>
    <BLOCKQUOTE>
        <FONT COLOR="#000000">What is the definition of check_url? That is probably where the</FONT><BR>
        <FONT COLOR="#000000">problem resides.</FONT><BR>
        <FONT COLOR="#000000">-Jason Martin</FONT><BR>
        <BR>
        <FONT COLOR="#000000">On Fri, Jan 05, 2007 at 03:44:07PM +0100, Prashat N wrote:</FONT><BR>
        <FONT COLOR="#000000">> Hi list</FONT><BR>
        <FONT COLOR="#000000">></FONT><BR>
        <FONT COLOR="#000000">> I would like to use check_url to check one of the https pages. when i check throug the command line the plugin works fine. but does not work through the nagios configs. My services.cfg looks like</FONT><BR>
        <FONT COLOR="#000000">> ----------------------------------------------------------</FONT><BR>
        <FONT COLOR="#000000">> # URL SERVICES</FONT><BR>
        <FONT COLOR="#000000">> define service{</FONT><BR>
        <FONT COLOR="#000000">> use basic-service</FONT><BR>
        <FONT COLOR="#000000">> name url-service</FONT><BR>
        <FONT COLOR="#000000">> service_description URL</FONT><BR>
        <FONT COLOR="#000000">> notification_interval 10</FONT><BR>
        <FONT COLOR="#000000">> notification_options c,r</FONT><BR>
        <FONT COLOR="#000000">> notification_period 24x7</FONT><BR>
        <FONT COLOR="#000000">> check_command check_url</FONT><BR>
        <FONT COLOR="#000000">> register 0</FONT><BR>
        <FONT COLOR="#000000">> }</FONT><BR>
        <FONT COLOR="#000000">> define service{</FONT><BR>
        <FONT COLOR="#000000">> use url-service</FONT><BR>
        <FONT COLOR="#000000">> host_name <A HREF="http://kmp.mobiapps.biz">kmp.mobiapps.biz</A></FONT><BR>
        <FONT COLOR="#000000">> service_description URL</FONT><BR>
        <FONT COLOR="#000000">> check_command check_url!https://172.16.1.78/blog</FONT><BR>
        <FONT COLOR="#000000">> contact_groups einsteins</FONT><BR>
        <FONT COLOR="#000000">> }</FONT><BR>
        <FONT COLOR="#000000">> ----------------------------------------------------------- </FONT><BR>
        <FONT COLOR="#000000">> what am i doing wrong ?</FONT><BR>
        <FONT COLOR="#000000">></FONT><BR>
        <FONT COLOR="#000000">> - Prashat N (massoo)</FONT><BR>
        <FONT COLOR="#000000">></FONT><BR>
        <FONT COLOR="#000000">> -----------------------</FONT><BR>
        <FONT COLOR="#000000">> The mailing list archive is found here:</FONT><BR>
        <FONT COLOR="#000000">> <A HREF="http://www.nagiosexchange.org/nagiosplug-help.32.0.html">http://www.nagiosexchange.org/nagiosplug-help.32.0.html</A></FONT><BR>
        <FONT COLOR="#000000">></FONT><BR>
        <FONT COLOR="#000000">></FONT><BR>
        <FONT COLOR="#000000">> -------------------------------------------------------------------------</FONT><BR>
        <FONT COLOR="#000000">> Take Surveys. Earn Cash. Influence the Future of IT</FONT><BR>
        <FONT COLOR="#000000">> Join SourceForge.net's Techsay panel and you'll get the chance to share your</FONT><BR>
        <FONT COLOR="#000000">> opinions on IT & business topics through brief surveys - and earn cash</FONT><BR>
        <FONT COLOR="#000000">> <A HREF="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV">http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</A></FONT><BR>
        <FONT COLOR="#000000">> _______________________________________________</FONT><BR>
        <FONT COLOR="#000000">> Nagiosplug-help mailing list</FONT><BR>
        <FONT COLOR="#000000">> <A HREF="mailto:Nagiosplug-help@lists.sourceforge.net">Nagiosplug-help@lists.sourceforge.net</A></FONT><BR>
        <FONT COLOR="#000000">> <A HREF="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</A></FONT><BR>
        <FONT COLOR="#000000">> ::: Please include plugins version (-v) and OS when reporting any issue. </FONT><BR>
        <FONT COLOR="#000000">> ::: Messages without supporting info will risk being sent to /dev/null</FONT><BR>
        <BR>
        <FONT COLOR="#000000">--</FONT><BR>
        <FONT COLOR="#000000">A cat is the universe's way of showing us perfection.</FONT><BR>
        <FONT COLOR="#000000">This message is PGP/MIME signed.</FONT><BR>
        <BR>
        <BR>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
    <BR>
    <FONT COLOR="#000000">-- </FONT><BR>
    <FONT COLOR="#000000">Thanks & Regards</FONT><BR>
    <FONT COLOR="#000000">Prashant N </FONT>
<PRE>
<FONT COLOR="#000000">-------------------------------------------------------------------------</FONT>
<FONT COLOR="#000000">Take Surveys. Earn Cash. Influence the Future of IT</FONT>
<FONT COLOR="#000000">Join SourceForge.net's Techsay panel and you'll get the chance to share your</FONT>
<FONT COLOR="#000000">opinions on IT & business topics through brief surveys - and earn cash</FONT>
<FONT COLOR="#000000"><A HREF="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV">http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</A></FONT>
<FONT COLOR="#000000">_______________________________________________ Nagiosplug-help mailing list <A HREF="mailto:Nagiosplug-help@lists.sourceforge.net">Nagiosplug-help@lists.sourceforge.net</A> <A HREF="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</A> ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null</FONT>
</PRE>
</BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
-- <BR>
Duncan Ferguson<BR>
<BR>
<FONT COLOR="#808080">Senior Technologist</FONT><BR>
<FONT COLOR="#808080">Egg PLC</FONT><BR>
<FONT COLOR="#808080">Telephone: +44 (0)1384 26 4060</FONT><BR>
<FONT COLOR="#808080">Mobbile:  +44 (0)7968 148 748</FONT><BR>
<FONT COLOR="#808080">Jabber: duncs</FONT>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>


<HTML><BODY><P><hr size=1></P><br>
<P><STRONG><br>
Egg is a trading name of the Egg group of companies which includes:<br>
Egg plc (reg no 2448340), Egg Financial Intermediation Ltd (reg no<br>
3828289), and Egg Banking plc (reg no 2999842). Egg Banking plc and<br>
Egg Financial Intermediation Ltd are authorised and regulated by<br>
the Financial Services Authority (FSA) and are entered in the FSA<br>
register under numbers 205621 and 309551 respectively. These<br>
members of the Egg group are registered in England and Wales.<br>
Registered office: Laurence Pountney Hill, London EC4R 0HH.<br>
 <br>
<br>
This e-mail is confidential and for use by the addressee only. If<br>
you are not the intended recipient of this e-mail and have received<br>
it in error, please return the message to the sender by replying to<br>
it and then delete it from your mailbox. Internet e-mails are not<br>
necessarily secure. The Egg group of companies do not accept<br>
responsibility for changes made to this message after it was sent.<br>
<br>
<br>
Whilst all reasonable care has been taken to avoid the transmission<br>
of viruses, it is the responsibility of the recipient to ensure<br>
that the onward transmission, opening or use of this message and<br>
any attachments will not adversely affect its systems or data. No<br>
responsibility is accepted by the Egg group of companies in this<br>
regard and the recipient should carry out such virus and other<br>
checks as it considers appropriate.<br>
<br>
This communication does not create or modify any contract.<br>
</STRONG></P></BODY></HTML>