[Nagiosplug-help] Yet another "Return code of 127 is out of bounds - plugin may be missing" error/question
Glory Major
glorymajor at yahoo.com.br
Tue Oct 24 23:36:26 CEST 2006
Hi Bob
You should try this:
1-) Check your "checkcommands.cfg" file
# 'check_netbackup' command definition
define command{
command_name check_netbackup
command_line $USER1$/check_procs
}
2-) Check your "nagios.cfg" file and make sure the nagios is looking
the plugin command file (checkcommands.cfg) in the right dir. Generaly
in "/usr/local/nagios/etc" or "/usr/local/etc/nagios" depending
of your instalation.
3-) Check your "services.cfg" file and make sure where you declare
that service is correct. Something like:
define service{
use yourtemplate
host_name MYSERVER
service_description check_netbackup
max_check_attempts 2
normal_check_interval 2
retry_check_interval 1
check_period 24x7
notification_interval 2
notification_period 24x7
notification_options w,u,c,r
check_command check_netbackup
}
4-) Check the dir libexec of Nagios ("/usr/local/libexec/nagios"
or "/usr/local/nagios/libexec" depending of your instalation, for
the check_procs plugin, and change the permission of this file:
chown root check_procs
chmod 555 check_procs
5-) Try to run this command in the CLI as root and see if you can
get any response:
./check_procs
(should appear something like: PROCS OK: XX processes)
Then you could experiment with the args.
6-) See if you get any errors from the pre-flight check:
nagios -v nagios.cfg
I hope this helps.
Good luck.
- Glory Major
-----------------------
This thread is located in the archive at this URL:
http://www.nagiosexchange.org/nagiosplug-help.32.0.html?&tx_maillisttofaq
_pi1[showUid]=22556
More information about the Help
mailing list