Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Active Host Checks Last 1/5/15 min always 0/0/0 #321

Open
uleodolter opened this issue Jan 1, 2020 · 1 comment
Open

Active Host Checks Last 1/5/15 min always 0/0/0 #321

uleodolter opened this issue Jan 1, 2020 · 1 comment

Comments

@uleodolter
Copy link

It seems that programstats stats are not calculated correctly. See naemonstats output below, as you can see we have couple of services and hosts, everything is working fine, but why are stats data at the end always zero ?

Its not a naemonstats problem, because the programstatus data in status.dat are zero most of the times, sometimes the last value 5min or 15min grows to 1, it seems the values are not accumulated.

programstatus {
        modified_host_attributes=1
        modified_service_attributes=1
        nagios_pid=2510
        daemon_mode=1
        program_start=1577874355
        last_log_rotation=0
        enable_notifications=1
        active_service_checks_enabled=1
        passive_service_checks_enabled=1
        active_host_checks_enabled=1
        passive_host_checks_enabled=1
        enable_event_handlers=1
        obsess_over_services=0
        obsess_over_hosts=0
        check_service_freshness=1
        check_host_freshness=0
        enable_flap_detection=1
        process_performance_data=1
        global_host_event_handler=
        global_service_event_handler=
        next_comment_id=2410
        next_downtime_id=128
        next_event_id=67670
        next_problem_id=28425
        next_notification_id=23109
        active_scheduled_host_check_stats=0,0,0
        active_ondemand_host_check_stats=0,0,0
        passive_host_check_stats=0,0,0
        active_scheduled_service_check_stats=0,0,0
        active_ondemand_service_check_stats=0,0,0
        passive_service_check_stats=0,0,0
        cached_host_check_stats=0,0,0
        cached_service_check_stats=0,0,0
        external_command_stats=0,0,0
        parallel_host_check_stats=0,0,0
        serial_host_check_stats=0,0,0
        }
Naemon Stats 1.1.0
Copyright (c) 2013-present Naemon Development Team (www.naemon.org)
Copyright (c) 2003-2008 Ethan Galstad (www.nagios.org)
License: GPL

CURRENT STATUS DATA
------------------------------------------------------
Status File:                            /omd/sites/obvsg/tmp/naemon/status.dat
Status File Age:                        0d 0h 0m 25s
Status File Version:                    1.1.0

Program Running Time:                   0d 7h 49m 29s
Naemon PID:                             2510

Total Services:                         1543
Services Checked:                       1543
Services Scheduled:                     1543
Services Actively Checked:              1493
Services Passively Checked:             50
Total Service State Change:             0.000 / 25.460 / 0.133 %
Active Service Latency:                 0.005 / 1.000 / 0.551 sec
Active Service Execution Time:          0.007 / 28.599 / 0.985 sec
Active Service State Change:            0.000 / 17.830 / 0.053 %
Active Services Last 1/5/15/60 min:     104 / 1148 / 1416 / 1493
Passive Service Latency:                0.385 / 0.819 / 0.451 sec
Passive Service State Change:           0.000 / 25.460 / 2.495 %
Passive Services Last 1/5/15/60 min:    0 / 0 / 0 / 0
Services Ok/Warn/Unk/Crit:              1509 / 17 / 10 / 7
Services Flapping:                      0
Services In Downtime:                   0

Total Hosts:                            244
Hosts Checked:                          244
Hosts Scheduled:                        244
Hosts Actively Checked:                 244
Host Passively Checked:                 0
Total Host State Change:                0.000 / 10.130 / 0.082 %
Active Host Latency:                    0.001 / 4.436 / 0.261 sec
Active Host Execution Time:             0.002 / 10.075 / 1.397 sec
Active Host State Change:               0.000 / 10.130 / 0.082 %
Active Hosts Last 1/5/15/60 min:        25 / 232 / 243 / 243
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:                  242 / 2 / 0
Hosts Flapping:                         0
Hosts In Downtime:                      0

Active Host Checks Last 1/5/15 min:     0 / 0 / 0
   Scheduled:                           0 / 0 / 0
   On-demand:                           0 / 0 / 0
   Parallel:                            0 / 0 / 0
   Serial:                              0 / 0 / 0
   Cached:                              0 / 0 / 0
Passive Host Checks Last 1/5/15 min:    0 / 0 / 0
Active Service Checks Last 1/5/15 min:  0 / 0 / 0
   Scheduled:                           0 / 0 / 0
   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 / 0 / 0
@sni
Copy link
Contributor

sni commented Feb 17, 2020

i assume this are mostly leftover counters and not used anymore. I will have a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants