[Nagiosplug-help] check_url.pl plugin
Philip Marcus
pmarcus at factual.com
Mon May 18 18:14:37 CEST 2009
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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20090518/03401c1b/attachment.html>
More information about the Help
mailing list