Page 1 of 1
Performance Grapher stopped and cannot be started in GUI
Posted: Wed Nov 12, 2014 9:31 pm
by Box293
This is something that I've wanted to get to the bottom of for a while now.
Sometimes (after a reboot or upgrade) the Performance Grapher is not running.
The second circle at the top right of XI has the exclamation mark and hovering over it says "Performance Grapher Is Not Running!".
If I click on it I am taken to the System Status page.
When I click the gear icon for Performance Grapher and click Start I get the message "An error occurred processing your request".
Now I know that the cause of the problem is that the npcd service is not running. I also know if I go and start the npcd service at the command line the Start command will work.
So why isn't the Start command (issued from the gear icon) starting the npcd service?
This is on my XI test system that was on 2014R1.4 and I just upgraded it to 2014R2.0.
I have currently left it in this state (npcd still stopped) to help with troubleshooting.
Re: Performance Grapher stopped and cannot be started in GUI
Posted: Thu Nov 13, 2014 11:46 am
by questrad
Try to restart crontab, I have already this problem.
How I know it is readhat (can be in CentOS as well) issue with crontab
[root@sq5vplnagios001 ~]# cat /etc/cron.d/nagiosxi | grep perf
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php > /usr/local/nagiosxi/var/perfdataproc.log 2>&1
[root@sq5vplnagios001 ~]# cat /etc/issue
Red Hat Enterprise Linux Server release 6.5 (Santiago)
Kernel \r on an \m
Re: Performance Grapher stopped and cannot be started in GUI
Posted: Thu Nov 13, 2014 9:09 pm
by Box293
Thanks for the suggestion.
Strange. I had to shut down this test server yesterday and after I turned it back on the same problem existed. npcd was not started, using the gear icon in the XI GUI had the same issue.
I set debugging to -1 in npcd.cfg and rebooted the server.
After the reboot everything works fine. npcd started OK.
After some more testing, if I manually stop npcd from the command line, using the gear icon in the XI GUI does not start npcd again.
Should I log a bug report for this?
Re: Performance Grapher stopped and cannot be started in GUI
Posted: Fri Nov 14, 2014 7:31 am
by questrad
On my systems everything is running after reboot (the issue with crontab is on old server).
Also, what I marked, is - when the system rebooted, time to time I need to do apply configuration to have everything correct back.
I did not spent yet time to find the cause of that - later, because I do now migration from old to new.
Try restart crontab and wait about 5-10 min
Re: Performance Grapher stopped and cannot be started in GUI
Posted: Sun Nov 16, 2014 5:54 am
by Box293
I tried what you said.
- I manually stopped npcd from the command line
I restarted crond from the command line
I waited 10 minutes
using the gear icon in the XI GUI does not start npcd again
Re: Performance Grapher stopped and cannot be started in GUI
Posted: Sun Nov 16, 2014 7:52 am
by WillemDH
I had the same problem, on my qa system, NPCD service also was not running after editing visFunctions to make the last 4 hours options in the Graph Explorer work. Starting the service manually in cli did work, but trying to start it with the gui failed.
http://support.nagios.com/forum/viewtop ... 16&t=30056
Grtz
Re: Performance Grapher stopped and cannot be started in GUI
Posted: Mon Nov 17, 2014 9:13 pm
by Box293
Re: Performance Grapher stopped and cannot be started in GUI
Posted: Tue Nov 18, 2014 2:47 am
by questrad
Hello
I have try to reproduce your issue - no way.
As you can see I was able to start NPCD from GUI.
Code: Select all
[Tue Nov 18 02:43:20] root@xxx:~# service npcd stop
NPCD Stopped.
[Tue Nov 18 02:43:34] root@xxx:~# service npcd status
NPCD not running.
[Tue Nov 18 02:43:39] root@xxx:~# service npcd status
NPCD running (pid 18352).
I seams that the issue in with your setup.
Check the logs, check permissions.
Re: Performance Grapher stopped and cannot be started in GUI
Posted: Tue Nov 18, 2014 3:58 am
by Box293
Very interesting. I'll do some more research.
Re: Performance Grapher stopped and cannot be started in GUI
Posted: Tue Dec 23, 2014 5:56 pm
by Box293
This is fixed in 2014R2.1.