[Nagiosplug-help] check_url + return code 127

Prashant N massoo at gmail.com
Sat Jan 6 07:58:01 CET 2007


hi,

from the command line is used as : /usr/lib/nagios/plugins/check_url.pl
https://172.16.1.78/blog
and the check_url command in the commands.cfg looks like:
---------------------------------------------------------------------------------------
# 'check_url' command definition
define command{
        command_name    check_url
        command_line    $USER1$/check_url.pl
        }
---------------------------------------------------------------------------------------------
the services.cfg file
-----------------------------------------------------------------------------------------------
services.cfg
-------------------------------------------------------------
# URL SERVICES
define service{
        use                             basic-service
        name                            url-service
        service_description             URL
        notification_interval           10
        notification_options            c,r
        notification_period             24x7
        check_command                   check_url
        register                        0
        }
define service{
        use                             url-service
        host_name                       kmp.mobiapps.biz
        service_description             URL
        check_command                   check_url!https://172.16.1.78/blog
        contact_groups                  einsteins
        }
----------------------------------------------------------------------------------------------------------------

Regards
Shann

On 1/6/07, Jason Martin <jhmartin at toger.us> wrote:
>
> What is the definition of check_url? That is probably where the
> problem resides.
> -Jason Martin
>
> On Fri, Jan 05, 2007 at 03:44:07PM +0100, Prashat N wrote:
> > Hi list
> >
> > 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
> > ----------------------------------------------------------
> > # URL SERVICES
> > define service{
> > use basic-service
> > name url-service
> > service_description URL
> > notification_interval 10
> > notification_options c,r
> > notification_period 24x7
> > check_command check_url
> > register 0
> > }
> > define service{
> > use url-service
> > host_name kmp.mobiapps.biz
> > service_description URL
> > check_command check_url!https://172.16.1.78/blog
> > contact_groups einsteins
> > }
> > -----------------------------------------------------------
> > what am i doing wrong ?
> >
> > - Prashat N (massoo)
> >
> > -----------------------
> > The mailing list archive is found here:
> > http://www.nagiosexchange.org/nagiosplug-help.32.0.html
> >
> >
> >
> -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Nagiosplug-help mailing list
> > Nagiosplug-help at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> > ::: Please include plugins version (-v) and OS when reporting any issue.
> > ::: Messages without supporting info will risk being sent to /dev/null
>
> --
> A cat is the universe's way of showing us perfection.
> This message is PGP/MIME signed.
>
>
>


-- 
Thanks & Regards
Prashant N
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20070106/494ddd73/attachment.html>


More information about the Help mailing list