Apply Config will not restart
Apply Config will not restart
Dear Nagios Support Team,
we have an issue with the Verification of the Configuration. If we want to Apply the Configuration we run into the following error:
Applying Configuration
Command submitted for processing...
Waiting for configuration verification...............
Nagios restart command failed.
An error occurred while attempting to apply your configuration to Nagios Core. Monitoring engine configuration files have been rolled back to their last known good checkpoint.
The Write Config Tool can't find any Errors.
And I have been already through this documentation:
http://support.nagios.com/wiki/index.ph ... n_Problems
Please find attached our Nagios profile.txt and the created cmd.txt and reconfig.txt. If you need further information, please contact us.
Thank you very much for your help!
Best regards,
Heiko Bornemann
we have an issue with the Verification of the Configuration. If we want to Apply the Configuration we run into the following error:
Applying Configuration
Command submitted for processing...
Waiting for configuration verification...............
Nagios restart command failed.
An error occurred while attempting to apply your configuration to Nagios Core. Monitoring engine configuration files have been rolled back to their last known good checkpoint.
The Write Config Tool can't find any Errors.
And I have been already through this documentation:
http://support.nagios.com/wiki/index.ph ... n_Problems
Please find attached our Nagios profile.txt and the created cmd.txt and reconfig.txt. If you need further information, please contact us.
Thank you very much for your help!
Best regards,
Heiko Bornemann
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Apply Config will not restart
Can you run the following from the command line
I am thinking that somehow the pid file is missing or maybe we have multiple copies of Nagios running.
Code: Select all
service nagios stop
killall -9 nagios
service nagios startRe: Apply Config will not restart
Hi,
I am sorry for the late reply.
And I am sorry, but your solution did not work unfortunatly.
the command "killall -9 nagios" couldn't find any processes.
Any other ideas?
Thanks!
Heiko
I am sorry for the late reply.
And I am sorry, but your solution did not work unfortunatly.
the command "killall -9 nagios" couldn't find any processes.
Any other ideas?
Thanks!
Heiko
Re: Apply Config will not restart
You're running XI on Fedora 15, which is not a supported platform for Nagios XI. Here's your problem:
System Profile:
System Profile:
Fedora release 15 (Lovelock)
systemctl is preventing the restart command from working.Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
RET: 0
Failed to issue method call: Access denied
Restarting nagios (via systemctl): [FAILED]
OUTPUT=Restarting nagios (via systemctl): [FAILED]
RETURNCODE=6
Re: Apply Config will not restart
Thanks for the replay.
But than I have one more question, please.
Why can I restart nagios than, if I am using "Tools -> Write Config Files" in the Nagios Core Config Manager?
But than I have one more question, please.
Why can I restart nagios than, if I am using "Tools -> Write Config Files" in the Nagios Core Config Manager?
Re: Apply Config will not restart
And why is it not supported?
In your System Requirements Fedora is listed.
It would be great, if you could help me.
Thanks!
In your System Requirements Fedora is listed.
It would be great, if you could help me.
Thanks!
Re: Apply Config will not restart
Could you, please, show us where did you see Fedora listed as "supported" OS? It is not supported and we must rectify this if we made a mistake. Here's what we have on our wiki page and on the Administrators Guide:
http://support.nagios.com/wiki/index.ph ... tributions
http://assets.nagios.com/downloads/nagi ... quirements
Did you look at some other place? Can you provide a URL?
http://support.nagios.com/wiki/index.ph ... tributions
http://assets.nagios.com/downloads/nagi ... quirements
Did you look at some other place? Can you provide a URL?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Apply Config will not restart
I found it in your pdf file.
Here: http://assets.nagios.com/datasheets/nag ... atures.pdf
On the last page is a System Requirements box.
Everything is working fine, only this "Apply Configuration" button is not.
Here: http://assets.nagios.com/datasheets/nag ... atures.pdf
On the last page is a System Requirements box.
Everything is working fine, only this "Apply Configuration" button is not.
Re: Apply Config will not restart
This document hasn't been updated for a while... We will have to go over it... Regarding the Apply Configuration, our script uses:
It seems like, for some reason, this gets "passed" to systemctl in Fedora 15. We will have to do some digging... Check what you have in the sudoers file - a simple edit may resolve your issue.
Code: Select all
/etc/init.d/nagios restartBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Apply Config will not restart
Here is the content from the sudoers file.
What needs to be changed, please?
# PNP
User_Alias NAGIOSXI=nagios
User_Alias NAGIOSXIWEB=apache
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios status
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios checkconfig
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db status
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd status
NAGIOSXI ALL = NOPASSWD:/usr/bin/nmap *
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/nmap *
What needs to be changed, please?
# PNP
User_Alias NAGIOSXI=nagios
User_Alias NAGIOSXIWEB=apache
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios status
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios checkconfig
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db status
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd status
NAGIOSXI ALL = NOPASSWD:/usr/bin/nmap *
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/nmap *