Page 2 of 2

Re: NagiosXI-WizardError

Posted: Mon Dec 05, 2016 4:51 pm
by tgriep
It could be the Open File limit on your server is too small and that is causing the issue. Try following this KB article and that should fix it for you.
https://support.nagios.com/kb/article.php?id=512

Re: NagiosXI-WizardError

Posted: Mon Dec 05, 2016 5:09 pm
by ssax
What is the output of these commands:

Code: Select all

sestatus
chage -l nagios
chage -l apache
grep nag /etc/group
grep "User \|Group " /etc/httpd/conf/httpd.conf
Also, run this command:

Code: Select all

tail -F /var/log/messages /var/log/httpd/*error_log /usr/local/nagios/var/cmdsubsys.log
Let that command run and then apply config again and send the entire output.

Thank you

Re: NagiosXI-WizardError

Posted: Tue Dec 13, 2016 2:03 pm
by maartin.pii
ssax wrote:What is the output of these commands:

Code: Select all

sestatus
chage -l nagios
chage -l apache
grep nag /etc/group
grep "User \|Group " /etc/httpd/conf/httpd.conf
Also, run this command:

Code: Select all

tail -F /var/log/messages /var/log/httpd/*error_log /usr/local/nagios/var/cmdsubsys.log
Let that command run and then apply config again and send the entire output.

Thank you

Code: Select all

[root@~]# sestatus
SELinux status:                 disabled
[root@~]# chage -l nagios
Last password change                                    : Aug 04, 2016
Password expires                                        : never
Password inactive                                       : never
Account expires                                         : never
Minimum number of days between password change          : 0
Maximum number of days between password change          : 99999
Number of days of warning before password expires       : 7
[root@~]# chage -l apache
Last password change                                    : Aug 17, 2016
Password expires                                        : never
Password inactive                                       : never
Account expires                                         : never
Minimum number of days between password change          : -1
Maximum number of days between password change          : -1
Number of days of warning before password expires       : -1
[root@~]# grep nag /etc/group
nagios:x:994:nagios,apache
nagcmd:x:2001:nagios,apache
[root@~]# grep "User \|Group " /etc/httpd/conf/httpd.conf
User apache
Group apache


Re: NagiosXI-WizardError

Posted: Tue Dec 13, 2016 2:05 pm
by maartin.pii
tgriep wrote:It could be the Open File limit on your server is too small and that is causing the issue. Try following this KB article and that should fix it for you.
https://support.nagios.com/kb/article.php?id=512
These are my limits config:

* hard nofile 10000
* soft nofile 10000

root hard nofile 10000
root soft nofile 10000



I think that these values are bigger than the ones which are recommended - Should I modify them?

Re: NagiosXI-WizardError

Posted: Tue Dec 13, 2016 6:00 pm
by avandemore
Please post or PM the full output of this:

Code: Select all

# cd /usr/local/nagiosxi/scripts/
# bash -x reconfigure_nagios.sh

Re: NagiosXI-WizardError

Posted: Thu Dec 15, 2016 12:49 pm
by maartin.pii

Code: Select all

+ ./import_nagiosql.sh
--2016-12-15 14:47:29--  http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ânagiosql.loginâ

    [ <=>                                                                                                                                                        ] 37,170      --.-K/s   in 0.03s

2016-12-15 14:47:29 (1.35 MB/s) - ânagiosql.loginâ saved [37170]

+ ret=0
+ '[' 0 -gt 0 ']'
+ ./restart_nagios_with_export.sh
--2016-12-15 14:47:30--  http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ânagiosql.loginâ

    [ <=>                                                                                                                                                        ] 37,170      --.-K/s   in 0.01s

2016-12-15 14:47:30 (2.40 MB/s) - ânagiosql.loginâ saved [37170]

--2016-12-15 14:47:31--  http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ânagiosql.export.monitoringâ

    [ <=>                                                                                                                                                        ] 21,599      --.-K/s   in 0.01s

2016-12-15 14:47:42 (1.50 MB/s) - ânagiosql.export.monitoringâ saved [21599]

URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&backend=1&username=nagiosxi&password=n@gweb' -O nagiosql.loginLOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL: http://localhost/nagiosxi/includes/components/ccm/
Array
(
)
RESETTING PERMS
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&backend=1&username=nagiosxi&password=n@gweb' -O nagiosql.loginLOGIN SUCCESSFUL!
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'backend=1&cmd=apply&type=writeConfig' -O nagiosql.export.monitoring
WRITE CONFIGS SUCCESSFUL!
OUTPUT:
Nagios Core 4.1.1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-19-2015
License: GPL

Website: https://www.nagios.org
Reading configuration data...
   Read main config file okay...
WARNING: Extinfo objects are deprecated and will be removed in future versions

WARNING: Extinfo objects are deprecated and will be removed in future versions
Warning: Duplicate definition found for service 'SO : LOAD' on host '' (config file '/usr/local/nagios/etc/services/CLICKOS1.cfg', starting on line 66)
Warning: Duplicate definition found for service 'SO : DISK' on host '' (config file '/usr/local/nagios/etc/services/CLICKOS1.cfg', starting on line 50)
Warning: Duplicate definition found for service 'DBA : ORACLE : STATUS : ' on host 'clickos1' (config file '/usr/local/nagios/etc/services/CLICKOS1.cfg', starting on line 33)
Warning: Duplicate definition found for service 'DBA : ORACLE : SPACE : ' on host 'clickos1' (config file '/usr/local/nagios/etc/services/CLICKOS1.cfg', starting on line 16)
Warning: Duplicate definition found for service 'SO : LOAD' on host '' (config file '/usr/local/nagios/etc/services/BUHOP1.cfg', starting on line 69)
Warning: Duplicate definition found for service 'SO : DISK' on host '' (file '/usr/local/nagios/etc/services/BUHOP1.cfg', starting on line 52)
Warning: Duplicate definition found for service 'DBA : ORACLE : STATUS : ' on host 'buhop1' (config file '/usr/local/nagios/etc/services/BUHOP1.cfg', starting on line 34)
Warning: Duplicate definition found for service 'DBA : ORACLE : SPACE : ' on host 'buhop1' (config file '/usr/local/nagios/etc/services/BUHOP1.cfg', starting on line 16)
Warning: Duplicate definition found for service 'NET: MEM' on host '' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 16)
Warning: Duplicate definition found for service 'SO : LOAD' on host 'buhor1' (config file '/usr/local/nagios/etc/services/buhor1.cfg', starting on line 66)
Warning: Duplicate definition found for service 'SO : DISK' on host '' (file '/usr/local/nagios/etc/services/buhor1.cfg', starting on line 50)
Warning: Duplicate definition found for service 'DBA : ORACLE : STATUS : ' on host 'buhor1' (config file '/usr/local/nagios/etc/services/buhor1.cfg', starting on line 33)
Warning: Duplicate definition found for service 'DBA : ORACLE : SPACE : ' on host 'buhor1' (config file '/usr/local/nagios/etc/services/buhor1.cfg', starting on line 16)
Warning: Duplicate definition found for service 'SO : LOAD' on host '' (config file '/usr/local/nagios/etc/services/buhod1.cfg', starting on line 66)
Warning: Duplicate definition found for service 'SO : DISK' on host '' (config file '/usr/local/nagios/etc/services/buhod1.cfg', starting on line 50)
Warning: Duplicate definition found for service 'DBA : ORACLE : STATUS : ' on host 'buhod1' (config file '/usr/local/nagios/etc/services/buhod1.cfg', starting on line 33)
Warning: Duplicate definition found for service 'DBA : ORACLE : SPACE : ' on host 'buhod1' (config file '/usr/local/nagios/etc/services/buhod1.cfg', starting on line 16)
   Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
Warning: Service 'BPIEX' on host 'BPIEX' has no default contacts or contactgroups defined!
        Checked 9703 services.
Warning: Host 'BPIEX' has no default contacts or contactgroups defined!
        Checked 412 hosts.
        Checked 31 host groups.
        Checked 4 service groups.
Warning: Host recovery notification option for contact 'nagiosadmin' doesn't make any sense - specify down and/or unreachable options as well
Warning: Service recovery notification option for contact 'nagiosadmin' doesn't make any sense - specify critical and/or warning options as well
        Checked 52 contacts.
        Checked 13 contact groups.
        Checked 355 commands.
        Checked 34 time periods.
        Checked 0 host escalations.
        Checked 0 service escalations.
Checking for circular paths...
        Checked 412 hosts
        Checked 0 service dependencies
        Checked 0 host dependencies
        Checked 34 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 4
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check
RET: 0
+ ret=0
+ '[' 0 -gt 0 ']'
+ exit 0

Re: NagiosXI-WizardError

Posted: Thu Dec 15, 2016 5:44 pm
by tgriep
Can you email in the /etc/php.ini file so I can view it's settings?
What version of XI is the server running and what is the version of the Network Stitch Router wizard is installed on the system?
To view that, go to the Admin > Manage Config Wizards menu to view it.
If it is not at the latest version, update it and see if that resolves the issue.