Page 3 of 4

Re: Fresh install

Posted: Thu Jun 08, 2017 3:38 pm
by bosecorp
working now

had to delete user and group and re-run install

how about my question earlier about the subscription. what about customers who doesnt have RHEL subscription. they wont be able to add the optional channel.

Re: Fresh install

Posted: Thu Jun 08, 2017 4:28 pm
by tgriep
That's a question you would have to ask Redhat, we do not control the need for the server to be subscribed to Redhats system.
If you do not want to worry about subscribing the server, use Centos7 instead.

Re: Fresh install

Posted: Fri Jun 09, 2017 6:29 pm
by bosecorp
Thanks you can close this ticket

Re: Fresh install

Posted: Sun Jun 11, 2017 9:20 am
by bosecorp
So I finish the installation, everything well except I not getting any performance graphs. I checked the basics things and everything seems to be fine including NPCD

the only thing I noticed is the perf log file under /usr/local/nagios/var/ is empty.

If I go to a particular host->advance I can see perfomance data there

Re: Fresh install

Posted: Mon Jun 12, 2017 9:16 am
by tgriep
Verify that the perfdataproc command is running by the cron daemon by running

Code: Select all

ps -ef |grep perfdata
If it is not running, restart cron by running

Code: Select all

service crond restart
If after 15 minutes, it still is not running, can you PM me or post your System Profile?
To send us your system profile. Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and email it or post it here.
Also, run the following commands as root and post them here.

Code: Select all

ps -ef --cols=300
ls -lR /usr/local/nagios

Re: Fresh install

Posted: Mon Jun 12, 2017 9:25 am
by lmiltchev
What is the load on the system?

Code: Select all

uptime
I would recommend checking if you have way too many perfdata files piled up in /usr/local/nagios/var/spool/perfdata or /usr/local/nagios/var/spool/xidpe/ directories, and increasing the logs verbosity by following our "Nagios XI - Performance Graph Problems" DB article here:

https://support.nagios.com/kb/article/n ... blems.html

If you are not able to identify the issue, please post both, the perfdata.log and npcd.log.

You are not using RAM disk, are you?

Re: Fresh install

Posted: Mon Jun 12, 2017 9:32 am
by bosecorp
the load is almost 0

the perfdata.log is empty.

on the npcd.log dont see any errors

[06-12-2017 10:37:38] NPCD: ThreadCounter 0/5 File is .
[06-12-2017 10:37:38] NPCD: DEBUG: load 1.090000/60.000000
[06-12-2017 10:37:38] NPCD: ThreadCounter 0/5 File is ..
[06-12-2017 10:37:38] NPCD: No more files to process... waiting for 15 seconds
[06-12-2017 10:37:53] NPCD: Found 2 files in /usr/local/nagios/var/spool/perfdata/
[06-12-2017 10:37:53] NPCD: DEBUG: load 0.850000/60.000000
[06-12-2017 10:37:53] NPCD: ThreadCounter 0/5 File is .
[06-12-2017 10:37:53] NPCD: DEBUG: load 0.850000/60.000000
[06-12-2017 10:37:53] NPCD: ThreadCounter 0/5 File is ..
[06-12-2017 10:37:53] NPCD: No more files to process... waiting for 15 seconds
[06-12-2017 10:38:08] NPCD: Found 2 files in /usr/local/nagios/var/spool/perfdata/
[06-12-2017 10:38:08] NPCD: DEBUG: load 1.100000/60.000000
[06-12-2017 10:38:08] NPCD: ThreadCounter 0/5 File is .
[06-12-2017 10:38:08] NPCD: DEBUG: load 1.100000/60.000000
[06-12-2017 10:38:08] NPCD: ThreadCounter 0/5 File is ..
[06-12-2017 10:38:08] NPCD: No more files to process... waiting for 15 seconds

Re: Fresh install

Posted: Mon Jun 12, 2017 9:53 am
by lmiltchev
Can you, please show the output of the commands, posted by tgriep. Also, post the output of:

Code: Select all

grep -R -i log_level /usr/local/nagios/etc/pnp/npcd.cfg | grep "^[^#;]"
grep -R -i log_level /usr/local/nagios/etc/pnp/process_perfdata.cfg | grep "^[^#;]"
chage -l nagios
tail -30 /var/log/cron

Re: Fresh install

Posted: Mon Jun 12, 2017 10:02 am
by bosecorp
here you go

[email protected]:(06-12 10:37): /usr/local/nagiosxi/var
# grep -R -i log_level /usr/local/nagios/etc/pnp/npcd.cfg | grep "^[^#;]"
log_level = 2
[email protected]:(06-12 10:37): /usr/local/nagiosxi/var
# ^C
[email protected]:(06-12 10:37): /usr/local/nagiosxi/var
# grep -R -i log_level /usr/local/nagios/etc/pnp/process_perfdata.cfg | grep "^[^#;]"
LOG_LEVEL = 2
[email protected]:(06-12 10:37): /usr/local/nagiosxi/var
# chage -l nagios
Last password change : Jun 10, 2017
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7
[email protected]:(06-12 10:37): /usr/local/nagiosxi/var
# tail -30 /var/log/cron
Jun 12 11:00:01 usvanagiospxi1 CROND[8993]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php >> /usr/local/nagiosxi/var/cleaner.log 2>&1)
Jun 12 11:00:01 usvanagiospxi1 CROND[8994]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/dbmaint.php >> /usr/local/nagiosxi/var/dbmaint.log 2>&1)
Jun 12 11:00:01 usvanagiospxi1 CROND[8996]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php >> /usr/local/nagiosxi/var/cmdsubsys.log 2>&1)
Jun 12 11:00:01 usvanagiospxi1 CROND[9001]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/nom.php >> /usr/local/nagiosxi/var/nom.log 2>&1)
Jun 12 11:00:01 usvanagiospxi1 CROND[9024]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php >> /usr/local/nagiosxi/var/sysstat.log 2>&1)
Jun 12 11:00:01 usvanagiospxi1 CROND[9020]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php >> /usr/local/nagiosxi/var/reportengine.log 2>&1)
Jun 12 11:00:01 usvanagiospxi1 CROND[9021]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php >> /usr/local/nagiosxi/var/feedproc.log 2>&1)
Jun 12 11:00:01 usvanagiospxi1 CROND[9023]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php >> /usr/local/nagiosxi/var/eventman.log 2>&1)
Jun 12 11:01:01 usvanagiospxi1 CROND[9375]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php >> /usr/local/nagiosxi/var/feedproc.log 2>&1)
Jun 12 11:01:01 usvanagiospxi1 CROND[9379]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/nom.php >> /usr/local/nagiosxi/var/nom.log 2>&1)
Jun 12 11:01:01 usvanagiospxi1 CROND[9380]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/event_handler.php >> /usr/local/nagiosxi/var/event_handler.log 2>&1)
Jun 12 11:01:01 usvanagiospxi1 CROND[9383]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php >> /usr/local/nagiosxi/var/eventman.log 2>&1)
Jun 12 11:01:01 usvanagiospxi1 CROND[9385]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php >> /usr/local/nagiosxi/var/cleaner.log 2>&1)
Jun 12 11:01:01 usvanagiospxi1 CROND[9386]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php >> /usr/local/nagiosxi/var/reportengine.log 2>&1)
Jun 12 11:01:01 usvanagiospxi1 CROND[9381]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php >> /usr/local/nagiosxi/var/perfdataproc.log 2>&1)
Jun 12 11:01:01 usvanagiospxi1 CROND[9382]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php >> /usr/local/nagiosxi/var/cmdsubsys.log 2>&1)
Jun 12 11:01:01 usvanagiospxi1 CROND[9377]: (root) CMD (run-parts /etc/cron.hourly)
Jun 12 11:01:01 usvanagiospxi1 CROND[9378]: (nagios) CMD (/usr/local/nagiosxi/cron/recurringdowntime.pl >> /usr/local/nagiosxi/var/recurringdowntime.log 2>&1)
Jun 12 11:01:01 usvanagiospxi1 CROND[9384]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php >> /usr/local/nagiosxi/var/sysstat.log 2>&1)
Jun 12 11:01:01 usvanagiospxi1 run-parts(/etc/cron.hourly)[9377]: starting 0anacron
Jun 12 11:01:01 usvanagiospxi1 run-parts(/etc/cron.hourly)[9415]: finished 0anacron
Jun 12 11:02:01 usvanagiospxi1 CROND[9765]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php >> /usr/local/nagiosxi/var/reportengine.log 2>&1)
Jun 12 11:02:01 usvanagiospxi1 CROND[9766]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/event_handler.php >> /usr/local/nagiosxi/var/event_handler.log 2>&1)
Jun 12 11:02:01 usvanagiospxi1 CROND[9767]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php >> /usr/local/nagiosxi/var/cleaner.log 2>&1)
Jun 12 11:02:01 usvanagiospxi1 CROND[9771]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php >> /usr/local/nagiosxi/var/cmdsubsys.log 2>&1)
Jun 12 11:02:01 usvanagiospxi1 CROND[9775]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/nom.php >> /usr/local/nagiosxi/var/nom.log 2>&1)
Jun 12 11:02:01 usvanagiospxi1 CROND[9774]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php >> /usr/local/nagiosxi/var/perfdataproc.log 2>&1)
Jun 12 11:02:01 usvanagiospxi1 CROND[9779]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php >> /usr/local/nagiosxi/var/sysstat.log 2>&1)
Jun 12 11:02:01 usvanagiospxi1 CROND[9781]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php >> /usr/local/nagiosxi/var/feedproc.log 2>&1)
Jun 12 11:02:01 usvanagiospxi1 CROND[9782]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php >> /usr/local/nagiosxi/var/eventman.log 2>&1)
[email protected]:(06-12 10:37): /usr/local/nagiosxi/var


I prev stated that on the perf log file under /usr/local/nagios/var/ is empty. but the perflog under /usr/local/nagiosxi/var I see the following warnings


DONE. Processed 0 files.
PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/local/nagiosxi/cron/perfdataproc.php on line 59
Outbound data DISABLED Mon, 12 Jun 2017 15:08:02 +0000

My server seems to have the right time

# timedatectl
Local time: Mon 2017-06-12 11:08:51 EDT
Universal time: Mon 2017-06-12 15:08:51 UTC
RTC time: Mon 2017-06-12 15:08:51
Time zone: America/New_York (EDT, -0400)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no
DST active: yes
Last DST change: DST began at
Sun 2017-03-12 01:59:59 EST
Sun 2017-03-12 03:00:00 EDT
Next DST change: DST ends (the clock jumps one hour backwards) at
Sun 2017-11-05 01:59:59 EDT
Sun 2017-11-05 01:00:00 EST


and here are the other commands requested

# ps -ef |grep perfdata
nagios 12485 12469 0 11:09 ? 00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php >> /usr/local/nagiosxi/var/perfdataproc.log 2>&1
nagios 12490 12485 0 11:09 ? 00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php

Re: Fresh install

Posted: Mon Jun 12, 2017 11:15 am
by tgriep
I am found the following error in the perfdata.log file that is probably causing the issue.

Code: Select all

2017-06-11 18:53:23 [29545] [1] Cant find Nagios Environment. Exiting ....
To fix this, disable the environment macros setting in the nagios.cfg file by changing the following line from

Code: Select all

enable_environment_macros=1
to

Code: Select all

enable_environment_macros=0
Save the file and restart nagios by running the following as root.

Code: Select all

service nagios restart
Also, the system looks like it is using the ram disk but some settings are missing.
Take a look at this document to verify that all of the files have the correct settings.
https://assets.nagios.com/downloads/nag ... giosXI.pdf
The simplest thing to fix this is to run the Automatic RAM Disk Installation script.


The time error that you are seeing are caused from the time zone settings in the /etc/php.ini file that are missing.

Code: Select all

===Date/Time====
PHP Timezone: Not set 
PHP Time: Mon, 12 Jun 2017 15:13:18 +0000
System Time: Mon, 12 Jun 2017 11:13:18 -0400
Go through this document and verify that all of the time settings are correct.
https://assets.nagios.com/downloads/nag ... m_Time.pdf

Let us know how it works out for you.