apply config fail
Posted: Tue Mar 31, 2015 10:11 am
hi all,
When running Apply Configuration on a Nagios 2014R2.6 / Core 4.0.8 machine I get two messages.
1. Not an error, but strange as the file does not exist and I have no services by that name anymore.
2. Error
There were also til-svr-010-oracle services linked to oss-svr-010, but I renamed them via XI.
The weird bit is that when I try to locate either til-svr-010-oracle.cfg or oss-svr-015-oracle.cfg, they both don“t exist on that location.
I tried the following:
manual check across the services and hosts for a mismatch.
updatedb
./repairmysql.sh nagios
write config files, clicked delete - write - verify
Still the same errors.
The renaming I did was after I got these errors, I thought that it could have something to do with it.
I suspect that an ex co-worker did some renaming and editing from the commandline as he was more comfortable with that. But not sure.
I am at the point of throwing both hosts and their services out, but then I lose the history and I still have no clue as to what went wrong.
When running Apply Configuration on a Nagios 2014R2.6 / Core 4.0.8 machine I get two messages.
1. Not an error, but strange as the file does not exist and I have no services by that name anymore.
There were oss-svr-015-oracle services linked to oss-svr-015. I renamed them via XI.Write host configurations ...
Host configuration files successfully written!
Write service configurations ...
Configuration file: oss-svr-015-oracle.cfg successfully written!
Service configuration files successfully written!
2. Error
There is an active host named til-svr-010Error: Could not find any host matching 'til-svr-010' (config file '/usr/local/nagios/etc/services/til-svr-010-oracle.cfg', starting on line 337)
Error: Could not expand hostgroups and/or hosts specified in service (config file '/usr/local/nagios/etc/services/til-svr-010-oracle.cfg', starting on line 337)
There were also til-svr-010-oracle services linked to oss-svr-010, but I renamed them via XI.
The weird bit is that when I try to locate either til-svr-010-oracle.cfg or oss-svr-015-oracle.cfg, they both don“t exist on that location.
I tried the following:
manual check across the services and hosts for a mismatch.
updatedb
./repairmysql.sh nagios
write config files, clicked delete - write - verify
Still the same errors.
The renaming I did was after I got these errors, I thought that it could have something to do with it.
I suspect that an ex co-worker did some renaming and editing from the commandline as he was more comfortable with that. But not sure.
I am at the point of throwing both hosts and their services out, but then I lose the history and I still have no clue as to what went wrong.