Page 1 of 2
Nagios Apply Configuration on Browser
Posted: Tue Jun 16, 2015 12:45 pm
by haile711
To Nagios Community,
I have been running into the issue with the "Apply Configuration" on CCM on the browser, it has never worked for me, and I keep having to us ./reconfigure_nagios.sh to apply my changes. Please take a look at the attached image. I am missing some configs, or permission issue. Thanks for your time.
Re: Nagios Apply Configuration on Browser
Posted: Tue Jun 16, 2015 12:47 pm
by tmcdonald
What XI version is this? What is shown if you click "Show Errors"?
Re: Nagios Apply Configuration on Browser
Posted: Tue Jun 16, 2015 2:00 pm
by haile711
Hey tmcdonald,
Version is Nagios XI 2014R2.7 version=4.0.8. Seems like that server is stuck on this one specific error, and I dunno how to clear it.
Re: Nagios Apply Configuration on Browser
Posted: Tue Jun 16, 2015 2:13 pm
by ssax
Are you running the reconfigure_nagios.sh as root?
If so, try running it as nagios to see if it errors and post the full output in code tags:
Code: Select all
su - nagios
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh
Re: Nagios Apply Configuration on Browser
Posted: Tue Jun 16, 2015 2:23 pm
by haile711
hey ssax,
I have no issue running the ./reconfigure_nagios.sh as root without an errors, the error u see above is from the Browser under CCM "Apply Configuration" button.
Re: Nagios Apply Configuration on Browser
Posted: Tue Jun 16, 2015 2:28 pm
by ssax
Did you try running it as the nagios user though? That's what I want to see, when you run it through the browser it runs it as nagios and we need to see what is really going on during that.
Re: Nagios Apply Configuration on Browser
Posted: Tue Jun 16, 2015 2:47 pm
by haile711
im getting "nagios is not allowed to run sudo on xxxx. This incident will be reported.
Request rejected by Privilege Manager"
Re: Nagios Apply Configuration on Browser
Posted: Tue Jun 16, 2015 2:50 pm
by abrist
Can you post your sudoers file (in code wraps)?
Also, what is the output of:
Code: Select all
visudo -c
grep manage_service /usr/local/nagiosxi/scripts/restart_nagios_with_export.sh
Re: Nagios Apply Configuration on Browser
Posted: Tue Jun 16, 2015 3:52 pm
by haile711
Hey guys, i've got it working from an older post. I had to remove "sudo" in from of $BASEDIR/manage_services.sh. Thanks all!!
Re: Nagios Apply Configuration on Browser
Posted: Tue Jun 16, 2015 4:03 pm
by ssax
haile711, humor me for a second, does your /etc/sudoers file contain:
Code: Select all
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/scripts/manage_services.sh *
?