So, for my internship project I need to install Nagios and configure it on a couple of machines. This all worked fine with the check_nt plugin, but now it's time to use the check_npre plugin as the servers that need to be checked run on OpenSUSE.
For installing NRPE on the server that will be monitored I followed a small tutorial and that worked fine. I tested it local, and it seems to be fine, thus I am fairly sure that the problem lies not there.
When I run the /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg command, I get the following output:
Code: Select all
[root@localhost libexec]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios Core 4.0.8
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-12-2014
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Error: Service check command 'check_nrpe!check_sda1' specified in service '/dev/hda1 Free Space' for host 'remotehost' not defined anywhere!
Error: Service check command 'check_nrpe!check_load' specified in service 'CPU Load' for host 'remotehost' not defined anywhere!
Error: Service check command 'check_nrpe!check_users' specified in service 'Current Users' for host 'remotehost' not defined anywhere!
Error: Service check command 'check_nrpe!check_total_procs' specified in service 'Total Processes' for host 'remotehost' not defined anywhere!
Error: Service check command 'check_nrpe!check_zombie_procs' specified in service 'Zombie Processes' for host 'remotehost' not defined anywhere!
Checked 13 services.
Checked 2 hosts.
Checked 1 host groups.
Checked 0 service groups.
Checked 1 contacts.
Checked 1 contact groups.
Checked 24 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 2 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 5
***> One or more problems was encountered while running the pre-flight check...
Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.
[root@localhost libexec]#If somebody could give me a push in the right direction, that would be great!