Error code: 9.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
habuhejleh
Posts: 32
Joined: Thu Feb 08, 2018 3:24 am

Error code: 9.

Post by habuhejleh »

Dear ,

We are facing problem in our Nagios XI version when we apply the configuration it takes long time verifying then give the below error:

There was an error while attempting to apply configuration. Error code: 9.

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.


Our Nagios XI version is 5.4.12 and it is installed on VM.

Please advise ASAP.

Best regards,
Haitham
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Error code: 9.

Post by npolovenko »

Hello, @habuhejleh. In XI web interface please go to Configure -> Core Configurations Manager, then click on Tools -> Config File Management in the left column. Then perform the following actions in order:

Code: Select all

1)Write
2)Delete
3)Write
4)Verify
Please post any errors after clicking the "Verify" button.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
habuhejleh
Posts: 32
Joined: Thu Feb 08, 2018 3:24 am

Re: Error code: 9.

Post by habuhejleh »

Hello ,
I did and I get the below verification result in the attachment:
Verification

and when I do apply configuration it takes long time (10 minutes) then gives me he below error in the attached:
Apply config Error

Please advise ASAP.

Thank you,
Haitham
You do not have the required permissions to view the files attached to this post.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Error code: 9.

Post by npolovenko »

@habuhejleh, Please establish SSH session to the Nagios console. Switch to the nagios user:

Code: Select all

su - nagios
And run the following script as nagios user:

Code: Select all

/usr/local/nagiosxi/scripts/reconfigure_nagios.sh
Please let me know of the output.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
habuhejleh
Posts: 32
Joined: Thu Feb 08, 2018 3:24 am

Re: Error code: 9.

Post by habuhejleh »

We got the below error after executing the command:
RESETTING CONFIG PERMS FAILED!\n


Also you can see failures in the GUI as attached. Please advise asap.
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: Error code: 9.

Post by scottwilkerson »

From that screenshot I can see there are database errors, please run these steps
https://assets.nagios.com/downloads/nag ... tabase.pdf

then, also return the results of

Code: Select all

getenforce
grep NAGIOS /etc/sudoers
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
habuhejleh
Posts: 32
Joined: Thu Feb 08, 2018 3:24 am

Re: Error code: 9.

Post by habuhejleh »

Databases were repaired by the script.
Here is the output of the commands you requested:
[nagiosadmin@um-isp-nagios-redline ~]$ getenforce
Disabled
[nagiosadmin@um-isp-nagios-redline ~]$ grep NAGIOS /etc/sudoers
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/php /usr/local/nagiosxi/html/includes/components/autodiscovery/scripts/autodiscover_new.php *
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/html/includes/components/profile/getprofile.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/upgrade_to_latest.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/change_timezone.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/manage_services.sh *
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/reset_config_perms.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/backup_xi.sh *
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/messages
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/httpd/error_log
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/mysqld.log
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/php /usr/local/nagiosxi/html/includes/components/autodiscovery/scripts/autodiscover_new.php *
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/html/includes/components/profile/getprofile.sh
NAGIOSXIWEB ALL = NOPASSWD:/etc/init.d/snmptt restart
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/scripts/repair_databases.sh
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/scripts/manage_services.sh *
[nagiosadmin@um-isp-nagios-redline ~]$

We are still having the same problem when applying the configuration, it takes 10 minutes in verifying the configuration then gives the below error:
here was an error while attempting to apply configuration. Error code: 9.
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.

Please advise how to solve this problem asap
You do not have the required permissions to view the files attached to this post.
habuhejleh
Posts: 32
Joined: Thu Feb 08, 2018 3:24 am

Re: Error code: 9.

Post by habuhejleh »

Please advise...
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Error code: 9.

Post by scottwilkerson »

Please send a copy of profile.zip from Admin -> System Profile

Thanks!
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
habuhejleh
Posts: 32
Joined: Thu Feb 08, 2018 3:24 am

Re: Error code: 9.

Post by habuhejleh »

Done. Please advise.
You do not have the required permissions to view the files attached to this post.
Locked