We have a nagios installed on a vmware server, after to restore a snapshot, when we install new configuration from the "apply configuration" tool an error related to a file always appears:
Error: Could not register host (config file '/usr/local/nagios/etc/services/xxxx.cfg', starting on line 16)
We tried to create this file manually, to delete it, but always the same error appears, even if the file doesn't exits or is empty, always making reference to line 16
Searching in the forum I found a very similar case:
http://support.nagios.com/forum/viewtop ... er+service
Error when applying configuration
Re: Error when applying configuration
Have you attempted running the following:
If that doesn't work, would you please try running the Delete -> Write -> Verify loop?
Code: Select all
cd /usr/local/nagiosxi/scripts/
./reconfigure_nagios.shYou do not have the required permissions to view the files attached to this post.
Re: Error when applying configuration
Hello,
Both tests seems to work ok, ./reconfigure_nagios.sh and to delete config and write again, but when I try to install configuration using "Apply configuration" the same error about the same file appears again:
Error: Service description, host name, or check command is NULL
Error: Could not register service (config file '/usr/local/nagios/etc/services/name.cfg starting on line 16)
no matter if the file exists or not, if I create the file or if I delete and create the host and the service in CCM, always the same error.
Both tests seems to work ok, ./reconfigure_nagios.sh and to delete config and write again, but when I try to install configuration using "Apply configuration" the same error about the same file appears again:
Error: Service description, host name, or check command is NULL
Error: Could not register service (config file '/usr/local/nagios/etc/services/name.cfg starting on line 16)
no matter if the file exists or not, if I create the file or if I delete and create the host and the service in CCM, always the same error.
Re: Error when applying configuration
perhaps you already created a plugin or command of the one you trying now and its configured incorrectly
Double check commands and services in the core config manager to see if its already created and delete it.
Double check commands and services in the core config manager to see if its already created and delete it.
Re: Error when applying configuration
No, that was one of the first things we checked when the problem began, and it's ok...
Re: Error when applying configuration
Would you mind taking a profile.zip and sending it my way via PM?
You do not have the required permissions to view the files attached to this post.
Re: Error when applying configuration
morabanc wrote:Hello,
Both tests seems to work ok, ./reconfigure_nagios.sh and to delete config and write again, but when I try to install configuration using "Apply configuration" the same error about the same file appears again:
Error: Service description, host name, or check command is NULL
Error: Could not register service (config file '/usr/local/nagios/etc/services/name.cfg starting on line 16)
no matter if the file exists or not, if I create the file or if I delete and create the host and the service in CCM, always the same error.
Could you please try switching user to the nagios user and running reconfigure_nagios.sh please?
Code: Select all
su - nagios
cd /usr/local/nagiosxi/scripts/
./reconfigure_nagios.shPlease report the output here.
Re: Error when applying configuration
Hello,
I attach the output of the reconfigure_nagios script with user nagios. I can't attach profile.zip, the size is about 8MB, maybe it reaches the maximum size? Can I send it in other way?
I attach the output of the reconfigure_nagios script with user nagios. I can't attach profile.zip, the size is about 8MB, maybe it reaches the maximum size? Can I send it in other way?
You do not have the required permissions to view the files attached to this post.
Re: Error when applying configuration
Could you go in to Core Config Manager, hosts and search for that host and click on the View Text Config button "Floppy Icon" copy the settings and post it to the forum so we can view it?
Be sure to check out our Knowledgebase for helpful articles and solutions!