Acknowledge and Comments are not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
chicjo01
Posts: 194
Joined: Tue Jul 28, 2015 2:52 pm

Acknowledge and Comments are not working

Post by chicjo01 »

Acknowledge This Problem" and "Add comments" are not working in NagiosXI. I am trying with a user and admin account, but it doesn't acknowledge or add the comment. I am not able to find an error message in the log files (nagios.log, error_logs).

Nagios XI Version: 5.2.2 and 5.2.3 (Mixed Environment)

Steps I took:
1) Left Click on "Service Details"
2) Left Click on "SNMP Service" (Alerting as Warn)
3) Left Click on "Acknowledge this problem"
4) Left Click on "Submit" (Leaving Defaults)
- Alert does not get acknowledged
1) Left Click on "Service Details"
2) Left Click on "SNMP Service" (Alerting as Warn)
3) Left Click on "Square Icon with a Plus Sign in It" (AKA. Advanced)
4) Left Click on "Add comment"
5) Enter "HI" in "Comment"
6) Left Click on "Submit"
- Comment does not get added
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Acknowledge and Comments are not working

Post by hsmith »

Are you using SSL?
What format is your time/date in? (mm-dd-yyyy, yyyy-mm-dd, etc, etc..)
Former Nagios Employee.
me.
User avatar
chicjo01
Posts: 194
Joined: Tue Jul 28, 2015 2:52 pm

Re: Acknowledge and Comments are not working

Post by chicjo01 »

hsmith wrote:Are you using SSL?
What format is your time/date in? (mm-dd-yyyy, yyyy-mm-dd, etc, etc..)
Q: Are you using SSL?
A: Both SSL and non-SSL it is not working on.

Q: What format is your time/date in? (mm-dd-yyyy, yyyy-mm-dd, etc, etc..)
A: Date/Time
PHP Timezone: America/New_York
PHP Time: Thu, 11 Feb 2016 14:56:34 -0500
System Time: Thu, 11 Feb 2016 14:56:34 -0500
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Acknowledge and Comments are not working

Post by hsmith »

Are these local accounts or AD/LDAP?
Former Nagios Employee.
me.
User avatar
chicjo01
Posts: 194
Joined: Tue Jul 28, 2015 2:52 pm

Re: Acknowledge and Comments are not working

Post by chicjo01 »

hsmith wrote:Are these local accounts or AD/LDAP?
AD
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Acknowledge and Comments are not working

Post by hsmith »

Do they have capital letters in their usernames? If they do, can you try to recreate the user without capital letters in their name and tell me if it works?
Former Nagios Employee.
me.
User avatar
chicjo01
Posts: 194
Joined: Tue Jul 28, 2015 2:52 pm

Re: Acknowledge and Comments are not working

Post by chicjo01 »

hsmith wrote:Do they have capital letters in their usernames? If they do, can you try to recreate the user without capital letters in their name and tell me if it works?
The user did not have any capital letter, but they do have numbers. Additionally, I just tested with the nagiosadmin user and I was not able to acknowledge the alert.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Acknowledge and Comments are not working

Post by hsmith »

Is there anything showing up in the following files when you're trying to do this?

Code: Select all

/var/log/httpd/error_log
/var/log/httpd/access_log
/var/log/httpd/ssl_error_log
/var/log/cron
Former Nagios Employee.
me.
User avatar
chicjo01
Posts: 194
Joined: Tue Jul 28, 2015 2:52 pm

Re: Acknowledge and Comments are not working

Post by chicjo01 »

I only found new entries in the access_log, below is the contents of the attempt to add comment.

access_log:
xxx.xxx.xxx.xxx - - [11/Feb/2016:16:56:19 -0500] "POST /nagiosxi/includes/components/nagioscore/ui/cmd.php HTTP/1.1" 200 2026 "http://<Nagios Server>/nagiosxi/includes/components/xicore/status.php?show=servicedetail&host=<Alerting Server>&service=SNMP+Service&dest=auto" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.103 Safari/537.36"

xxx.xxx.xxx.xxx - - [11/Feb/2016:16:56:19 -0500] "GET /nagiosxi/ajaxhelper.php?cmd=getxicoreajax&opts=%7B%22func%22%3A%22get_service_status_quick_actions_html%22%2C%22args%22%3A%7B%22hostname%22%3A%22<Alerting Server>%22%2C%22servicename%22%3A%22SNMP%2BService%22%2C%22service_id%22%3A%22227%22%2C%22display%22%3A%22simple%22%7D%7D&nsp=93b229d22a34426c6225191ac9a0db1c HTTP/1.1" 200 1155 "http://<Nagios Server>/nagiosxi/includes/components/xicore/status.php?show=servicedetail&host=<Alerting Server>&service=SNMP+Service&dest=auto" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.103 Safari/537.36"

xxx.xxx.xxx.xxx - - [11/Feb/2016:16:56:19 -0500] "GET /nagiosxi/ajaxhelper.php?cmd=getxicoreajax&opts=%7B%22func%22%3A%22get_service_comments_html%22%2C%22args%22%3A%7B%22hostname%22%3A%22<Alerting Server>%22%2C%22servicename%22%3A%22SNMP%2BService%22%2C%22service_id%22%3A%22227%22%2C%22display%22%3A%22simple%22%7D%7D&nsp=93b229d22a34426c6225191ac9a0db1c HTTP/1.1" 200 96 "http://<Nagios Server>/nagiosxi/includes/components/xicore/status.php?show=servicedetail&host=<Alerting Server>&service=SNMP+Service&dest=auto" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.103 Safari/537.36"

xxx.xxx.xxx.xxx - - [11/Feb/2016:16:56:19 -0500] "GET /nagiosxi/ajaxhelper.php?cmd=getxicoreajax&opts=%7B%22func%22%3A%22get_service_status_attributes_html%22%2C%22args%22%3A%7B%22hostname%22%3A%22<Alerting Server>%22%2C%22servicename%22%3A%22SNMP%2BService%22%2C%22service_id%22%3A%22227%22%2C%22display%22%3A%22all%22%7D%7D&nsp=93b229d22a34426c6225191ac9a0db1c HTTP/1.1" 200 3119 "http://<Nagios Server>/nagiosxi/includes/components/xicore/status.php?show=servicedetail&host=<Alerting Server>&service=SNMP+Service&dest=auto" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.103 Safari/537.36"

xxx.xxx.xxx.xxx - - [11/Feb/2016:16:56:19 -0500] "GET /nagiosxi/ajaxhelper.php?cmd=getxicoreajax&opts=%7B%22func%22%3A%22get_service_status_detailed_info_html%22%2C%22args%22%3A%7B%22hostname%22%3A%22<Alerting Server>%22%2C%22servicename%22%3A%22SNMP%2BService%22%2C%22service_id%22%3A%22227%22%2C%22display%22%3A%22advanced%22%7D%7D&nsp=93b229d22a34426c6225191ac9a0db1c HTTP/1.1" 200 1171 "http://<Nagios Server>/nagiosxi/includes/components/xicore/status.php?show=servicedetail&host=<Alerting Server>&service=SNMP+Service&dest=auto" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.103 Safari/537.36"

xxx.xxx.xxx.xxx - - [11/Feb/2016:16:56:21 -0500] "GET /nagiosxi/ajaxhelper.php?cmd=getxicoreajax&opts=%7B%22func%22%3A%22get_service_status_detailed_info_html%22%2C%22args%22%3A%7B%22hostname%22%3A%22<Alerting Server>%22%2C%22servicename%22%3A%22SNMP%2BService%22%2C%22service_id%22%3A%22227%22%2C%22display%22%3A%22simple%22%7D%7D&nsp=93b229d22a34426c6225191ac9a0db1c HTTP/1.1" 200 680 "http://<Nagios Server>/nagiosxi/includes/components/xicore/status.php?show=servicedetail&host=<Alerting Server>&service=SNMP+Service&dest=auto" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.103 Safari/537.36"

xxx.xxx.xxx.xxx - - [11/Feb/2016:16:56:21 -0500] "GET /nagiosxi/ajaxhelper.php?cmd=getxicoreajax&opts=%7B%22func%22%3A%22get_service_status_state_summary_html%22%2C%22args%22%3A%7B%22hostname%22%3A%22<Alerting Server>%22%2C%22servicename%22%3A%22SNMP%2BService%22%2C%22service_id%22%3A%22227%22%2C%22display%22%3A%22simple%22%7D%7D&nsp=93b229d22a34426c6225191ac9a0db1c HTTP/1.1" 200 467 "http://<Nagios Server>/nagiosxi/includes/components/xicore/status.php?show=servicedetail&host=<Alerting Server>&service=SNMP+Service&dest=auto" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.103 Safari/537.36"
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Acknowledge and Comments are not working

Post by ssax »

Let's enable logging if you haven't already. Edit this file:

Code: Select all

/usr/local/nagiosxi/html/includes/db.inc.php
At the top, change this line:

Code: Select all

error_reporting($error_level);
To:

Code: Select all

//error_reporting($error_level);
Restart apache:

Code: Select all

service httpd restart
Then start this tail command, try to ack/comment again, and then send us the tail command output so that we can review it:

Code: Select all

tail -f /var/log/httpd/error_log /var/log/httpd/ssl_error_log
Also, let's check your /var/log/mysqld.log to see if you have any crashed tables.

Please post the output of this command as well:

Code: Select all

ps aux | grep nagios.cfg
Thank you
Locked