Page 1 of 1

Performance Grapher Service Indicator Problem

Posted: Wed Aug 13, 2014 1:37 am
by rajasegar
Nagios XI 2014R1.3 Ent Ed

There was harderning done on the server and now XI is showing Performance Grapher as down when it is not.
It shows "Error occurred when processing your request" when starting Performance Grapher Component from UI even though it is running fine.
13-08-2014 02-33-35 PM.png

There is no error in npcd.log, httpd/httpd.log, httpd/access.log or nagios.log
Performance Graphs is being updated correctly.

Please advice on what could be the issue.

Code: Select all

[nagios@TDS1131 var]$ sudo service npcd status
NPCD running (pid 12135).

[nagios@TDS1131 var]$ tail -f /usr/local/nagios/var/npcd.log
[08-11-2014 11:19:01] NPCD: Please have a look at 'npcd -V' to get license information
[08-11-2014 11:19:01] NPCD: HINT: load_threshold is enabled - ('10.000000')
[08-11-2014 15:00:05] NPCD: Caught Termination Signal - Hasta la vista... baby
[08-11-2014 14:56:28] NPCD: npcd Daemon (0.4.14) started with PID=1880
[08-11-2014 14:56:28] NPCD: Please have a look at 'npcd -V' to get license information
[08-11-2014 14:56:28] NPCD: HINT: load_threshold is enabled - ('10.000000')
[08-13-2014 14:07:28] NPCD: Caught Termination Signal - Hasta la vista... baby
[08-13-2014 14:07:28] NPCD: npcd Daemon (0.4.14) started with PID=12135
[08-13-2014 14:07:28] NPCD: Please have a look at 'npcd -V' to get license information
[08-13-2014 14:07:28] NPCD: HINT: load_threshold is enabled - ('10.000000')


Re: Performance Grapher Service Indicator Problem

Posted: Wed Aug 13, 2014 1:40 pm
by abrist
What are the permissions on the npcd pid?

Code: Select all

ls -la /usr/local/nagiosxi/var/subsys/npcd.pid
They should resemble:

Code: Select all

-rw-r--r-- 1 nagios nagios 4 Aug 13 12:22 /usr/local/nagiosxi/var/subsys/npcd.pid
If yours are different, check to see if the system umask is altering the permissions:

Code: Select all

umask
You should expect to see:

Code: Select all

0022

Re: Performance Grapher Service Indicator Problem

Posted: Wed Aug 13, 2014 11:45 pm
by rajasegar
abrist wrote:What are the permissions on the npcd pid?

Code: Select all

ls -la /usr/local/nagiosxi/var/subsys/npcd.pid
They should resemble:

Code: Select all

-rw-r--r-- 1 nagios nagios 4 Aug 13 12:22 /usr/local/nagiosxi/var/subsys/npcd.pid
If yours are different, check to see if the system umask is altering the permissions:

Code: Select all

umask
You should expect to see:

Code: Select all

0022

Code: Select all

[nagios@TDS1131 ~]$ umask
0077

[nagios@TDS1131 ~]$ ls -la /usr/local/nagiosxi/var/subsys/npcd.pid
-rw-r----- 1 root root 5 Aug 13 14:07 /usr/local/nagiosxi/var/subsys/npcd.pid
[nagios@TDS1131 ~]$
The problem was resolved when I issued the following command
sudo chown:nagios:nagios /usr/local/nagiosxi/var/subsys/npcd.pid

How to prevent this in the future?

Thanks

Re: Performance Grapher Service Indicator Problem

Posted: Thu Aug 14, 2014 4:01 pm
by slansing
That should not have been changed by anything on the Nagios end, mine have continued to remain with the correct permissions through a multitude of updates, from as far back as 2011. It should not recur unless someone manually changes it.