Nagios Apply Configuration on Browser

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
haile711
Posts: 197
Joined: Thu May 28, 2015 7:36 am

Nagios Apply Configuration on Browser

Post 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.
You do not have the required permissions to view the files attached to this post.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios Apply Configuration on Browser

Post by tmcdonald »

What XI version is this? What is shown if you click "Show Errors"?
Former Nagios employee
haile711
Posts: 197
Joined: Thu May 28, 2015 7:36 am

Re: Nagios Apply Configuration on Browser

Post 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.
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios Apply Configuration on Browser

Post 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
haile711
Posts: 197
Joined: Thu May 28, 2015 7:36 am

Re: Nagios Apply Configuration on Browser

Post 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.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios Apply Configuration on Browser

Post 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.
haile711
Posts: 197
Joined: Thu May 28, 2015 7:36 am

Re: Nagios Apply Configuration on Browser

Post by haile711 »

im getting "nagios is not allowed to run sudo on xxxx. This incident will be reported.
Request rejected by Privilege Manager"
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios Apply Configuration on Browser

Post by abrist »

Can you post your sudoers file (in code wraps)?

Code: Select all

cat /etc/sudoers
Also, what is the output of:

Code: Select all

visudo -c
grep manage_service /usr/local/nagiosxi/scripts/restart_nagios_with_export.sh
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
haile711
Posts: 197
Joined: Thu May 28, 2015 7:36 am

Re: Nagios Apply Configuration on Browser

Post 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!!
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios Apply Configuration on Browser

Post 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 *
?
Locked