[Nagiosplug-help] check_url.pl plugin

Evans Plummer evans.plummer at usis.com
Mon May 18 21:47:59 CEST 2009


Philip,

    Now I am receiving a "Return code of 255 is out of bounds" with that
check_url.pl command.  Any ideas why....Thanks in advance!

Van

On Mon, 2009-05-18 at 12:18 -0700, Philip Marcus wrote:

> 
> 
> 
> On Mon, May 18, 2009 at 10:36 AM, Evans Plummer
> <evans.plummer at usis.com> wrote:
> 
>         Philip
>         
>             Thanks very much, that helped!  I have been frustrated for
>         a while trying to figure this out.  I was not aware that the
>         nagios -v check actually identified your problem.  That is a
>         huge help.
> 
> You are welcome!
>  
>         
>         
>             So each 3rd party plugin you choose to use must be defined
>         in the command.cfg to operate properly?  I assume that all the
>         standard nagios plugins are already defined?  
> 
> 
> Many come predefined in the commands.cfg, although lots do not. 
> Also, if you use the predefined command in different ways, you may
> need to define additional commands.
> 
> For instance I use the check_http command to verify the age of my SSL
> certificates.
> I have defined the following in my commands.cfg:
> # check SSL certificate age
> define command{
>         command_name    check_ssl_cert
>         command_line    $USER1$/check_http -S -I $HOSTADDRESS$ -C
> $ARG1$
>         }
> 
> 
> Good luck with Nagios!
> 
> -Philip
>  
>         
>         
>             Thanks again for you assistance!
>         
>         Van
>         
>         
>         
>         
>         
>         
>         On Mon, 2009-05-18 at 09:14 -0700, Philip Marcus wrote:
>         
>         > Hi Van,
>         > 
>         > Looks like it may be a type error:
>         > 
>         > in your service definition, you use the check command
>         > called:
>         > check_url.pl
>         > 
>         > In your command definition, you have named the command:
>         > check_url     ### without the .pl
>         > 
>         > Also, when before starting nagios, you can have it run a
>         > configuration check with something like:
>         > 
>         > /usr/local/nagios/bin/nagios
>         > -v /usr/local/nagios/etc/nagios.cfg
>         > 
>         > That should alert you to the config option which is failing.
>         > It should say something like, undefined check_command on
>         > line XXX of services.cfg
>         > 
>         > Hope that helps,
>         > 
>         > -Philip
>         > 
>         > 
>         > 
>         > On Mon, May 18, 2009 at 7:16 AM, Evans Plummer
>         > <evans.plummer at usis.com> wrote:
>         > 
>         >         Morning,
>         >         
>         >             I am attempting to use the above referenced
>         >         plugin without success.  I can execute it from a
>         >         command line and it works fine, when I add it to the
>         >         cfg file it does not.  I get the "Running
>         >         configuration check... CONFIG ERROR!  Restart
>         >         aborted.  Check your Nagios configuration." error.
>         >         Here is the syntax I am using:
>         >         
>         >             define service{
>         >                 use
>         >         generic-service
>         >                 host_name                  somehost
>         >                 service_description      URL
>         >                 check_command         check_url.pl!URL!1
>         >                 max_check_attempts   5
>         >                 normal_check_interval  5
>         >                 retry_check_interval     3
>         >                 check_period               24x7
>         >                 notification_interval       0
>         >                 notification_period        24x7
>         >                 notification_options      c,r
>         >                 contact_groups           some group 
>         >                 }
>         >         
>         >             I have defined this info in the command.cfg
>         >         file, I assume this must be done for all added check
>         >         commands?  Is this true?
>         >         
>         >             # 'check_url command' definition
>         >         define command{
>         >                 command_name    check_url
>         >                 command_line    $USER1$/check_url.pl
>         >         $HOSTADDRESS$ $ARG1$ $ARG2$
>         >                 }
>         >         
>         >                 Through trail and error I have remmed out
>         >         all lines in the "define service" section 1 at a
>         >         time and restart the Nagios service and have
>         >         identified the "service_description" line as being
>         >         the problem.  That seem very strange to me since it
>         >         appears to only be a name.  Never the less, I
>         >         obviously have some syntax error preventing this
>         >         from operating properly.  Thanks for any assistance!
>         >         
>         >         Van 
>         >         
>         >         ____________________________________________________
>         >         
>         >         The information contained in and transmitted with
>         >         this e-mail is confidential. It is intended only for
>         >         the individual or entity designated above. You are
>         >         hereby notified that any dissemination,
>         >         distribution, copying or use of or reliance on the
>         >         information contained in and transmitted with this
>         >         e-mail by or to anyone other than the recipient
>         >         designated above by the sender is unauthorized and
>         >         strictly prohibited. If you have received this
>         >         e-mail in error, please contact the sender
>         >         immediately and notify them that you received this
>         >         in error. Any e-mail erroneously transmitted to you
>         >         should be immediately destroyed. Thank you for your
>         >         attention to this note of confidentiality. 
>         >         
>         >         
>         >         
>         >         ------------------------------------------------------------------------------
>         >         Crystal Reports - New Free Runtime and 30 Day Trial
>         >         Check out the new simplified licensing option that
>         >         enables
>         >         unlimited royalty-free distribution of the report
>         >         engine
>         >         for externally facing server and web deployment.
>         >         http://p.sf.net/sfu/businessobjects
>         >         _______________________________________________
>         >         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
>         >         
>         > 
>         > 
>         > 
>         > ------------------------------------------------------------------------------
>         > Crystal Reports - New Free Runtime and 30 Day Trial
>         > Check out the new simplified licensing option that enables 
>         > unlimited royalty-free distribution of the report engine 
>         > for externally facing server and web deployment. 
>         > http://p.sf.net/sfu/businessobjects
>         > _______________________________________________ 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
>         > 
>         
>         ______________________________________________________________
>         The information contained in and transmitted with this e-mail
>         is confidential. It is intended only for the individual or
>         entity designated above. You are hereby notified that any
>         dissemination, distribution, copying or use of or reliance on
>         the information contained in and transmitted with this e-mail
>         by or to anyone other than the recipient designated above by
>         the sender is unauthorized and strictly prohibited. If you
>         have received this e-mail in error, please contact the sender
>         immediately and notify them that you received this in error.
>         Any e-mail erroneously transmitted to you should be
>         immediately destroyed. Thank you for your attention to this
>         note of confidentiality. 
>         
>         
>         
>         
>         ------------------------------------------------------------------------------
>         Crystal Reports - New Free Runtime and 30 Day Trial
>         Check out the new simplified licensing option that enables
>         unlimited royalty-free distribution of the report engine
>         for externally facing server and web deployment.
>         http://p.sf.net/sfu/businessobjects
>         _______________________________________________
>         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
>         
> 
> 
> 
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables 
> unlimited royalty-free distribution of the report engine 
> for externally facing server and web deployment. 
> http://p.sf.net/sfu/businessobjects
> _______________________________________________ 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


The information contained in and transmitted with this e-mail is confidential.  It is intended only for the individual or entity designated above. You are hereby notified that any dissemination, distribution, copying or use of or reliance on the information contained in and transmitted with this e-mail by or to anyone other than the recipient designated above by the sender is unauthorized and strictly prohibited.  If you have received this e-mail in error, please contact the sender immediately and notify them that you received this in error.  Any e-mail erroneously transmitted to you should be immediately destroyed.  Thank you for your attention to this note of confidentiality. 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20090518/a7489eb6/attachment.html>


More information about the Help mailing list