Page 2 of 3

Re: NagiosXi Auto Discovery glitch???

Posted: Wed Jun 26, 2013 10:30 am
by sreinhardt
While normally I wouldn't suggest such drastic measures, I can't say I would suggest against it. It seems like your either missing some php packages or the php files from our install got corrupted somehow. Before you wipe it out, could you run:

rpm -qa | grep php

Re: NagiosXi Auto Discovery glitch???

Posted: Wed Jun 26, 2013 12:21 pm
by mholtaftac
[root@nagios etc]# rpm -qa |grep php
php-5.1.6-39.el5_8
php-mysql-5.1.6-39.el5_8
php-pear-1.4.9-8.el5
php-mssql-5.1.6-5.el5
php-gd-5.1.6-39.el5_8
php-devel-5.1.6-39.el5_8
php-pear-HTML-Template-IT-1.3.0-2.el5
php-pdo-5.1.6-39.el5_8
php-snmp-5.1.6-39.el5_8
php-mcrypt-5.1.6-5.el5
php-cli-5.1.6-39.el5_8
php-xml-5.1.6-39.el5_8
php-common-5.1.6-39.el5_8
php-pgsql-5.1.6-39.el5_8

Re: NagiosXi Auto Discovery glitch???

Posted: Wed Jun 26, 2013 1:29 pm
by abrist
What packages are updatable?

Code: Select all

yum list updates| grep php

Re: NagiosXi Auto Discovery glitch???

Posted: Wed Jun 26, 2013 3:38 pm
by mholtaftac
[root@nagios ~]# yum list update |grep php
Error: No matching Packages to list
[root@nagios ~]#

Re: NagiosXi Auto Discovery glitch???

Posted: Wed Jun 26, 2013 3:43 pm
by abrist
Hmmm. What distro and version are you running?

Re: NagiosXi Auto Discovery glitch???

Posted: Wed Jun 26, 2013 3:46 pm
by mholtaftac
[root@nagios ~]# uname -a
Linux nagios 2.6.18-348.6.1.el5 #1 SMP Fri Apr 26 09:21:26 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux
[root@nagios ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.9 (Tikanga)

Re: NagiosXi Auto Discovery glitch???

Posted: Wed Jun 26, 2013 3:52 pm
by abrist
Alright. You are missing a few php packages:

Code: Select all

php-mbstring
php-pear-Auth-SASL
php-pear-Net-SMTP     
php-pear-Net-Socket
Install these with:

Code: Select all

yum install <package name>

Re: NagiosXi Auto Discovery glitch???

Posted: Wed Jun 26, 2013 4:18 pm
by mholtaftac
Okay, they've been installed. Restarted nagios and still doesn't work.

Re: NagiosXi Auto Discovery glitch???

Posted: Wed Jun 26, 2013 4:23 pm
by abrist
You may have to restart httpd as well:

Code: Select all

service httpd restart
Are you getting the same errors?

Code: Select all

tail -25 /var/log/httpd/error_log

Re: NagiosXi Auto Discovery glitch???

Posted: Wed Jun 26, 2013 4:49 pm
by mholtaftac
[root@nagios ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[ OK ]
[root@nagios ~]# vi /etc/host
[root@nagios ~]# tail -25 /var/log/httpd/error_log
[Wed Jun 26 11:26:34 2013] [error] [client 198.201.85.78] PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/config/monitoringwizard.php on line 2221, referer: http://198.201.85.38/nagiosxi//config/m ... wizard.php
[Wed Jun 26 15:11:25 2013] [error] [client 198.201.85.78] File does not exist: /usr/local/nagiosxi/html/includes/js/jquery/colorpicker/images/colorpicker_overlay.png, referer: http://198.201.85.38/nagiosxi/includes/ ... picker.css
[Wed Jun 26 17:15:10 2013] [notice] caught SIGTERM, shutting down
[Wed Jun 26 17:18:28 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Jun 26 17:18:28 2013] [notice] Digest: generating secret for digest authentication ...
[Wed Jun 26 17:18:28 2013] [notice] Digest: done
[Wed Jun 26 17:18:29 2013] [notice] Apache/2.2.3 (Red Hat) configured -- resuming normal operations
[Wed Jun 26 17:23:14 2013] [error] [client 198.201.85.78] PHP Notice: Undefined index: passback_data in /usr/local/nagiosxi/html/config/monitoringwizard.php on line 321, referer: http://198.201.85.38/nagiosxi//config/m ... e&show=all
[Wed Jun 26 17:23:16 2013] [error] [client 198.201.85.78] PHP Notice: Undefined index: passback_data in /usr/local/nagiosxi/html/config/monitoringwizard.php on line 453, referer: http://198.201.85.38/nagiosxi//config/m ... wizard.php
[Wed Jun 26 17:23:18 2013] [error] [client 198.201.85.78] PHP Notice: Undefined index: passback_data in /usr/local/nagiosxi/html/config/monitoringwizard.php on line 668, referer: http://198.201.85.38/nagiosxi//config/m ... wizard.php
[Wed Jun 26 17:23:18 2013] [error] [client 198.201.85.78] PHP Notice: Undefined index: nagios_objects in /usr/local/nagiosxi/html/config/monitoringwizard.php on line 1996, referer: http://198.201.85.38/nagiosxi//config/m ... wizard.php
[Wed Jun 26 17:23:18 2013] [error] [client 198.201.85.78] PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/config/monitoringwizard.php on line 2004, referer: http://198.201.85.38/nagiosxi//config/m ... wizard.php
[Wed Jun 26 17:23:18 2013] [error] [client 198.201.85.78] PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/config/monitoringwizard.php on line 2518, referer: http://198.201.85.38/nagiosxi//config/m ... wizard.php
[Wed Jun 26 17:23:18 2013] [error] [client 198.201.85.78] PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/config/monitoringwizard.php on line 2161, referer: http://198.201.85.38/nagiosxi//config/m ... wizard.php
[Wed Jun 26 17:23:18 2013] [error] [client 198.201.85.78] PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/config/monitoringwizard.php on line 2221, referer: http://198.201.85.38/nagiosxi//config/m ... wizard.php
[Wed Jun 26 17:48:21 2013] [notice] caught SIGTERM, shutting down
[Wed Jun 26 17:48:21 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Jun 26 17:48:21 2013] [notice] Digest: generating secret for digest authentication ...
[Wed Jun 26 17:48:21 2013] [notice] Digest: done
[Wed Jun 26 17:48:21 2013] [notice] Apache/2.2.3 (Red Hat) configured -- resuming normal operations
[Wed Jun 26 17:48:52 2013] [notice] caught SIGTERM, shutting down
[Wed Jun 26 17:48:53 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Jun 26 17:48:53 2013] [notice] Digest: generating secret for digest authentication ...
[Wed Jun 26 17:48:53 2013] [notice] Digest: done
[Wed Jun 26 17:48:53 2013] [notice] Apache/2.2.3 (Red Hat) configured -- resuming normal operations