[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
Acknowledge and Comments are not working
Re: Acknowledge and Comments are not working
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
Re: Acknowledge and Comments are not working
Did you already try if rebooting the server helps? I once had a similar problem and havent seen it again since I rebooted.
Stop services in this order:
Grtz
Willem
Stop services in this order:
Code: Select all
service ndo2db stop
service mysqld stop
service postgresql stop
service nagios stop
service gearmand stop
shutdown -r now
Willem
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
Re: Acknowledge and Comments are not working
Thanks @willemdh. Let us know if this works for you, OP!
Former Nagios Employee.
me.
me.
Re: Acknowledge and Comments are not working
Did the restart of the server and attempted to acknowledge and comment a service as nagiosadmin, with no success.
Re: Acknowledge and Comments are not working
Can you login to the Core interface as the nagiosadmin and see if you can acknowledge a message of add a comment and see if that works?
To access the core interface, use this URL. Replace xxx.xxx.xxx.xxx with IP address.
http://xxx.xxx.xxx.xxx/nagios/
Can you login as root on the server, run the following and post the output?
Thanks
To access the core interface, use this URL. Replace xxx.xxx.xxx.xxx with IP address.
http://xxx.xxx.xxx.xxx/nagios/
Can you login as root on the server, run the following and post the output?
Code: Select all
ls -l /usr/local/nagios/var/
ls -l /usr/local/nagios/var/rwBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Acknowledge and Comments are not working
[quote="tgriep"]Can you login to the Core interface as the nagiosadmin and see if you can acknowledge a message of add a comment and see if that works?
To access the core interface, use this URL. Replace xxx.xxx.xxx.xxx with IP address.
http://xxx.xxx.xxx.xxx/nagios/
Thank you for the URL, that pointed out that nagios service was not running. After starting it up, the comments and acknowledgement worked.
This issue can be closed.
To access the core interface, use this URL. Replace xxx.xxx.xxx.xxx with IP address.
http://xxx.xxx.xxx.xxx/nagios/
Thank you for the URL, that pointed out that nagios service was not running. After starting it up, the comments and acknowledgement worked.
This issue can be closed.
Re: Acknowledge and Comments are not working
Ah - nice to see this resolved.
Closing this one out now, but feel free to open a new one if you need any assistance in the future.
Closing this one out now, but feel free to open a new one if you need any assistance in the future.
Former Nagios Employee