After installing nagios and running through all the configuration scripts, i repeatedly run into errors of the folowing nature:
Error: Service ‘PING’ on host ‘jkuatdbs’ has already been defined
Error: Could not register service (config file ‘/usr/local/nagios/etc/services.cfg’, starting on line 1)
What is the meaning of all this because even when i change the localhost’s name i end up with "…has already been defined"
Cheers
The main configuration file for Nagios is “nagios.cfg”. This in turn points to some other configuration files. Check these (using “grep”) to see where you might have the service defined in more than one place, and delete one of them.
thanks but here is what am getting even after going through my file:
Error: Service ‘Current Load’ on host ‘localhost’ has already been defined
Error: Could not register service (config file ‘/usr/local/nagios/etc/localhost.cfg’, starting on line 301)
anyway i could change the name globally?
That error is simply telling you that the service “Current Load” for host “localhost” has been defined more than once. So don’t do that. In other words, what sense does it make, to define a check for “Current Load” 50 times more than once. It would make better sense to define other checks too, besides the same one, over and over.