Page 9 of 13

Re: Nagios XI 5 Open Beta - Download Available

Posted: Wed Sep 23, 2015 12:43 pm
by BanditBBS
All of a sudden the apply configurations isn't working. It gets to "Waiting for configuration verification" and just keeps spinning and spinning.

Re: Nagios XI 5 Open Beta - Download Available

Posted: Wed Sep 23, 2015 12:57 pm
by jomann
Can you verify if the config actually applied and that the page just got stuck? Or did the config actually not apply?

Re: Nagios XI 5 Open Beta - Download Available

Posted: Wed Sep 23, 2015 1:17 pm
by WillemDH
One more thing before I go to sleep. When we run a report and export to pdf (I'm not sure if there is the same behavior for other types of export, the name of the pdf is always availibility.pdf
As I have to run multiple reports sometimes, it would be better and more convenient if all the reports were not named exactly the same. Some suggestions:

availibility-host1-YYYYMMdd-HHmmss
availibility-hostgroup-YYYYMMdd-HHmmss

By appending the host / hostgroup and the date we would not have to rename every exported pdf.
Any chance the exported pdf could get a better naming system? (Maybe in a later release)

Another question => Is there any documentation about the new REST api?

Re: Nagios XI 5 Open Beta - Download Available

Posted: Wed Sep 23, 2015 1:23 pm
by BanditBBS
jomann wrote:Can you verify if the config actually applied and that the page just got stuck? Or did the config actually not apply?
If I let it go long enough, this finally appears:

Code: Select all

Apply Configuration
Waiting for configuration verification........................................................................................................................................................................................................................................................................................................
Reset config permissions 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.
View a snapshot of this configuration error
Try Again
Show Config Changes Show Errors
I'm guessing its a sudoers issue. Is there some new command needed in XI 5.0? Our sudoers is centrally managed and the sudoers file on this host was overwritten at 8am today.

Re: Nagios XI 5 Open Beta - Download Available

Posted: Wed Sep 23, 2015 1:31 pm
by BanditBBS
WillemDH wrote:Another question => Is there any documentation about the new REST api?
yes, goto http://your server url/nagiosxi/help/# then look on menu on left.

Re: Nagios XI 5 Open Beta - Download Available

Posted: Wed Sep 23, 2015 1:43 pm
by tmcdonald
WillemDH wrote:Another question => Is there any documentation about the new REST api?
Should be present under the Help menu, but there are a few parts that still need to be worked on. I went through and tested that all in the Beta release, and found a few commands that need to be fixed but work once they are correct.

Re: Nagios XI 5 Open Beta - Download Available

Posted: Wed Sep 23, 2015 1:48 pm
by lgroschen
BanditBBS wrote:
jomann wrote:Can you verify if the config actually applied and that the page just got stuck? Or did the config actually not apply?
If I let it go long enough, this finally appears:

Code: Select all

Apply Configuration
Waiting for configuration verification........................................................................................................................................................................................................................................................................................................
Reset config permissions 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.
View a snapshot of this configuration error
Try Again
Show Config Changes Show Errors
I'm guessing its a sudoers issue. Is there some new command needed in XI 5.0? Our sudoers is centrally managed and the sudoers file on this host was overwritten at 8am today.
Can you post the snapshot? It probably has the reason for the failure in there.

Re: Nagios XI 5 Open Beta - Download Available

Posted: Wed Sep 23, 2015 1:50 pm
by BanditBBS
There is nothing wrong with the snapshot, "Reset config permissions failed" is the problem!

Re: Nagios XI 5 Open Beta - Download Available

Posted: Wed Sep 23, 2015 1:55 pm
by jolson
I'm guessing its a sudoers issue. Is there some new command needed in XI 5.0? Our sudoers is centrally managed and the sudoers file on this host was overwritten at 8am today.
The devs will certainly respond soon - but for testing, here is my sudoers file from a fresh XI 5 test machine:

Code: Select all

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
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 *

Re: Nagios XI 5 Open Beta - Download Available

Posted: Wed Sep 23, 2015 2:05 pm
by BanditBBS
jolson wrote:
I'm guessing its a sudoers issue. Is there some new command needed in XI 5.0? Our sudoers is centrally managed and the sudoers file on this host was overwritten at 8am today.
The devs will certainly respond soon - but for testing, here is my sudoers file from a fresh XI 5 test machine:

Code: Select all

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
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 *
That fixed it...took a while but then applied again and it was back to being quick....now to get everything needed added to the sudoers permanently.