Long time for update option

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Long time for update option

Postby matisse » Mon May 07, 2018 9:00 am

Hi, could you help me please.
When i tried change my option via web-interface, for example Active Checks. I need wait updating status of option long time.
How can i do it faster?
Thanks!
Attachments
Capture 2018-05-01 at 16.54.06.png
matisse
 
Posts: 29
Joined: Wed Aug 31, 2016 4:33 pm

Re: Long time for update option

Postby mcapra » Mon May 07, 2018 9:35 am

You could pipe that command to the external commands file directly, but all that would save you is the page load time of the web GUI which *should* be negligible.

If you're using Nagios Core 3, I would highly recommend upgrading to Nagios Core 4 as there have been dramatic increases to performance across the board.

Can you share the output of the following commands executed from the CLI of your Nagios Core machine:
Code: Select all
/usr/local/nagios/bin/nagiostats
free -m
df -h
cat /proc/cpuinfo | grep processor


They will give us some insights into how this system is configured.
Former Nagios employee
http://www.mcapra.com/
User avatar
mcapra
 
Posts: 3290
Joined: Thu May 05, 2016 3:54 pm

Re: Long time for update option

Postby matisse » Mon May 07, 2018 9:52 am

Here you are please:
Code: Select all
Nagios Stats 4.3.1
Copyright (c) 2003-2008 Ethan Galstad (www.nagios.org)
Last Modified: 02-23-2017
License: GPL

CURRENT STATUS DATA
------------------------------------------------------
Status File:                            /usr/local/nagios/var/status.dat
Status File Age:                        0d 0h 0m 33s
Status File Version:                    4.3.1

Program Running Time:                   0d 7h 32m 34s
Nagios PID:                             9316

Total Services:                         246
Services Checked:                       243
Services Scheduled:                     195
Services Actively Checked:              246
Services Passively Checked:             0
Total Service State Change:             0.000 / 0.000 / 0.000 %
Active Service Latency:                 0.000 / 0.040 / 0.000 sec
Active Service Execution Time:          0.000 / 63.196 / 0.835 sec
Active Service State Change:            0.000 / 0.000 / 0.000 %
Active Services Last 1/5/15/60 min:     97 / 177 / 193 / 193
Passive Service Latency:                0.000 / 0.000 / 0.000 sec
Passive Service State Change:           0.000 / 0.000 / 0.000 %
Passive Services Last 1/5/15/60 min:    0 / 0 / 0 / 0
Services Ok/Warn/Unk/Crit:              234 / 0 / 0 / 12
Services Flapping:                      0
Services In Downtime:                   0

Total Hosts:                            12
Hosts Checked:                          12
Hosts Scheduled:                        12
Hosts Actively Checked:                 12
Host Passively Checked:                 0
Total Host State Change:                0.000 / 0.000 / 0.000 %
Active Host Latency:                    0.000 / 0.001 / 0.000 sec
Active Host Execution Time:             4.001 / 4.478 / 4.046 sec
Active Host State Change:               0.000 / 0.000 / 0.000 %
Active Hosts Last 1/5/15/60 min:        0 / 12 / 12 / 12
Passive Host Latency:                   0.000 / 0.000 / 0.000 sec
Passive Host State Change:              0.000 / 0.000 / 0.000 %
Passive Hosts Last 1/5/15/60 min:       0 / 0 / 0 / 0
Hosts Up/Down/Unreach:                  12 / 0 / 0
Hosts Flapping:                         0
Hosts In Downtime:                      0

Active Host Checks Last 1/5/15 min:     0 / 23 / 90
   Scheduled:                           0 / 12 / 54
   On-demand:                           0 / 11 / 36
   Parallel:                            0 / 12 / 54
   Serial:                              0 / 0 / 0
   Cached:                              0 / 11 / 36
Passive Host Checks Last 1/5/15 min:    0 / 0 / 0
Active Service Checks Last 1/5/15 min:  97 / 281 / 798
   Scheduled:                           97 / 281 / 798
   On-demand:                           0 / 0 / 0
   Cached:                              0 / 0 / 0
Passive Service Checks Last 1/5/15 min: 0 / 0 / 0

External Commands Last 1/5/15 min:      0 / 1 / 1


Code: Select all
free -m
              total        used        free      shared  buff/cache   available
Mem:          15576       11931         193         186        3451        3045
Swap:          8183        5355        2828


Code: Select all
df -h
Filesystem                           Size  Used Avail Use% Mounted on
/dev/md2                            1008G  352G  605G  37% /
devtmpfs                             7.6G     0  7.6G   0% /dev
tmpfs                                7.7G  4.0K  7.7G   1% /dev/shm
tmpfs                                7.7G  785M  6.9G  11% /run
tmpfs                                7.7G     0  7.7G   0% /sys/fs/cgroup
/dev/md1                             488M  121M  342M  27% /boot
/dev/md3                             1.7T  1.6T   71G  96% /home
tmpfs                                1.6G     0  1.6G   0% /run/user/1000
tmpfs                                1.6G     0  1.6G   0% /run/user/1003


Code: Select all
cat /proc/cpuinfo | grep processor
processor       : 0
processor       : 1
processor       : 2
processor       : 3
processor       : 4
processor       : 5
processor       : 6
processor       : 7
matisse
 
Posts: 29
Joined: Wed Aug 31, 2016 4:33 pm

Re: Long time for update option

Postby mcapra » Mon May 07, 2018 4:03 pm

This machine is pretty well provisioned. How long is it taking to update a given setting once you change it via the GUI?
Former Nagios employee
http://www.mcapra.com/
User avatar
mcapra
 
Posts: 3290
Joined: Thu May 05, 2016 3:54 pm

Re: Long time for update option

Postby matisse » Mon May 07, 2018 4:43 pm

It is can take 20 seconds.
matisse
 
Posts: 29
Joined: Wed Aug 31, 2016 4:33 pm

Re: Long time for update option

Postby cdienger » Tue May 08, 2018 3:26 pm

The refresh_rate(default 90) can be set in /usr/local/nagios/etc/cgi.cfg. Restart the nagios service after any changes:

service nagios restart
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
cdienger
Support Tech
 
Posts: 1419
Joined: Tue Feb 07, 2017 11:26 am

Re: Long time for update option

Postby matisse » Thu May 10, 2018 3:50 am

If i set 5 sec it will be normal?
matisse
 
Posts: 29
Joined: Wed Aug 31, 2016 4:33 pm

Re: Long time for update option

Postby cdienger » Fri May 11, 2018 9:42 am

You can lower it as you see fit but keep in mind that this may increase load on the machine which may be impactful depending the system. I would suggest keeping it at the default honestly or lowering it a bit at time until you find a happy medium.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
cdienger
Support Tech
 
Posts: 1419
Joined: Tue Feb 07, 2017 11:26 am

Re: Long time for update option

Postby matisse » Sat Jun 09, 2018 3:08 am

Hi,
Sorry it did not help me, may be it has one more way to fix it?
Thanks!
matisse
 
Posts: 29
Joined: Wed Aug 31, 2016 4:33 pm

Re: Long time for update option

Postby cdienger » Mon Jun 11, 2018 10:37 am

Can you clarify what you mean when you say it hasn't helped? How far did you lower the value? Did you restart the service after making the change? Does it still take 20 seconds to update?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
cdienger
Support Tech
 
Posts: 1419
Joined: Tue Feb 07, 2017 11:26 am

Next

Return to Nagios Core

Who is online

Users browsing this forum: No registered users and 17 guests