well i in-corporated the change and when i try to execute in command line the output is ok but thru the nagios web console, this returns errors as <br><span style="font-weight: bold;">[01-08-2007 12:47:02] SERVICE ALERT:
<a href="http://kmp.mobiapps.biz">kmp.mobiapps.biz</a>;URL;UNKNOWN;HARD;15;**ePN
/usr/lib/nagios/plugins/contrib/check_url.pl: "Use of uninitialized
value in concatenation (.) or string at (eval 4) line 27,"."<br></span>how to solve this ?<br>regards<br>shann<br><span style="font-weight: bold;"></span><br><div><span class="gmail_quote">On 1/8/07, <b class="gmail_sendername">
Duncan Ferguson</b> <<a href="mailto:duncan.ferguson@egg.com">duncan.ferguson@egg.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



  
  

<div>
That should probably be<br>
<br>
<font color="#000000">command_line    $USER1$/check_url.pl</font> $ARG1$<div><span class="e" id="q_11000e8a6796a72b_1"><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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Nagiosplug-help@lists.sourceforge.net</a></font><br>
        <font color="#000000">> <a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Nagiosplug-help@lists.sourceforge.net</a> <a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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>
</span></div><table cellpadding="0" cellspacing="0" width="100%">
<tbody><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>
</tbody></table>
</div>



<div><p></p><hr size="1"><p></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></div>

</blockquote></div><br><br clear="all"><br>-- <br>Thanks & Regards<br>Prashant N