Nagios System Problem false alert

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jimmy5634
Posts: 4
Joined: Mon Aug 11, 2014 9:14 pm

Nagios System Problem false alert

Post by jimmy5634 »

HI,

Under the System Status it show the a problem with the Performance Grapher, the tool tip shows NPCD as not running.

service npcd status indicates that npcd is running.

I do have performance graphs which I browse through Nagios Graph explorer.

This is a trial install of Nagio XI version 2014R1.3 on a RHEL 6.2.

The System Problem icon is persistently showing "Performance Grapher Is Not Running" although npcd service is running and the performance graphs are being plotted.

rgds
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios System Problem false alert

Post by scottwilkerson »

These are updated via a cron job, is crond running?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jimmy5634
Posts: 4
Joined: Mon Aug 11, 2014 9:14 pm

Re: Nagios System Problem false alert

Post by jimmy5634 »

yes crond is running


rgds
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios System Problem false alert

Post by tmcdonald »

Let's check your logs then. Please run the following:

Code: Select all

tail -20 /var/log/cron
Former Nagios employee
jimmy5634
Posts: 4
Joined: Mon Aug 11, 2014 9:14 pm

Re: Nagios System Problem false alert

Post by jimmy5634 »

Aug 13 09:35:01 localhost CROND[31995]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php > /usr/local/nagiosxi/var/cleaner.log 2>&1)
Aug 13 09:35:01 localhost CROND[31991]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/dbmaint.php > /usr/local/nagiosxi/var/dbmaint.log 2>&1)
Aug 13 09:35:01 localhost CROND[31992]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php > /usr/local/nagiosxi/var/perfdataproc.log 2>&1)
Aug 13 09:35:01 localhost CROND[31994]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/deadpool.php > /usr/local/nagiosxi/var/deadpool.log 2>&1)
Aug 13 09:36:01 localhost CROND[32362]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php > /usr/local/nagiosxi/var/sysstat.log 2>&1)
Aug 13 09:36:01 localhost CROND[32361]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/nom.php > /usr/local/nagiosxi/var/nom.log 2>&1)
Aug 13 09:36:01 localhost CROND[32367]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php > /usr/local/nagiosxi/var/cleaner.log 2>&1)
Aug 13 09:36:01 localhost CROND[32368]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php > /usr/local/nagiosxi/var/eventman.log 2>&1)
Aug 13 09:36:01 localhost CROND[32369]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php > /usr/local/nagiosxi/var/perfdataproc.log 2>&1)
Aug 13 09:36:01 localhost CROND[32370]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php > /usr/local/nagiosxi/var/cmdsubsys.log 2>&1)
Aug 13 09:36:01 localhost CROND[32372]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php > /usr/local/nagiosxi/var/feedproc.log 2>&1)
Aug 13 09:36:01 localhost CROND[32375]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php > /usr/local/nagiosxi/var/reportengine.log 2>&1)
Aug 13 09:37:01 localhost CROND[32689]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php > /usr/local/nagiosxi/var/cmdsubsys.log 2>&1)
Aug 13 09:37:01 localhost CROND[32697]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php > /usr/local/nagiosxi/var/cleaner.log 2>&1)
Aug 13 09:37:01 localhost CROND[32703]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/nom.php > /usr/local/nagiosxi/var/nom.log 2>&1)
Aug 13 09:37:01 localhost CROND[32705]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php > /usr/local/nagiosxi/var/reportengine.log 2>&1)
Aug 13 09:37:01 localhost CROND[32706]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php > /usr/local/nagiosxi/var/feedproc.log 2>&1)
Aug 13 09:37:01 localhost CROND[32712]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php > /usr/local/nagiosxi/var/perfdataproc.log 2>&1)
Aug 13 09:37:01 localhost CROND[32714]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php > /usr/local/nagiosxi/var/sysstat.log 2>&1)
Aug 13 09:37:01 localhost CROND[32715]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php > /usr/local/nagiosxi/var/eventman.log 2>&1)
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios System Problem false alert

Post by abrist »

This could be due to a umask issue if the npcd pid is getting created with the wrong credentials. What is the output of:

Code: Select all

umask
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.
jimmy5634
Posts: 4
Joined: Mon Aug 11, 2014 9:14 pm

Re: Nagios System Problem false alert

Post by jimmy5634 »

the umask for root is 0077

the permission rights for /usr/local/nagiosxi/var/subsys/npcd.pid is -rw------

Changed it to -rw-r--r-- and the System status is OK now

Many thanks for the help. Apparently umask is altered from defaults as part of the system hardening process
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios System Problem false alert

Post by abrist »

jimmy5634 wrote:Many thanks for the help. Apparently umask is altered from defaults as part of the system hardening process
Yep. You need to craft some logic in /etc/profile to workaround this:
http://www.cyberciti.biz/tips/understan ... usage.html
Or just prepare to change those permissions every time you restart the npcd process.
Or change the umask.
This may also effect other services or files, be aware of it at least.
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.
Locked