Performance Grapher stopped and cannot be started in GUI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Performance Grapher stopped and cannot be started in GUI

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
questrad
Posts: 160
Joined: Wed Mar 21, 2012 3:08 pm
Location: Toronto
Contact:

Re: Performance Grapher stopped and cannot be started in GUI

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Performance Grapher stopped and cannot be started in GUI

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
questrad
Posts: 160
Joined: Wed Mar 21, 2012 3:08 pm
Location: Toronto
Contact:

Re: Performance Grapher stopped and cannot be started in GUI

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Performance Grapher stopped and cannot be started in GUI

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Performance Grapher stopped and cannot be started in GUI

Post 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
Nagios XI 5.8.1
https://outsideit.net
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Performance Grapher stopped and cannot be started in GUI

Post by Box293 »

As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
questrad
Posts: 160
Joined: Wed Mar 21, 2012 3:08 pm
Location: Toronto
Contact:

Re: Performance Grapher stopped and cannot be started in GUI

Post 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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Performance Grapher stopped and cannot be started in GUI

Post by Box293 »

Very interesting. I'll do some more research.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Performance Grapher stopped and cannot be started in GUI

Post by Box293 »

This is fixed in 2014R2.1.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked