Re: Could not find any hostgroup matching 'general-servers'
Posted: Sat Sep 21, 2013 3:16 pm
OK, I defined my hostgroups. The instructions never told me to do that saying they would be generated anyway. My mistake. Sanity check still fails with
Here are the contents of services_nagios2.cfg
These were taken from the guide.
Code: Select all
Processing object config file '/etc/nagios/conf.d/services_nagios2.cfg'...
Error: Could not expand hostgroups and/or hosts specified in service (config file '/etc/nagios/conf.d/services_nagios2.cfg', starting on line 42)
Error processing object config files!
Here are the contents of services_nagios2.cfg
Code: Select all
# NRPE Services
define service {
hostgroup_name local-servers
service_description SSH
check_command check_ssh
use generic-service
notification_interval 0
}
define service {
hostgroup_name generic-servers
service_description Current Users NRPE
check_command check_nrpe_1arg!check_users
use generic-service
notification_interval 0
}
define service {
hostgroup_name generic-servers
service_description Current Load NRPE
check_command check_nrpe_1arg!check_load
use generic-service
notification_interval 0
}
define service {
hostgroup_name generic-servers
service_description Disk Space NRPE
check_command check_nrpe_1arg!check_all_disks
use generic-service
notification_interval 0
}
define service {
hostgroup_name generic-servers
service_description Zombie Processes NRPE
check_command check_nrpe_1arg!check_zombie_procs
use generic-service
notification_interval 0
}
define service {
hostgroup_name generic-servers
service_description Total Processes NRPE
check_command check_nrpe_1arg!check_total_procs
use generic-service
notification_interval 0
}