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
Nagios System Problem false alert
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios System Problem false alert
These are updated via a cron job, is crond running?
Re: Nagios System Problem false alert
yes crond is running
rgds
rgds
Re: Nagios System Problem false alert
Let's check your logs then. Please run the following:
Code: Select all
tail -20 /var/log/cronFormer Nagios employee
Re: Nagios System Problem false alert
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)
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)
Re: Nagios System Problem false alert
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
umaskFormer 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.
"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.
Re: Nagios System Problem false alert
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
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
Re: Nagios System Problem false alert
Yep. You need to craft some logic in /etc/profile to workaround this:jimmy5634 wrote:Many thanks for the help. Apparently umask is altered from defaults as part of the system hardening process
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.
"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.