Nagios is running slow

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Nagios is running slow

Post by benhank »

I have an unusual (gasp) problem.
I've noticed that apply config takes longer than it should on my X5 machine. At times it runs slower that my 2014 box.
I don't even know where to begin to begin to troubleshoot this one.

the other thing is that page refreshes are lightning fast in core, but in XI not so much.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios is running slow

Post by ssax »

Generally the first thing I look for is crashed tables when I hear "slowness", check /var/log/mysqld.log or /var/log/mariadb/mariadb.log.

Also, run please run this tail command:

Code: Select all

tail -f /usr/local/nagiosxi/var/cmdsubsys.log
Then try to apply configuration again and send the full output of the tail command.

May also want to review your top output and your /var/log/httpd/error_log or /var/log/httpd/ssl_error_log.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios is running slow

Post by ssax »

Another good thing to check is to make sure that your /etc/hosts is up to snuff, what I mean by that is add the shortname and the FQDN to your 127.0.0.1 entry, make sure localhost is on there as well as any other shortname or FQDN that you access it from (say you have a special one on your own hosts file on the computer you are accessing it from OR the ones from Admin > System Settings > Program URL/External URL), just make sure they are all in there on the 127.0.0.1 entry.
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Nagios is running slow

Post by bwallace »

In addition to ssax's suggestion, could you post a screenshot of Admin > System Information > System Status
Also, post the output of 'top' while 'apply config' is taking its time.
Lastly, what is the output of ipcs -q?
Be sure to check out the Knowledgebase for helpful articles and solutions!
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: Nagios is running slow

Post by benhank »

sorry for the delay gents, here are the results:

Code: Select all

 tail -f /var/log/httpd/ssl_error_log
[Thu Aug 11 16:59:10 2016] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Thu Aug 11 16:59:11 2016] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Thu Aug 11 17:00:28 2016] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Thu Aug 11 17:00:28 2016] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Thu Aug 11 17:10:40 2016] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Thu Aug 11 17:10:40 2016] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Thu Aug 11 17:13:40 2016] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Thu Aug 11 17:13:40 2016] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Aug 12 12:52:56 2016] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Aug 12 12:52:56 2016] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)

Code: Select all

 tail -f /usr/local/nagiosxi/var/cmdsubsys.log
..............PROCESSING COMMAND ID 7924...
PROCESS COMMAND: CMD=17, DATA=
APPLYING NAGIOSCORE CONFIG...
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 'America/New_York' for 'EDT/-4.0/DST' instead in /usr/local/nagiosxi/html/includes/utils-auditlog.inc.php on line 95
CMDLINE=cd /usr/local/nagiosxi/scripts && ./reconfigure_nagios.sh
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
--2016-08-12 13:10:15--  http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.login”

     0K .......... .......... .......... ....                  1.44M=0.02s

2016-08-12 13:10:16 (1.44 MB/s) - “nagiosql.login” saved [35527]

/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&username=nagiosxi&password=g7vabq' -O nagiosql.loginLOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL: http://localhost/nagiosxi/includes/components/ccm/
Array
(
)
RESETTING PERMS
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
..................../bin/chmod: cannot access `/usr/local/nagios/share/perfdata/GRN300-RTR-1/If_Serial0_0_1_0.xml.13870': No such file or directory
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated

PROCESSED 0 COMMANDS
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
--2016-08-12 13:12:05--  http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.login”

     0K .......... .......... .......... ....                  1.23M=0.03s

2016-08-12 13:12:05 (1.23 MB/s) - “nagiosql.login” saved [35527]

/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&username=nagiosxi&password=g7vabq' -O nagiosql.loginLOGIN SUCCESSFUL!
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'cmd=apply&type=writeConfig' -O nagiosql.export.monitoring
--2016-08-12 13:12:05--  http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.export.monitoring”

     0K .......... ....                                        7.24K=2.0s

2016-08-12 13:12:08 (7.24 KB/s) - “nagiosql.export.monitoring” saved [14985]

WRITE CONFIGS SUCCESSFUL!
OUTPUT:
Nagios Core 4.1.1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-19-2015
License: GPL

Website: https://www.nagios.org
Reading configuration data...
   Read main config file okay...
Warning: Duplicate definition found for service 'NSClient: NRPE:  Windows - 15 minute Reboot Check' on host 'WKENPROVT01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_windows_15min_uptime.cfg', starting on line 16)
Warning: Duplicate definition found for service 'NSClient: NRPE:  Windows - 15 minute Reboot Check' on host 'WKENPROVDBT01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_windows_15min_uptime.cfg', starting on line 16)
Warning: Duplicate definition found for service 'NSClient: NRPE:  Windows - 15 minute Reboot Check' on host 'WKENPHAPOST01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_windows_15min_uptime.cfg', starting on line 16)
Warning: Duplicate definition found for service 'NSClient: NRPE:  Windows - 15 minute Reboot Check' on host 'WKENPROVP01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_windows_15min_uptime.cfg', starting on line 16)
Warning: Duplicate definition found for service 'NSClient: NRPE:  Windows - 15 minute Reboot Check' on host 'WKENPROVDBP01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_windows_15min_uptime.cfg', starting on line 16)
Warning: Duplicate definition found for service 'NSClient: NRPE:  Windows - 15 minute Reboot Check' on host 'WKENPHPROXYT01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_windows_15min_uptime.cfg', starting on line 16)
Warning: Duplicate definition found for service 'NSClient: NRPE:  Windows - 15 minute Reboot Check' on host 'WKENPHPROXYP01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_windows_15min_uptime.cfg', starting on line 16)
Warning: Duplicate definition found for service 'NSClient: NRPE:  Windows - 15 minute Reboot Check' on host 'WKENPHAPOSP01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_windows_15min_uptime.cfg', starting on line 16)
Warning: Duplicate definition found for service 'NSClient: NRPE:  Windows - 15 minute Reboot Check' on host 'WKENPHAPOSDBT01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_windows_15min_uptime.cfg', starting on line 16)
Warning: Duplicate definition found for service 'NSClient: NRPE:  Windows - 15 minute Reboot Check' on host 'WKENPHAPOSDBP02.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_windows_15min_uptime.cfg', starting on line 16)
Warning: Duplicate definition found for service 'NSClient: NRPE:  Windows - 15 minute Reboot Check' on host 'WKENIVRP03.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_windows_15min_uptime.cfg', starting on line 16)
Warning: Duplicate definition found for service 'NSClient: NRPE:  Windows - 15 minute Reboot Check' on host 'WKENIVRP02.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_windows_15min_uptime.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Linux Current Load' on host 'LKENPESP4.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_linux_current_load.cfg', starting on line 16)
Warning: Duplicate definition found for service 'NRPE: DHCP scope check' on host 'WWSSDC01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_dhcp_scope.cfg', starting on line 16)
Warning: Duplicate definition found for service 'NRPE: DHCP scope check' on host 'WWATDHCPP01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_dhcp_scope.cfg', starting on line 16)
Warning: Duplicate definition found for service 'NRPE: DHCP scope check' on host 'WSOMDC01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_dhcp_scope.cfg', starting on line 16)
Warning: Duplicate definition found for service 'NRPE: DHCP scope check' on host 'WRIVDC01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_dhcp_scope.cfg', starting on line 16)
Warning: Duplicate definition found for service 'NRPE: DHCP scope check' on host 'WQCYDC01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_dhcp_scope.cfg', starting on line 16)
Warning: Duplicate definition found for service 'NRPE: DHCP scope check' on host 'WPOSDHCPP01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_dhcp_scope.cfg', starting on line 16)
Warning: Duplicate definition found for service 'NRPE: DHCP scope check' on host 'WPBYDC01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_dhcp_scope.cfg', starting on line 16)
Warning: Duplicate definition found for service 'NRPE: DHCP scope check' on host 'WKENRDP01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_dhcp_scope.cfg', starting on line 16)
Warning: Duplicate definition found for service 'NRPE: DHCP scope check' on host 'WGRANDHCPP01.magran.com' (config file '/usr/local/nagios/etc/services/atrius_dhcp_scope.cfg', starting on line 16)
Warning: Duplicate definition found for service 'NRPE: DHCP scope check' on host 'WCOPDHCPP01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_dhcp_scope.cfg', starting on line 16)
Warning: Duplicate definition found for service 'NRPE: DHCP scope check' on host 'WCOPDC01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_dhcp_scope.cfg', starting on line 16)
Warning: Duplicate definition found for service 'NRPE: DHCP scope check' on host 'WCONDC01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_dhcp_scope.cfg', starting on line 16)
Warning: Duplicate definition found for service 'NRPE: DHCP scope check' on host 'WCHEDHCPP01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_dhcp_scope.cfg', starting on line 16)
Warning: Duplicate definition found for service 'NRPE: DHCP scope check' on host 'WCAMDHCPP01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_dhcp_scope.cfg', starting on line 16)
Warning: Duplicate definition found for service 'NRPE: DHCP scope check' on host 'WBURDHCPP01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_dhcp_scope.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Interface Table Status - core network devices' on host 'KEN-GLBXINET1' (config file '/usr/local/nagios/etc/services/atrius_interface_table_core.cfg', starting on line 16)
   Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
        Checked 11745 services.
        Checked 2357 hosts.
        Checked 205 host groups.
        Checked 1 service groups.
        Checked 98 contacts.
        Checked 20 contact groups.
        Checked 274 commands.
        Checked 109 time periods.
        Checked 0 host escalations.
        Checked 0 service escalations.
Checking for circular paths...
        Checked 2357 hosts
        Checked 0 service dependencies
        Checked 0 host dependencies
        Checked 109 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check
RET: 0
Running configuration check...
Stopping nagios:. done.
Starting nagios: done.
OUTPUT=Starting nagios: done.
RETURNCODE=0

PROCESSED 1 COMMANDS
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
.
PROCESSED 0 COMMANDS
^C
You have new mail in /var/spool/mail/root

Code: Select all

 tail -f /var/log/mysqld.log
160812 12:52:49 [Note] /usr/libexec/mysqld: Shutdown complete

160812 12:52:49 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
160812 12:52:49 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
160812 12:52:49  InnoDB: Initializing buffer pool, size = 8.0M
160812 12:52:49  InnoDB: Completed initialization of buffer pool
160812 12:52:50  InnoDB: Started; log sequence number 0 44243
160812 12:52:50 [Note] Event Scheduler: Loaded 0 events
160812 12:52:50 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.1.73'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  Source distribution
^C
You have new mail in /var/spool/mail/root

Code: Select all

[Fri Aug 12 13:12:29 2016] [error] [client 172.26.70.66] PHP Warning:  strtotime                                                                                                                                                              (): 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. I                                                                                                                                                              n case you used any of those methods and you are still getting this warning, you                                                                                                                                                               most likely misspelled the timezone identifier. We selected 'America/New_York'                                                                                                                                                               for 'EDT/-4.0/DST' instead in /usr/local/nagiosxi/html/includes/utils-status.inc                                                                                                                                                              .php on line 103, referer: http://lkendrwatsonp01/nagiosxi/includes/components/x                                                                                                                                                              icore/status.php?show=hostgroups&hostgroup=all&style=summary
[Fri Aug 12 13:12:29 2016] [error] [client 172.26.70.66] PHP Warning:  strtotime                                                                                                                                                              (): 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. I                                                                                                                                                              n case you used any of those methods and you are still getting this warning, you                                                                                                                                                               most likely misspelled the timezone identifier. We selected 'America/New_York'                                                                                                                                                               for 'EDT/-4.0/DST' instead in /usr/local/nagiosxi/html/includes/utils-status.inc                                                                                                                                                              .php on line 103, referer: http://lkendrwatsonp01/nagiosxi/includes/components/x                                                                                                                                                              icore/status.php?show=hostgroups&hostgroup=all&style=summary
[Fri Aug 12 13:12:29 2016] [error] [client 172.26.70.66] PHP Warning:  strtotime                                                                                                                                                              (): 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. I                                                                                                                                                              n case you used any of those methods and you are still getting this warning, you                                                                                                                                                               most likely misspelled the timezone identifier. We selected 'America/New_York'                                                                                                                                                               for 'EDT/-4.0/DST' instead in /usr/local/nagiosxi/html/includes/utils-status.inc                                                                                                                                                              .php on line 103, referer: http://lkendrwatsonp01/nagiosxi/includes/components/x                                                                                                                                                              icore/status.php?show=hostgroups&hostgroup=all&style=summary
[Fri Aug 12 13:12:29 2016] [error] [client 172.26.70.66] PHP Warning:  strtotime                                                                                                                                                              (): 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. I                                                                                                                                                              n case you used any of those methods and you are still getting this warning, you                                                                                                                                                               most likely misspelled the timezone identifier. We selected 'America/New_York'                                                                                                                                                               for 'EDT/-4.0/DST' instead in /usr/local/nagiosxi/html/includes/utils-status.inc                                                                                                                                                              .php on line 103, referer: http://lkendrwatsonp01/nagiosxi/includes/components/x                                                                                                                                                              icore/status.php?show=hostgroups&hostgroup=all&style=summary
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Nagios is running slow

Post by bwallace »

Thanks for the details....

You can try and tweak some PHP settings to see if that helps.
To do this, edit the /etc/php.ini file and change the following options to the values below.

Code: Select all

    max_execution_time = 60
    max_input_time = 120
    memory_limit = 512M
Then restart Apache for the settings take place
service httpd restart

Also, you can edit the /etc/hosts file and add the server name to the following line.
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 <yourNagiosServerName>
Be sure to check out the Knowledgebase for helpful articles and solutions!
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: Nagios is running slow

Post by benhank »

made the changes but no difference still takes a long while:
Capture.PNG
mind you I had enough time to take a screenie and it still was running
You do not have the required permissions to view the files attached to this post.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios is running slow

Post by tmcdonald »

Code: Select all

        Checked 11745 services.
        Checked 2357 hosts.
14,102 total objects, definitely getting up there. What sort of RAM and CPU do you have allocated? Do you have a ramdisk in place or the MySQL database offloaded? Around 10k total objects is when we usually recommend this, and 20k is the most I generally recommend for a single server.

Also, we can try doing a manual reconfigure_nagios.sh from the command line and look at the timing. You will need to yum install moreutils to get access to the ts command which prepends a timestamp in from of every line of output:

http://unix.stackexchange.com/questions ... -a-command

Then do the following:

Code: Select all

cd /usr/local/nagiosxi/scripts/
./reconfigure_nagios.sh 2>&1 | ts
and post the output. This should let us know where any slowness occurs in the process.
Former Nagios employee
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: Nagios is running slow

Post by benhank »

Code: Select all

 ./reconfigure_nagios.sh 2>&1 | ts
Aug 15 12:41:06 URL: http://localhost/nagiosxi/includes/components/ccm/
Aug 15 12:41:06 CMDLINE
Aug 15 12:41:06 /usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&username=nagiosxi&password=g7vabq' -O nagiosql.login--2016-08-15 12:41:06--  http://localhost/nagiosxi/includes/components/ccm/
Aug 15 12:41:06 Resolving localhost... ::1, 127.0.0.1
Aug 15 12:41:06 Connecting to localhost|::1|:80... connected.
Aug 15 12:41:06 HTTP request sent, awaiting response... 200 OK
Aug 15 12:41:06 Length: unspecified [text/html]
Aug 15 12:41:06 Saving to: “nagiosql.login”
Aug 15 12:41:06
Aug 15 12:41:06      0K .......... .......... .......... ....                  1.31M=0.03s
Aug 15 12:41:06
Aug 15 12:41:06 2016-08-15 12:41:06 (1.31 MB/s) - “nagiosql.login” saved [35425]
Aug 15 12:41:06
Aug 15 12:41:06 LOGIN SUCCESSFUL!
Aug 15 12:41:06 IMPORTING CONFIG FILES...URL: http://localhost/nagiosxi/includes/components/ccm/
Aug 15 12:41:06 Array
Aug 15 12:41:06 (
Aug 15 12:41:06 )
Aug 15 12:41:06 RESETTING PERMS
Aug 15 12:42:49 /bin/chmod: cannot access `/usr/local/nagios/share/perfdata/BUR_F2_2960-S33/If_FastEthernet0_21.xml.27233': No such file or directory
Aug 15 12:43:08 /bin/chmod: cannot access `/usr/local/nagios/share/perfdata/KEN-5K-A21-1-2/If_port-channel106.xml.31646': No such file or directory
Aug 15 12:43:49 URL: http://localhost/nagiosxi/includes/components/ccm/
Aug 15 12:43:49 CMDLINE
Aug 15 12:43:49 /usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&username=nagiosxi&password=g7vabq' -O nagiosql.login--2016-08-15 12:43:49--  http://localhost/nagiosxi/includes/components/ccm/
Aug 15 12:43:49 Resolving localhost... ::1, 127.0.0.1
Aug 15 12:43:49 Connecting to localhost|::1|:80... connected.
Aug 15 12:43:50 HTTP request sent, awaiting response... 200 OK
Aug 15 12:43:50 Length: unspecified [text/html]
Aug 15 12:43:50 Saving to: “nagiosql.login”
Aug 15 12:43:50
Aug 15 12:43:50      0K .......... .......... .......... ....                  1.26M=0.03s
Aug 15 12:43:50
Aug 15 12:43:50 2016-08-15 12:43:50 (1.26 MB/s) - “nagiosql.login” saved [35425]
Aug 15 12:43:50
Aug 15 12:43:50 LOGIN SUCCESSFUL!
Aug 15 12:43:50 URL: http://localhost/nagiosxi/includes/components/ccm/
Aug 15 12:43:50 CMDLINE:
Aug 15 12:43:50 /usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'cmd=apply&type=writeConfig' -O nagiosql.export.monitoring
Aug 15 12:43:50 --2016-08-15 12:43:50--  http://localhost/nagiosxi/includes/components/ccm/
Aug 15 12:43:50 Resolving localhost... ::1, 127.0.0.1
Aug 15 12:43:50 Connecting to localhost|::1|:80... connected.
Aug 15 12:43:50 HTTP request sent, awaiting response... 200 OK
Aug 15 12:43:50 Length: unspecified [text/html]
Aug 15 12:43:50 Saving to: “nagiosql.export.monitoring”
Aug 15 12:43:50
Aug 15 12:43:52      0K .......... ....                                        6.87K=2.1s
Aug 15 12:43:52
Aug 15 12:43:52 2016-08-15 12:43:52 (6.87 KB/s) - “nagiosql.export.monitoring” saved [14985]
Aug 15 12:43:52
Aug 15 12:43:52 WRITE CONFIGS SUCCESSFUL!
Aug 15 12:43:52 OUTPUT:
Aug 15 12:43:52 Nagios Core 4.1.1
Aug 15 12:43:52 Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Aug 15 12:43:52 Copyright (c) 1999-2009 Ethan Galstad
Aug 15 12:43:52 Last Modified: 08-19-2015
Aug 15 12:43:52 License: GPL
Aug 15 12:43:52
Aug 15 12:43:52 Website: https://www.nagios.org
Aug 15 12:43:52 Reading configuration data...
Aug 15 12:43:52    Read main config file okay...
Aug 15 12:43:52 Warning: Duplicate definition found for service 'NSClient: NRPE:  Windows - 15 minute Reboot Check' on host 'WKENPROVT01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_windows_15min_uptime.cfg', starting on line 16)
Aug 15 12:43:52 Warning: Duplicate definition found for service 'NSClient: NRPE:  Windows - 15 minute Reboot Check' on host 'WKENPROVDBT01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_windows_15min_uptime.cfg', starting on line 16)
Aug 15 12:43:52 Warning: Duplicate definition found for service 'NSClient: NRPE:  Windows - 15 minute Reboot Check' on host 'WKENPHAPOST01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_windows_15min_uptime.cfg', starting on line 16)
Aug 15 12:43:52 Warning: Duplicate definition found for service 'NSClient: NRPE:  Windows - 15 minute Reboot Check' on host 'WKENPROVP01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_windows_15min_uptime.cfg', starting on line 16)
Aug 15 12:43:52 Warning: Duplicate definition found for service 'NSClient: NRPE:  Windows - 15 minute Reboot Check' on host 'WKENPROVDBP01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_windows_15min_uptime.cfg', starting on line 16)
Aug 15 12:43:52 Warning: Duplicate definition found for service 'NSClient: NRPE:  Windows - 15 minute Reboot Check' on host 'WKENPHPROXYT01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_windows_15min_uptime.cfg', starting on line 16)
Aug 15 12:43:52 Warning: Duplicate definition found for service 'NSClient: NRPE:  Windows - 15 minute Reboot Check' on host 'WKENPHPROXYP01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_windows_15min_uptime.cfg', starting on line 16)
Aug 15 12:43:52 Warning: Duplicate definition found for service 'NSClient: NRPE:  Windows - 15 minute Reboot Check' on host 'WKENPHAPOSP01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_windows_15min_uptime.cfg', starting on line 16)
Aug 15 12:43:52 Warning: Duplicate definition found for service 'NSClient: NRPE:  Windows - 15 minute Reboot Check' on host 'WKENPHAPOSDBT01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_windows_15min_uptime.cfg', starting on line 16)
Aug 15 12:43:52 Warning: Duplicate definition found for service 'NSClient: NRPE:  Windows - 15 minute Reboot Check' on host 'WKENPHAPOSDBP02.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_windows_15min_uptime.cfg', starting on line 16)
Aug 15 12:43:52 Warning: Duplicate definition found for service 'NSClient: NRPE:  Windows - 15 minute Reboot Check' on host 'WKENIVRP03.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_windows_15min_uptime.cfg', starting on line 16)
Aug 15 12:43:52 Warning: Duplicate definition found for service 'NSClient: NRPE:  Windows - 15 minute Reboot Check' on host 'WKENIVRP02.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_windows_15min_uptime.cfg', starting on line 16)
Aug 15 12:43:52 Warning: Duplicate definition found for service 'Linux Current Load' on host 'LKENPESP4.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_linux_current_load.cfg', starting on line 16)
Aug 15 12:43:52 Warning: Duplicate definition found for service 'NRPE: DHCP scope check' on host 'WWSSDC01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_dhcp_scope.cfg', starting on line 16)
Aug 15 12:43:52 Warning: Duplicate definition found for service 'NRPE: DHCP scope check' on host 'WWATDHCPP01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_dhcp_scope.cfg', starting on line 16)
Aug 15 12:43:52 Warning: Duplicate definition found for service 'NRPE: DHCP scope check' on host 'WSOMDC01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_dhcp_scope.cfg', starting on line 16)
Aug 15 12:43:52 Warning: Duplicate definition found for service 'NRPE: DHCP scope check' on host 'WRIVDC01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_dhcp_scope.cfg', starting on line 16)
Aug 15 12:43:52 Warning: Duplicate definition found for service 'NRPE: DHCP scope check' on host 'WQCYDC01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_dhcp_scope.cfg', starting on line 16)
Aug 15 12:43:52 Warning: Duplicate definition found for service 'NRPE: DHCP scope check' on host 'WPOSDHCPP01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_dhcp_scope.cfg', starting on line 16)
Aug 15 12:43:52 Warning: Duplicate definition found for service 'NRPE: DHCP scope check' on host 'WPBYDC01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_dhcp_scope.cfg', starting on line 16)
Aug 15 12:43:52 Warning: Duplicate definition found for service 'NRPE: DHCP scope check' on host 'WKENRDP01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_dhcp_scope.cfg', starting on line 16)
Aug 15 12:43:52 Warning: Duplicate definition found for service 'NRPE: DHCP scope check' on host 'WGRANDHCPP01.magran.com' (config file '/usr/local/nagios/etc/services/atrius_dhcp_scope.cfg', starting on line 16)
Aug 15 12:43:52 Warning: Duplicate definition found for service 'NRPE: DHCP scope check' on host 'WCOPDHCPP01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_dhcp_scope.cfg', starting on line 16)
Aug 15 12:43:52 Warning: Duplicate definition found for service 'NRPE: DHCP scope check' on host 'WCOPDC01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_dhcp_scope.cfg', starting on line 16)
Aug 15 12:43:52 Warning: Duplicate definition found for service 'NRPE: DHCP scope check' on host 'WCONDC01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_dhcp_scope.cfg', starting on line 16)
Aug 15 12:43:52 Warning: Duplicate definition found for service 'NRPE: DHCP scope check' on host 'WCHEDHCPP01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_dhcp_scope.cfg', starting on line 16)
Aug 15 12:43:52 Warning: Duplicate definition found for service 'NRPE: DHCP scope check' on host 'WCAMDHCPP01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_dhcp_scope.cfg', starting on line 16)
Aug 15 12:43:52 Warning: Duplicate definition found for service 'NRPE: DHCP scope check' on host 'WBURDHCPP01.Healthone.org' (config file '/usr/local/nagios/etc/services/atrius_dhcp_scope.cfg', starting on line 16)
Aug 15 12:43:52 Warning: Duplicate definition found for service 'Interface Table Status - core network devices' on host 'KEN-GLBXINET1' (config file '/usr/local/nagios/etc/services/atrius_interface_table_core.cfg', starting on line 16)
Aug 15 12:43:52    Read object config files okay...
Aug 15 12:43:52
Aug 15 12:43:52 Running pre-flight check on configuration data...
Aug 15 12:43:52
Aug 15 12:43:52 Checking objects...
Aug 15 12:43:52         Checked 11746 services.
Aug 15 12:43:52         Checked 2357 hosts.
Aug 15 12:43:52         Checked 205 host groups.
Aug 15 12:43:52         Checked 1 service groups.
Aug 15 12:43:52         Checked 98 contacts.
Aug 15 12:43:52         Checked 20 contact groups.
Aug 15 12:43:52         Checked 274 commands.
Aug 15 12:43:52         Checked 109 time periods.
Aug 15 12:43:52         Checked 0 host escalations.
Aug 15 12:43:52         Checked 0 service escalations.
Aug 15 12:43:52 Checking for circular paths...
Aug 15 12:43:52         Checked 2357 hosts
Aug 15 12:43:52         Checked 0 service dependencies
Aug 15 12:43:52         Checked 0 host dependencies
Aug 15 12:43:52         Checked 109 timeperiods
Aug 15 12:43:52 Checking global event handlers...
Aug 15 12:43:52 Checking obsessive compulsive processor commands...
Aug 15 12:43:52 Checking misc settings...
Aug 15 12:43:52
Aug 15 12:43:52 Total Warnings: 0
Aug 15 12:43:52 Total Errors:   0
Aug 15 12:43:52
Aug 15 12:43:52 Things look okay - No serious problems were detected during the pre-flight check
Aug 15 12:43:52 RET: 0
Aug 15 12:43:53 Running configuration check...
Aug 15 12:43:54 Stopping nagios:. done.
Aug 15 12:43:54 Starting nagios: done.
You have new mail in /var/spool/mail/root
[root@lkendrwatsonp01 scripts]#
and:

Code: Select all

[root@lkendrwatsonp01 scripts]# ipcs -q

------ Message Queues --------
key        msqid      owner      perms      used-bytes   messages
0x52000002 0          nagios     600        0            0
0xa0000002 65537      nagios     600        83679232     81718
0x57000002 98306      nagios     600        0            0
0xa1000002 5570563    nagios     600        58558464     57186
0xac000002 262149     nagios     600        0            0
0x1a000002 327686     nagios     600        74467328     72722
0x86000002 425992     nagios     600        73365504     71646

You have new mail in /var/spool/mail/root
[root@lkendrwatsonp01 scripts]#
and I ran this while waiting for the apply config to run:

Code: Select all

 ps axu | grep nagios
postgres  5108  0.0  0.0 219932 11848 ?        Ss   Aug14   0:04 postgres: nagiosxi nagiosxi [local] idle
postgres  5273  0.0  0.0 219932 11000 ?        Ss   Aug14   0:04 postgres: nagiosxi nagiosxi [local] idle
postgres  6659  0.0  0.0 219940  9664 ?        Ss   11:17   0:01 postgres: nagiosxi nagiosxi [local] idle
nagios    7239  4.5  0.1  73088 44104 ?        Ss   12:51   0:07 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios    7241  0.0  0.0  10016   944 ?        S    12:51   0:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios    7242  0.0  0.0  10016   936 ?        S    12:51   0:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios    7243  0.0  0.0  10016   940 ?        S    12:51   0:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios    7244  0.0  0.0  10016   956 ?        S    12:51   0:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios    7245  0.0  0.0  10016   944 ?        S    12:51   0:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios    7246  0.0  0.0  10016   944 ?        S    12:51   0:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios    7247  0.0  0.0  10016   936 ?        S    12:51   0:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios    7248  0.0  0.0  10016   948 ?        S    12:51   0:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios    7249  0.0  0.0  10016   940 ?        S    12:51   0:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios    7250  0.0  0.0  10016   948 ?        S    12:51   0:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios    7251  0.0  0.0  10016   944 ?        S    12:51   0:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios    7252  0.0  0.0  10016   940 ?        S    12:51   0:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios    7253  0.0  0.0  10016   940 ?        S    12:51   0:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios    7254  0.0  0.0  10016   944 ?        S    12:51   0:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios    7255  0.0  0.0  10016   944 ?        S    12:51   0:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios    7256  0.0  0.0  10016   944 ?        S    12:51   0:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios    7257  0.0  0.0  10016   940 ?        S    12:51   0:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios    7258  0.0  0.0  10016   976 ?        S    12:51   0:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios    7259  0.0  0.0  10016   944 ?        S    12:51   0:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios    7260  0.0  0.0  10016   944 ?        S    12:51   0:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios    7261  0.0  0.0  10016   948 ?        S    12:51   0:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios    7262  0.0  0.0  10016   948 ?        S    12:51   0:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios    7263  0.0  0.0  10016   948 ?        S    12:51   0:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios    7264  0.0  0.0  10016   960 ?        S    12:51   0:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios    7268  0.6  0.0  50288  1388 ?        S    12:51   0:01 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
nagios    7270 25.5  0.0  56036  7164 ?        S    12:51   0:44 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
nagios    7464  0.0  0.1  71992 32152 ?        S    12:51   0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
postgres 12547  0.0  0.0 219932 10996 ?        Ss   Aug14   0:04 postgres: nagiosxi nagiosxi [local] idle
postgres 12748  0.0  0.0 219932 11168 ?        Ss   Aug14   0:04 postgres: nagiosxi nagiosxi [local] idle
postgres 14737  0.0  0.0 219940  9572 ?        Ss   11:19   0:01 postgres: nagiosxi nagiosxi [local] idle
postgres 15755  0.0  0.0 219932 11124 ?        Ss   Aug14   0:04 postgres: nagiosxi nagiosxi [local] idle
nagios   16457  0.0  0.0 106104  1136 ?        Ss   12:53   0:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php > /usr/local/nagiosxi/var/perfdataproc.log 2>&1
nagios   16459  0.2  0.0 319832 22316 ?        S    12:53   0:00 /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php
nagios   16460  0.0  0.0 106104  1128 ?        Ss   12:53   0:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php > /usr/local/nagiosxi/var/sysstat.log 2>&1
nagios   16461  0.0  0.0 106104  1132 ?        Ss   12:53   0:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php > /usr/local/nagiosxi/var/eventman.log 2>&1
nagios   16462  0.0  0.0 106104  1132 ?        Ss   12:53   0:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php > /usr/local/nagiosxi/var/cmdsubsys.log 2>&1
nagios   16463  0.0  0.0 106104  1136 ?        Ss   12:53   0:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php > /usr/local/nagiosxi/var/feedproc.log 2>&1
nagios   16467  0.4  0.1 329960 32188 ?        S    12:53   0:00 /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php
nagios   16468  0.3  0.0 319864 22320 ?        S    12:53   0:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
nagios   16469  0.3  0.0 321996 22788 ?        S    12:53   0:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
nagios   16470  0.2  0.0 319808 22072 ?        S    12:53   0:00 /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php
postgres 16476  0.0  0.0 219932 11028 ?        Ss   Aug14   0:04 postgres: nagiosxi nagiosxi [local] idle
postgres 16510  0.0  0.0 219304  6200 ?        Ss   12:53   0:00 postgres: nagiosxi nagiosxi [local] idle
postgres 16514  0.0  0.0 219396  6468 ?        Ss   12:53   0:00 postgres: nagiosxi nagiosxi [local] idle
postgres 16523  0.0  0.0 219396  6080 ?        Ss   12:53   0:00 postgres: nagiosxi nagiosxi [local] idle
postgres 16527  0.0  0.0 219396  6044 ?        Ss   12:53   0:00 postgres: nagiosxi nagiosxi [local] idle
postgres 16539  0.0  0.0 219396  6708 ?        Ss   12:53   0:00 postgres: nagiosxi nagiosxi [local] idle
root     18752 10.2  0.0  61904  4212 ?        S    12:53   0:04 mysql -uroot -px xxxxxx nagios
nagios   21288  6.0  0.0 134972  7068 ?        S    12:53   0:00 /usr/bin/perl /usr/local/pnp4nagios/libexec/process_perfdata.pl -n --bulk /usr/local/pnp4nagios/var/spool/interfacetables_v3t.1471280004
nagios   21348  3.0  0.0 134012  6088 ?        S    12:53   0:00 /usr/bin/perl /usr/local/pnp4nagios/libexec/process_perfdata.pl -n --bulk /usr/local/pnp4nagios/var/spool/service-perfdata.1471279987
nagios   21349  3.1  0.0 134168  6320 ?        S    12:53   0:00 /usr/bin/perl /usr/local/pnp4nagios/libexec/process_perfdata.pl -n --bulk /usr/local/pnp4nagios/var/spool/service-perfdata.1471280001
nagios   21350  3.5  0.0 133988  6084 ?        S    12:53   0:00 /usr/bin/perl /usr/local/pnp4nagios/libexec/process_perfdata.pl -n --bulk /usr/local/pnp4nagios/var/spool/service-perfdata.1471280017
nagios   22296  0.0  0.0 107292   684 ?        S    12:53   0:00 /usr/local/nagios/libexec/check_icmp -H 172.22.200.52 -w 3000.0 80  -c 5000.0 100  -p 5
nagios   22340  0.0  0.0 107292   684 ?        S    12:53   0:00 /usr/local/nagios/libexec/check_icmp -H 64.212.90.7 -w 3000.0 80  -c 5000.0 100  -p 5
nagios   22743  0.0  0.0  39224  1376 ?        S    12:53   0:00 /usr/local/nagios/libexec/check_nrpe -H 172.22.115.151 -t 30 -c check_dhcp_scope -n
nagios   22845  0.0  0.0  39368  2396 ?        S    12:53   0:00 /usr/local/nagios/libexec/check_nrpe -H 172.22.140.8 -t 30 -c check_dhcp_scope
nagios   22932  0.0  0.0 107292   684 ?        S    12:53   0:00 /usr/local/nagios/libexec/check_icmp -H 162.220.44.251 -w 3000.0 80  -c 5000.0 100  -p 5
nagios   23060  0.0  0.0 107292   680 ?        S    12:53   0:00 /usr/local/nagios/libexec/check_icmp -H 68.178.200.191 -w 3000.0 80  -c 5000.0 100  -p 5
nagios   23228  0.0  0.0  39224  1376 ?        S    12:53   0:00 /usr/local/nagios/libexec/check_nrpe -H 172.22.30.92 -t 30 -c check_drivesize -n -a filter=(type in('fixed') AND drive NOT LIKE '\?\') warn=( used > 95% ) crit=( used > 98% ) top-syntax=%(status): Drivesizes %(detail_list) detail-syntax= {Drive %(drive) Total: %(size), Used: %(used), Free: %(free)} perf-config=*(unit:G) used %(ignored:true)
nagios   23229  0.0  0.0  39224  1376 ?        S    12:53   0:00 /usr/local/nagios/libexec/check_nrpe -H 172.22.3.110 -t 30 -c check_drivesize -n -a filter=(type in('fixed') AND drive NOT LIKE '\?\') warn=( used > 95% ) crit=( used > 98% ) top-syntax=%(status): Drivesizes %(detail_list) detail-syntax= {Drive %(drive) Total: %(size), Used: %(used), Free: %(free)} perf-config=*(unit:G) used %(ignored:true)
nagios   23254  0.0  0.0 107292   680 ?        S    12:53   0:00 /usr/local/nagios/libexec/check_icmp -H 172.28.2.153 -w 3000.0 80  -c 5000.0 100  -p 5
nagios   23255 39.0  0.0 165436 21176 ?        S    12:53   0:00 /usr/bin/perl /usr/local/nagios/libexec/check_interface_table_v3t.pl -H 172.22.60.17 -h BTR_BASEMENT_2960-S17 -2 -C Nagios1112 --64bits --nodetype=cisco --vlan --duplex --exclude-property ALL --exclude Loopback10,Loopback100,Null0 --warning-traffic 101,100000000,100000000 --critical-traffic 101,100000000,100000000 -f --perfdataformat loadonly -f --enableperfdata --outputshort
nagios   23260 39.0  0.0 165408 21164 ?        R    12:53   0:00 /usr/bin/perl /usr/local/nagios/libexec/check_interface_table_v3t.pl -H 172.22.60.14 -h BTR_F1_2960-S14 -2 -C Nagios1112 --64bits --nodetype=cisco --vlan --duplex --exclude-property ALL --exclude Loopback10,Loopback100,Null0 --warning-traffic 101,100000000,100000000 --critical-traffic 101,100000000,100000000 -f --perfdataformat loadonly -f --enableperfdata --outputshort
nagios   23270 34.0  0.0 165380 21120 ?        S    12:53   0:00 /usr/bin/perl /usr/local/nagios/libexec/check_interface_table_v3t.pl -H 172.22.60.23 -h BTR_F2_2960-S23 -2 -C Nagios1112 --64bits --nodetype=cisco --vlan --duplex --exclude-property ALL --exclude Loopback10,Loopback100,Null0 --warning-traffic 101,100000000,100000000 --critical-traffic 101,100000000,100000000 -f --perfdataformat loadonly -f --enableperfdata --outputshort
nagios   23276 35.0  0.0 165568 21264 ?        S    12:53   0:00 /usr/bin/perl /usr/local/nagios/libexec/check_interface_table_v3t.pl -H 172.22.60.32 -h BTR_F3_2960-S32 -2 -C Nagios1112 --64bits --nodetype=cisco --vlan --duplex --exclude-property ALL --exclude Loopback10,Loopback100,Null0 --warning-traffic 101,100000000,100000000 --critical-traffic 101,100000000,100000000 -f --perfdataformat loadonly -f --enableperfdata --outputshort
nagios   23287  0.0  0.0 165404 21196 ?        S    12:53   0:00 /usr/bin/perl /usr/local/nagios/libexec/check_interface_table_v3t.pl -H 172.22.60.41 -h BTR_MRI_2960-S41 -2 -C Nagios1112 --64bits --nodetype=cisco --vlan --duplex --exclude-property ALL --exclude Loopback10,Loopback100,Null0 --warning-traffic 101,100000000,100000000 --critical-traffic 101,100000000,100000000 -f --perfdataformat loadonly -f --enableperfdata --outputshort
nagios   23292  0.0  0.0 164136 19852 ?        S    12:53   0:00 /usr/bin/perl /usr/local/nagios/libexec/check_interface_table_v3t.pl -H 172.20.254.80 -h BUR-RTR-1 -2 -C Nagios1112 --nodetype=cisco --vlan --duplex --warning-property 1 --critical-property 1 -r --exclude ^Loopback.*,^Null.*,^T1\s* --64bits --warning-traffic 80,100,100 --critical-traffic 91,100,100 -f --perfdataformat loadonly -f --enableperfdata --outputshort
nagios   23306  0.0  0.0 164420 20040 ?        R    12:53   0:00 /usr/bin/perl /usr/local/nagios/libexec/check_interface_table_v3t.pl -H 172.22.80.23 -h BUR_F1_2960-S23 -2 -C Nagios1112 --64bits --nodetype=cisco --vlan --duplex --exclude-property ALL --exclude Loopback10,Loopback100,Null0 --warning-traffic 101,100000000,100000000 --critical-traffic 101,100000000,100000000 -f --perfdataformat loadonly -f --enableperfdata --outputshort
nagios   23322  0.0  0.0 159360  1736 ?        D    12:53   0:00 /usr/bin/rrdtool update /usr/local/pnp4nagios/var/perfdata/KEN_2FEN_B_2960-S97/If_GigabitEthernet1_0_50.rrd 1471279972:2:0:0
nagios   23326  0.0  0.0 130664  6768 ?        R    12:53   0:00 /usr/bin/perl /usr/local/nagios/libexec/check_snmp_uptime.pl -H 172.22.137.13 -C Nagios1112
nagios   23327  0.0  0.0 160856  1868 ?        D    12:53   0:00 /usr/bin/rrdtool update /usr/local/pnp4nagios/var/perfdata/KEN-5K-C09-1-2/If_Ethernet104_1_2.rrd 1471280004:2:0:0:0:0:0:0
nagios   23328  0.0  0.0 159360  1892 ?        D    12:53   0:00 /usr/bin/rrdtool update /usr/local/pnp4nagios/var/perfdata/WEY-4506-2/If_GigabitEthernet6_36.rrd 1471279987:1:8321.44:13298.48
nagios   23329  0.0  0.0 158984  1860 ?        D    12:53   0:00 /usr/bin/rrdtool update /usr/local/pnp4nagios/var/perfdata/WKENICAPPP01.Healthone.org/NSClient__NRPE__Disk_Usage__All_local_drives.rrd 1471280005:27.39894:1.23394
root     23331  0.0  0.0 103316   864 pts/0    S+   12:53   0:00 grep nagios
nagios   25542  0.0  0.0  50288   624 ?        Ss   Aug12   0:00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
nagios   25588  1.2  0.0 770876  3676 ?        Sl   Aug12  53:29 /usr/local/pnp4nagios/bin/npcd -d -f /usr/local/pnp4nagios/etc/npcd.cfg
postgres 26530  0.0  0.0 219936  9584 ?        Ss   11:21   0:01 postgres: nagiosxi nagiosxi [local] idle
postgres 26647  0.0  0.0 219932 11044 ?        Ss   Aug14   0:04 postgres: nagiosxi nagiosxi [local] idle
postgres 27101  0.0  0.0 219932 11636 ?        Ss   Aug14   0:04 postgres: nagiosxi nagiosxi [local] idle
Capture.PNG
Ill pm my profile as well, just let me know who to shoot it to
You do not have the required permissions to view the files attached to this post.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios is running slow

Post by ssax »

From that output it looks like it's taking the most time resetting the permissions, please run these commands and send us the full output:

Code: Select all

cd /usr/local/nagiosxi/scripts
bash -x reset_config_perms.sh 2>&1 | ts
Thanks
Locked