Cannot Acknowledge Problems

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
chrisbushey
Posts: 9
Joined: Thu May 22, 2014 12:33 pm

Cannot Acknowledge Problems

Post by chrisbushey »

We have just upgraded to Nagios XI 2014 R1.0. We have got everything working again except when we click the "Commit" button under "Acknowledge this problem", it just goes to a white screen and doe not keep the acknowledgement. Has anyone else seen this?

-Chris
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Cannot Acknowledge Problems

Post by slansing »

When you click Schedule Immediate Check on a host or a service does it bail out telling you it can't execute your command? On the status icons in the top right of your XI UI, are they all green? Or are some blue/red? Are you forcing SSL on the XI server?
chrisbushey
Posts: 9
Joined: Thu May 22, 2014 12:33 pm

Re: Cannot Acknowledge Problems

Post by chrisbushey »

When I click Schedule Immediate Check, it process successfully. All status icons are green. Not using SSL on server.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Cannot Acknowledge Problems

Post by tmcdonald »

Can you try this again and then post the last 20 lines of your error log?

Code: Select all

tail -20 /var/log/httpd/error_log
Former Nagios employee
chrisbushey
Posts: 9
Joined: Thu May 22, 2014 12:33 pm

Re: Cannot Acknowledge Problems

Post by chrisbushey »

I had just tried to acknolwedge a problem prior to getting the tail of this error log this morning, but the most recent events are from yesterday afternoon. Also, the frame? inside of the nagios page is the only thing that goes white. I can still access the navigation menu and go right back to the problem. Also have tried with different browsers on different computers with same result. Attached screenshot to post.

Code: Select all

[Thu May 22 13:40:08 2014] [error] [client 10.200.7.19] PHP Notice:  Undefined variable: components in /usr/local/nagiosxi/html/includes/components/capacityplanning/capacityplanning.inc.php on line 170, referer: http://spnagios/nagiosxi/includes/components/xicore/status.php?show=services&hostattr=10&hoststatustypes=2&servicestatustypes=28&serviceattr=10
[Thu May 22 13:40:08 2014] [error] [client 10.200.7.19] PHP Notice:  Undefined variable: components in /usr/local/nagiosxi/html/includes/components/capacityplanning/capacityplanning.inc.php on line 171, referer: http://spnagios/nagiosxi/includes/components/xicore/status.php?show=services&hostattr=10&hoststatustypes=2&servicestatustypes=28&serviceattr=10
[Thu May 22 13:40:08 2014] [error] [client 10.200.7.19] PHP Notice:  Undefined variable: components in /usr/local/nagiosxi/html/includes/components/capacityplanning/capacityplanning.inc.php on line 172, referer: http://spnagios/nagiosxi/includes/components/xicore/status.php?show=services&hostattr=10&hoststatustypes=2&servicestatustypes=28&serviceattr=10
[Thu May 22 13:55:12 2014] [error] [client 10.200.15.9] PHP Notice:  Undefined variable: components in /usr/local/nagiosxi/html/includes/components/capacityplanning/capacityplanning.inc.php on line 170, referer: http://spnagios/nagiosxi/includes/components/opscreen/opscreen.php
[Thu May 22 13:55:12 2014] [error] [client 10.200.15.9] PHP Notice:  Undefined variable: components in /usr/local/nagiosxi/html/includes/components/capacityplanning/capacityplanning.inc.php on line 171, referer: http://spnagios/nagiosxi/includes/components/opscreen/opscreen.php
[Thu May 22 13:55:12 2014] [error] [client 10.200.15.9] PHP Notice:  Undefined variable: components in /usr/local/nagiosxi/html/includes/components/capacityplanning/capacityplanning.inc.php on line 172, referer: http://spnagios/nagiosxi/includes/components/opscreen/opscreen.php
[Thu May 22 13:55:22 2014] [error] [client 10.200.15.9] PHP Notice:  Undefined variable: components in /usr/local/nagiosxi/html/includes/components/capacityplanning/capacityplanning.inc.php on line 170, referer: http://spnagios/nagiosxi/includes/components/opscreen/opscreen.php
[Thu May 22 13:55:22 2014] [error] [client 10.200.15.9] PHP Notice:  Undefined variable: components in /usr/local/nagiosxi/html/includes/components/capacityplanning/capacityplanning.inc.php on line 171, referer: http://spnagios/nagiosxi/includes/components/opscreen/opscreen.php
[Thu May 22 13:55:22 2014] [error] [client 10.200.15.9] PHP Notice:  Undefined variable: components in /usr/local/nagiosxi/html/includes/components/capacityplanning/capacityplanning.inc.php on line 172, referer: http://spnagios/nagiosxi/includes/components/opscreen/opscreen.php
[Thu May 22 14:10:34 2014] [error] [client 10.200.7.19] PHP Notice:  Undefined variable: components in /usr/local/nagiosxi/html/includes/components/capacityplanning/capacityplanning.inc.php on line 170, referer: http://spnagios/nagiosxi/includes/components/xicore/status.php?show=services&hostattr=10&hoststatustypes=2&servicestatustypes=28&serviceattr=10
[Thu May 22 14:10:34 2014] [error] [client 10.200.7.19] PHP Notice:  Undefined variable: components in /usr/local/nagiosxi/html/includes/components/capacityplanning/capacityplanning.inc.php on line 171, referer: http://spnagios/nagiosxi/includes/components/xicore/status.php?show=services&hostattr=10&hoststatustypes=2&servicestatustypes=28&serviceattr=10
[Thu May 22 14:10:34 2014] [error] [client 10.200.7.19] PHP Notice:  Undefined variable: components in /usr/local/nagiosxi/html/includes/components/capacityplanning/capacityplanning.inc.php on line 172, referer: http://spnagios/nagiosxi/includes/components/xicore/status.php?show=services&hostattr=10&hoststatustypes=2&servicestatustypes=28&serviceattr=10
[Thu May 22 14:22:44 2014] [error] [client 10.200.15.2] PHP Notice:  Undefined variable: components in /usr/local/nagiosxi/html/includes/components/capacityplanning/capacityplanning.inc.php on line 170, referer: http://spnagios/nagiosxi/includes/components/xicore/status.php?show=services&servicestatustypes=28
[Thu May 22 14:22:44 2014] [error] [client 10.200.15.2] PHP Notice:  Undefined variable: components in /usr/local/nagiosxi/html/includes/components/capacityplanning/capacityplanning.inc.php on line 171, referer: http://spnagios/nagiosxi/includes/components/xicore/status.php?show=services&servicestatustypes=28
[Thu May 22 14:22:44 2014] [error] [client 10.200.15.2] PHP Notice:  Undefined variable: components in /usr/local/nagiosxi/html/includes/components/capacityplanning/capacityplanning.inc.php on line 172, referer: http://spnagios/nagiosxi/includes/components/xicore/status.php?show=services&servicestatustypes=28
[Thu May 22 14:40:00 2014] [error] [client 10.200.15.9] PHP Notice:  Undefined variable: components in /usr/local/nagiosxi/html/includes/components/capacityplanning/capacityplanning.inc.php on line 170, referer: http://spnagios/nagiosxi/includes/components/opscreen/opscreen.php
[Thu May 22 14:40:00 2014] [error] [client 10.200.15.9] PHP Notice:  Undefined variable: components in /usr/local/nagiosxi/html/includes/components/capacityplanning/capacityplanning.inc.php on line 171, referer: http://spnagios/nagiosxi/includes/components/opscreen/opscreen.php
[Thu May 22 14:40:00 2014] [error] [client 10.200.15.9] PHP Notice:  Undefined variable: components in /usr/local/nagiosxi/html/includes/components/capacityplanning/capacityplanning.inc.php on line 172, referer: http://spnagios/nagiosxi/includes/components/opscreen/opscreen.php
[Thu May 22 16:05:48 2014] [error] [client 10.200.15.2] File does not exist: /usr/local/nagiosxi/html/includes/components/nagioscore/ui/images/logos/mssql.png, referer: http://spnagios/nagiosxi/includes/components/xicore/status.php?show=services&servicestatustypes=28
[Thu May 22 16:11:48 2014] [error] [client 10.200.15.2] File does not exist: /usr/local/nagiosxi/html/includes/components/nagioscore/ui/images/logos/mssql.png, referer: http://spnagios/nagiosxi/includes/components/xicore/status.php?show=services&servicestatustypes=28
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Cannot Acknowledge Problems

Post by lmiltchev »

Are you logged in as nagiosadmin or another user? What is the output of the following commands?

Code: Select all

grep nag /etc/group
ll -d /usr/local/nagios/var/rw
ll /usr/local/nagios/var/rw/nagios.cmd
chage -l nagios
chage -l apache
sestatus
Be sure to check out our Knowledgebase for helpful articles and solutions!
chrisbushey
Posts: 9
Joined: Thu May 22, 2014 12:33 pm

Re: Cannot Acknowledge Problems

Post by chrisbushey »

It occurs on any account, including nagiosadmin.

Code: Select all

]0;root@spnagios:~[?1034h[root@spnagios ~]# grep nag /etc/group
nagios:x:500:nagios,apache,snmptt
nagcmd:x:501:nagios,apache,snmptt
]0;root@spnagios:~[root@spnagios ~]# ll -d /usr/local/nagios/var/rw
drwxrwsr-x 2 nagios nagcmd 4096 May 22 14:38 [0m[01;34m/usr/local/nagios/var/rw[0m
[m]0;root@spnagios:~[root@spnagios ~]# ll /usr/local/nagios/var/rw/nagios.cmd
prw-rw---- 1 nagios nagcmd 0 May 27 02:01 [0m[40;33m/usr/local/nagios/var/rw/nagios.cmd[0m
[m]0;root@spnagios:~[root@spnagios ~]# chage -l nagios
Last password change					: Apr 05, 2013
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
]0;root@spnagios:~You have new mail in /var/spool/mail/root
[root@spnagios ~]# chage -l apache
Last password change					: Apr 05, 2013
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
]0;root@spnagios:~[root@spnagios ~]# sestatus
SELinux status:                 disabled
]0;root@spnagios:~[root@spnagios ~]# 
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Cannot Acknowledge Problems

Post by sreinhardt »

It looks like you are hitting a core bug that we know of. Basically the acknowledge cgi is erroring when attempting to acknowledge alerts. The acks can still be pushed from the command pipe, but that is far from ideal. I know one of the core devs was working on this today. Let me see where he's at!
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
chrisbushey
Posts: 9
Joined: Thu May 22, 2014 12:33 pm

Re: Cannot Acknowledge Problems

Post by chrisbushey »

We are able to acknowlege problems by clicking the link in the email alert we receive. Still not able to get past the "Commit" button when acknowledging through the webpage.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Cannot Acknowledge Problems

Post by sreinhardt »

What are the host and service names for that particular object? This has been reported once or twice before, and each time up to this point, it has been an issue of illegal characters. So let's make sure that's not the case here!

Also on this same object, does the submit immediate check fail also?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked