URL: https://www.opennet.me/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID1
Нить номер: 85366
[ Назад ]

Исходное сообщение
"Nagios: Return code of 127 is out of bounds - plugin may be ..."

Отправлено EDV , 21-Май-09 14:42 
Привет!
Помогите пожалуйста разобраться в проблеме.
Есть Nagios 3.0.6 с установленными плагинами и NConf. При использовании конфигов которые идут в качестве семплов с нагиосом, все работает. При использовании конфигов сгенереных Nconf выдает следующую ошибку:

Warning: Return code of 127 for check of service 'check_local_disk' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists.

В resources.conf путь к плагинам:
$USER1$=/usr/local/libexec/nagios права на них 777.

в global/commands.cfg все команды совпадаю с командами в object/commands.cfg формата:
define command {
                command_name                          check_ping
                command_line                          $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5
}

В nagios.cfg кусок отвечающий за то где искать конфиги изменен:

# OBJECT CONFIGURATION FILE(S)
# These are the object configuration files in which you define hosts,
# host groups, contacts, contact groups, services, etc.
# You can split your object definitions across several config files
# if you wish (as shown below), or keep them all in a single config file.

# You can specify individual object config files as shown below:
#cfg_file=/usr/local/etc/nagios/objects/commands.cfg
#cfg_file=/usr/local/etc/nagios/objects/contacts.cfg
#cfg_file=/usr/local/etc/nagios/objects/timeperiods.cfg
#cfg_file=/usr/local/etc/nagios/objects/templates.cfg

# Definitions for monitoring the local (FreeBSD) host
#cfg_file=/usr/local/etc/nagios/objects/localhost.cfg

# Definitions for monitoring a Windows machine
#cfg_file=/usr/local/etc/nagios/objects/windows.cfg

# Definitions for monitoring a router/switch
#cfg_file=/usr/local/etc/nagios/objects/switch.cfg

# Definitions for monitoring a network printer
#cfg_file=/usr/local/etc/nagios/objects/printer.cfg


# You can also tell Nagios to process all config files (with a .cfg
# extension) in a particular directory by using the cfg_dir
# directive as shown below:

#cfg_dir=/usr/local/etc/nagios/servers
#cfg_dir=/usr/local/etc/nagios/printers
#cfg_dir=/usr/local/etc/nagios/switches
#cfg_dir=/usr/local/etc/nagios/routers

cfg_dir=/usr/local/etc/nagios/global
cfg_dir=/usr/local/etc/nagios/Default_collector


Бьюсь третий день, может кто сталкивался? :(


Содержание

Сообщения в этом обсуждении
"Nagios: Return code of 127 is out of bounds - plugin may be ..."
Отправлено Michael , 21-Май-09 14:52 

>Warning: Return code of 127 for check of service 'check_local_disk' on host
>'localhost' was out of bounds. Make sure the plugin you're trying
>to run actually exists.

знакомая ошибка. пути проверяли? пермишны на плагин верные стоят?



"Nagios: Return code of 127 is out of bounds - plugin may be ..."
Отправлено EDV , 21-Май-09 14:59 
>
>>Warning: Return code of 127 for check of service 'check_local_disk' on host
>>'localhost' was out of bounds. Make sure the plugin you're trying
>>to run actually exists.
>
>знакомая ошибка. пути проверяли? пермишны на плагин верные стоят?

watcher# cat resource.cfg

# Sets $USER1$ to be the path to the plugins
$USER1$=/usr/local/libexec/nagios

watcher# ls -l /usr/local/libexec/nagios
total 1582
-rwxrwxrwx  1 root  wheel   83096 May 19 18:30 check_apt
-rwxrwxrwx  1 root  wheel    2285 May 19 18:30 check_breeze
-rwxrwxrwx  1 root  wheel   30128 May 19 18:30 check_by_ssh
lrwxr-xr-x  1 root  wheel       9 May 19 18:30 check_clamd -> check_tcp
-rwxrwxrwx  1 root  wheel   18692 May 19 18:30 check_cluster
-rwxrwxrwx  1 root  wheel   30252 May 19 18:30 check_dhcp
-rwxrwxrwx  1 root  wheel   27120 May 19 18:30 check_dig
-rwxrwxrwx  1 root  wheel   96772 May 19 18:30 check_disk
-rwxrwxrwx  1 root  wheel    8168 May 19 18:30 check_disk_smb
-rwxrwxrwx  1 root  wheel   30256 May 19 18:30 check_dns
...
и так далее


"Nagios: Return code of 127 is out of bounds - plugin may be ..."
Отправлено Michael , 21-Май-09 17:38 
покажите часть конфига, где прописан check_local_disk