Nagios2 migration issues $USER1$
Millard, Matt
Millard.Matt at principal.com
Mon Nov 28 22:47:23 CET 2005
I'm in the process of migrating to a new host and Nagios2.0b4. I've ran
into a problem where it appears that $USER1$ isn't being recognized. I
have it set to /usr/local/nagios/lib/nagios/plugins in resource.cfg,
however when I start up nagios I get the following messages in my
nagios.log:
[1133212865] Warning: Attempting to execute the command
"/usr/lib/nagios/plugins/check_host_MATT -H 999.999.999.1 -i 0.5s -p 10
-t 20" resulted in a return code of 127. Make sure the script or binary
you are trying to execute actually exists...
[1133212865] HOST ALERT: host7;DOWN;SOFT;2;(No output!)
[1133212865] Warning: Attempting to execute the command
"/usr/lib/nagios/plugins/check_host_MATT -H 999.999.999.1 -i 0.5s -p 10
-t 20" resulted in a return code of 127. Make sure the script or binary
you are trying to execute actually exists...
[1133212865] HOST ALERT: host7;DOWN;SOFT;3;(No output!)
[1133212865] Warning: Attempting to execute the command
"/usr/lib/nagios/plugins/check_host_MATT -H 999.999.999..1 -i 0.5s -p 10
-t 20" resulted in a return code of 127. Make sure the script or binary
you are trying to execute actually exists...
[1133212865] HOST ALERT: host7;DOWN;SOFT;4;(No output!)
[1133212865] Warning: Attempting to execute the command
"/usr/lib/nagios/plugins/check_host_MATT -H 999.999.999..1 -i 0.5s -p 10
-t 20" resulted in a return code of 127. Make sure the script or binary
you are trying to execute actually exists...
[1133212865] HOST ALERT: host7;DOWN;HARD;5;(No output!)
[1133212865] HOST NOTIFICATION:
admins;host7;DOWN;host-notify-by-epager;(No output!)
[1133212865] SERVICE ALERT: host7;PING;CRITICAL;HARD;1;(Return code of
127 is out of bounds - plugin may be missing)
I've even added the _MATT to verify that it's really pulling the
check_host from checkcommands.cfg. Any idea why it's not using my
defined $USER1$?
>From checkcommands.cfg:
define command {
command_name check-host-alive
command_line $USER1$/check_host_MATT -H
$HOSTADDRESS$ -i 0.5s -p 10 -t 20
}
>From nagios.cfg
resource_file=/usr/local/nagios/etc/nagios/private/resource.cfg
>From resource.cfg:
# Sets $USER1$ to be the path to the plugins
$USER1$=/usr/local/nagios/lib/nagios/plugins
Matt
-----Message Disclaimer-----
This e-mail message is intended only for the use of the individual or
entity to which it is addressed, and may contain information that is
privileged, confidential and exempt from disclosure under applicable law.
If you are not the intended recipient, any dissemination, distribution or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify us immediately by
reply email to Connect at principal.com and delete or destroy all copies of
the original message and attachments thereto. Email sent to or from the
Principal Financial Group or any of its member companies may be retained
as required by law or regulation.
Nothing in this message is intended to constitute an Electronic signature
for purposes of the Uniform Electronic Transactions Act (UETA) or the
Electronic Signatures in Global and National Commerce Act ("E-Sign")
unless a specific statement to the contrary is included in this message.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list