Nagios XI 5.2.0 upgrade - Apply configuration not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios XI 5.2.0 upgrade - Apply configuration not workin

Post by tgriep »

Were you logged in as root when you ran ./reconfigure_nagios.sh or logged in as the nagios user?
Try this and post back the results.

Code: Select all

su nagios
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh
Be sure to check out our Knowledgebase for helpful articles and solutions!
amit.ahuja
Posts: 113
Joined: Fri May 15, 2015 8:20 am

Re: Nagios XI 5.2.0 upgrade - Apply configuration not workin

Post by amit.ahuja »

Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check
RET: 0
nagios is not allowed to run sudo on esu4v187. This incident will be reported.
Request rejected by Privilege Manager
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios XI 5.2.0 upgrade - Apply configuration not workin

Post by tgriep »

This message
nagios is not allowed to run sudo on esu4v187. This incident will be reported.
Request rejected by Privilege Manager
Is what is causing the Apply Configuration to fail.

There must be some other type authentication running on the server which is blocking nagios from running SUDO commands.
Do you know if the system is using LDAP/AD or some kind of PAM authentication for user accounts?

Can you look in the following file on the XI system to see what the error is and post back?

Code: Select all

/var/log/secure
Be sure to check out our Knowledgebase for helpful articles and solutions!
amit.ahuja
Posts: 113
Joined: Fri May 15, 2015 8:20 am

Re: Nagios XI 5.2.0 upgrade - Apply configuration not workin

Post by amit.ahuja »

cond[11203]: pam_unix(crond:session): session opened for user nagios by (uid=0)
crond[11205]: pam_unix(crond:session): session opened for user nagios by (uid=0)
crond[11207]: pam_unix(crond:session): session opened for user nagios by (uid=0)
crond[11206]: pam_unix(crond:session): session opened for user nagios by (uid=0)
crond[11201]: pam_unix(crond:session): session opened for user nagios by (uid=0)
crond[11208]: pam_unix(crond:session): session opened for user nagios by (uid=0)
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios XI 5.2.0 upgrade - Apply configuration not workin

Post by tgriep »

I looks like you may have Privilege Manager installed in the server, it that true?
Can you run the following and post the output?

Code: Select all

sudo –U nagios -l
pmpolicy masterstatus
cat /etc/opt/quest/qpm4u/policy/sudoers
pmsrvcheck
pmsrvinfo
Thanks
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked