Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
I started playing with servicegroups.cfg file.
I wanted to create service groups for each windows disk. In the configuration I used:
define servicegroup {
servicegroup_name sg-c
alias C:\
}
But when I ran the check, it error out:
Read main config file okay...
Error: Unexpected start of object definition in file '/usr/local/nagios/etc/objects/servicegroups.cfg' on line 11. Make sure you close preceding objects before starting a new one.
Error processing object config files!
So I changed it to:
define servicegroup {
servicegroup_name sg-c
alias C:\\
}
So I get:
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
But the Nagios wouldn't display on the web pages. I decided to change the service groups to:
define servicegroup {
servicegroup_name sg-c
alias C Drive
}