When you say the same config file, do you mean the same /usr/local/nagios/etc/services/localhost.cfg or the same nagios.cfg?
Can you PM me both of your XI profiles (I'm assuming both machines are XI)? You can download it by going to Admin > System Config > System Profile and click the Download Profile button towards the top. If for whatever reason you *cannot* download the profile, please put the output of View System Info (5.3.4+, Show Profile if older) in the thread (that will at least get us some info).
After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.
If both machines are not XI, what version(s) of Core are you using? Were they compiled from source or installed from distro repos? On what OS/version are they running? cat /etc/*-release may be of use. Also, if not XI, can you send your localhost.cfg and nagios.cfg. With the XI profile, I shouldn't need those separately.
Ichecked, and both of the files, you mentioned are the same on the two machine. Both system is nagiosXI.
On DEV, I can apply changes without problem, But on PROD it fails, with the following error:
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/localhost.cfg', starting on line 93)
Thanks!
profile_DEV.zip
profile_PROD.zip
You do not have the required permissions to view the files attached to this post.
It could be that the configs stored in the MYSQL database are out of sync and that could be causing the error.
If you follow this procedure, that should sync them up and you should be able to Apply the Config.
Go to the Core Config Manager
Under "Tools", click "Write Config Files" or if you are running a newer versions of XI, The menu is called "Config File Management"
Click the click the "Write" button, then the "Delete" button then click the "Write" button and then the "Verify" button
If you get any errors, resolve them and click on the "Write", "Verify" until all of the errors are resolved.
Click the Apply Configuration link and click the "Apply Configuration" button
Be sure to check out our Knowledgebase for helpful articles and solutions!
I've done it several times, but all the same.
Config verification is ok, but apply config fails.
I've removed localhost from linux-server server group, so could delete ssh service (which is in line no. 93), but after that, the error is the same. (localhost.cfg written back, by the system, and apply config fails again.)
All the other hosts, services, changes I was mafe, works fine. How can I delete localhost from appliance?
Thanks!
You do not have the required permissions to view the files attached to this post.
"Are you correcting it on the file, or in the Core Config Manager? "
Correcting it in command line, then click on ccm "Write config" then to "Verify config" buttons.
All the command sais it's CET, 12.51:xx now.
(The server is in Hungary.)
"Are you correcting it on the file, or in the Core Config Manager? "
Correcting it in command line, then click on ccm "Write config" then to "Verify config" buttons.
All the command sais it's CET, 12.51:xx now.
(The server is in Hungary.)
Correcting it on the command line won't help since it's in the database already. You'll need to modify it in the Core Config Manager to be proper, and then run a delete -> write -> verify.