administrator@Nagios:~$ sudo service nagios stop
[sudo] password for administrator:
administrator@Nagios:~$ killall nagios
nagios: no process found
administrator@Nagios:~$
# Definitions for monitoring the local (Linux) host
# cfg_file=/usr/local/nagios/etc/objects/localhost.cfg
# Definitions for monitoring a Windows machine
# cfg_file=/usr/local/nagios/etc/objects/windows.cfg <-------- just commented out
# Definitions for monitoring a router/switch
#cfg_file=/usr/local/nagios/etc/objects/switch.cfg
# Definitions for monitoring a network printer
#cfg_file=/usr/local/nagios/etc/objects/printer.cfg
Nagios service fails to start;
administrator@Nagios:~$ sudo /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios Core 4.1.0rc1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 02-18-2015
License: GPL
Website:
http://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Could not find any hostgroup matching 'windows-servers' (config file '/usr/local/nagios/etc/objects/xxxxxxxx.cfg', starting on line 4)
Error: Failed to process hostgroup names for host 'xxxxxxxxxx' (config file '/usr/local/nagios/etc/objects/xxxxxxxxx.cfg', starting at line 4)
Error processing object config files!
***> One or more problems was encountered while processing the config files...
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.