Re: Acknowledge and Comments are not working
Posted: Fri Feb 12, 2016 2:04 pm
Below are the logs you have requested while attempting to add comment and acknowledge an event. I was not able to check the mysql logs, we use remote Mysql server and the DBA, only log ERRORs
[root@<NagiosServer> ~]# vi /usr/local/nagiosxi/html/includes/db.inc.php
[root@<NagiosServer> ~]# service httpd restart
Redirecting to /bin/systemctl restart httpd.service
[root@<NagiosServer> ~]# tail -f /var/log/httpd/error_log /var/log/httpd/ssl_error_log
==> /var/log/httpd/error_log <==
[Thu Feb 11 18:36:43.141523 2016] [:error] [pid 65215] [client ::1:40493] PHP Warning: mysql_pconnect(): Error while reading greeting packet. PID=65215 in /usr/local/nagiosxi/html/db/adodb/drivers/adodb-mysql.inc.php on line 383
[Thu Feb 11 18:36:43.141537 2016] [:error] [pid 65215] [client ::1:40493] PHP Warning: mysql_pconnect(): Link to server lost, unable to reconnect in /usr/local/nagiosxi/html/db/adodb/drivers/adodb-mysql.inc.php on line 383
[Thu Feb 11 18:36:43.141651 2016] [:error] [pid 65215] [client ::1:40493] PHP Notice: Undefined variable: result in /usr/local/nagiosxi/html/includes/db.inc.php on line 249
[Fri Feb 12 13:48:43.306450 2016] [mpm_prefork:notice] [pid 35997] AH00170: caught SIGWINCH, shutting down gracefully
[Fri Feb 12 13:48:44.419955 2016] [suexec:notice] [pid 18117] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 10.29.144.58. Set the 'ServerName' directive globally to suppress this message
[Fri Feb 12 13:48:44.457863 2016] [auth_digest:notice] [pid 18117] AH01757: generating secret for digest authentication ...
[Fri Feb 12 13:48:44.458791 2016] [lbmethod_heartbeat:notice] [pid 18117] AH02282: No slotmem from mod_heartmonitor
[Fri Feb 12 13:48:44.514060 2016] [mpm_prefork:notice] [pid 18117] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips PHP/5.6.16 configured -- resuming normal operations
[Fri Feb 12 13:48:44.514087 2016] [core:notice] [pid 18117] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
==> /var/log/httpd/ssl_error_log <==
[Mon Feb 08 03:41:02.198737 2016] [ssl:warn] [pid 35997] AH01909: RSA certificate configured for 10.29.144.58:443 does NOT include an ID which matches the server name
[Fri Feb 12 13:48:44.420833 2016] [ssl:warn] [pid 18117] AH01909: RSA certificate configured for 10.29.144.58:443 does NOT include an ID which matches the server name
[Fri Feb 12 13:48:44.459514 2016] [ssl:warn] [pid 18117] AH01909: RSA certificate configured for 10.29.144.58:443 does NOT include an ID which matches the server name
==> /var/log/httpd/error_log <==
[Fri Feb 12 13:49:05.506790 2016] [:error] [pid 18125] [client xxx.xxx.xxx.xx:60691] PHP Notice: Trying to get property of non-object in /usr/local/nagiosxi/html/includes/components/xicore/status-object-detail.inc.php on line 1121, referer: http://<NagiosServer>/nagiosxi/includes/components/xicore/status.php?show=services
[Fri Feb 12 13:49:05.506825 2016] [:error] [pid 18125] [client xxx.xxx.xxx.xx:60691] PHP Notice: Trying to get property of non-object in /usr/local/nagiosxi/html/includes/components/xicore/status-object-detail.inc.php on line 1121, referer: http://<NagiosServer>/nagiosxi/includes/components/xicore/status.php?show=services
[Fri Feb 12 13:49:05.506837 2016] [:error] [pid 18125] [client xxx.xxx.xxx.xx:60691] PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/xicore/status-object-detail.inc.php on line 1121, referer: http://<NagiosServer>/nagiosxi/includes/components/xicore/status.php?show=services
[root@<NagiosServer> ~]# ps aux | grep nagios.cfg
root 20157 0.0 0.0 112644 968 pts/0 S+ 13:58 0:00 grep --color=auto nagios.cfg
[root@<NagiosSQLServer> ~]# grep <NagiosServerIP> db/p/nagios/v1/admin/NAGIOSP1/logs/NAGIOSP1_err.log
[root@<NagiosSQLServer> ~]# grep <NagiosServer> db/p/nagios/v1/admin/NAGIOSP1/logs/NAGIOSP1_err.log