Performance Grapher Service Indicator Problem

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Performance Grapher Service Indicator Problem

Post 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')

You do not have the required permissions to view the files attached to this post.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Performance Grapher Service Indicator Problem

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Performance Grapher Service Indicator Problem

Post 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
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Performance Grapher Service Indicator Problem

Post 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.
Locked