Plugin Problem
Stephan Janosch
Stephan.Janosch at interface-business.de
Mon Jan 31 12:03:04 CET 2005
Yatindra Ranpura wrote:
> Hi all,
>
> Im new to Nagios, need some help getting the plugins working,
> im using mandrake 10 and installed nagios 1.2
>
> it shows few red hosts im trying to monitor and error is (Return code of
> 127 is out of bounds - plugin may be missing)
>
> Please Help !!!
>
> Yatindra
>
>
Try a look into your command definitions. These commands call the
plugins. Sometimes there are macros used in these commands, macros are
definded in resources.cfg file.
So make sure, that the plugin is really aviable.
i give you a short example:
define service {
use generic-service
host_name <host>
service_description PING
check_command check-host-alive
contact_groups <group>
}
So the command is check-host-alive . So we look an this command.
define command {
command_name check-host-alive
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w
3000.0,80%
-c 5000.0,100% -p 1
}
There we see, that a plugin named check_ping is called. But where should
that plugin be located? We have to examine resources.cfg:
# Sets $USER1$ to be the path to the plugins
$USER1$=/usr/local/libexec/nagios
So we know: The plugin should be at /usr/local/libexec/nagios/check_ping
So, try to verify, that your plugins are properly installed and the
references are correct. Also check, that these plugins can be executed
by your nagios user.
Regards, Stephan
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
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