Hi,
many thanks for this post. My environment is CentOS 7, Apache 2.4.6, Nagios Core 4.1.1.
nagios1000:nagios,apache
nagcmd1001:nagios,apache
Fixed it for me, I was missing nagios,apache part on the first line.
Error: Could not read object configuration data!
Re: Error: Could not read object configuration data!
Great to hear! Are we all clear to close this thread?
Former Nagios employee
Re: Error: Could not read object configuration data!
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
}
Everything is FAT, DUMB, & HAPPY now.
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
}
Everything is FAT, DUMB, & HAPPY now.
Dan Wall
Systems Engineer
Systems Engineer
Re: Error: Could not read object configuration data!
Thanks for updating, but I am going to lock this since the issue has been resolved.
Former Nagios employee