Please Help: I am trying to get Nagios running on another box (RedHat) and when I run "/usr/bin/nagios -v /etc/nagios/nagios.cfg" I get the following output:
Running pre-flight check on configuration data...
Checking services...
Checked 5 services.
Checking hosts...
Warning: Host '01' has no services associated with it!
Warning: Host '02' has no services associated with it!
Warning: Host '03' has no services associated with it!
Warning: Host '04' has no services associated with it!
Warning: Host '05' has no services associated with it!
Checked 6 hosts.
Checking host groups...
Checked 1 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 1 contacts.
Checking contact groups...
Checked 1 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 22 commands.
Checking time periods...
Checked 1 time periods.
Checking extended host info definitions...
Checked 0 extended host info definitions.
Checking extended service info definitions...
Checked 0 extended service info definitions.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 5
Total Errors: 0
The concern being "Warning: Host X has no services associated with it!" When I check the web interface to view the actual host detail I dfind the following: " (Return code of 127 is out of bounds - plugin may be missing)
I've checked the plugin location: /usr/lib/nagios/plugins/
When I need to run one of the plugins I need to add a ./ in order to run said command: i.e. ./check_http -H
www.mydomain.comI get a valid return from the host. Here is a sample from my "checkcommands.cfg":
# 'check_ping' command definition
define command{
command_name check_ping
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5
}
Here is a sample from my hosts.cfg:
define host{
use generic-host
host_name 01
alias 01
address xxx.xxx.xxx.xxx
check_command check_ping
max_check_attempts 10
notification_interval 120
notification_period 24x7
notification_options d,r
contact_groups admins
}
I've also checked the nagios.cfg and the location of the cfg seems to be ok: cfg_file=/etc/nagios/check
commands.c
fg
Can someone please help: I have no idea what I'm doing wrong and I'm totally new to linux. It took over a day to set this up and I can't figure this one little thing out. I'm sure if i resolve this the hosts will start producing usable data.