Привет!
Помогите пожалуйста разобраться в проблеме.
Есть 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
Бьюсь третий день, может кто сталкивался? :(