Interval in NSCA doesn't work correctly


#1

Hi,

I am facing an issue when try to set interval for NSCA client on Windows server 2012 R2. Here is my config:

; NSCA Scheduler = 1 NSCAClient = 1

[/settings/scheduler/schedules] cpu = test

[/settings/scheduler/schedules/default] interval = 30s channel = NSCA

[/settings/NSCA/client] hostname = auto

[/settings/NSCA/client/targets/default] address = 192.168.50.100 encryption = 0

And here is the output:

2017-07-24 12:58:35: debug:c:\source\master\modules\Scheduler\Scheduler.cpp:95: Adding scheduled item: cpu[0] = {tpl: {alias: cpu, path: /settings/scheduler/schedules/cpu, is_tpl: false, parent: default, value: test, options : { } }, command: test, channel: NSCA, source_id: , target_id: , duration: 30s} 2017-07-24 12:58:35: debug:c:\source\master\service\NSClient++.cpp:503: NSClient++ - 0.5.0.62 2016-09-14 Started! 2017-07-24 12:58:35: debug:c:\source\master\service\NSClient++.cpp:1385: Starting: DONE 2017-07-24 12:58:35: debug:c:\source\master\modules\CheckSystem\pdh_thread.cpp:166: Loading counter: disk_queue_length_0 C: = \WIN-DEMO\PhysicalDisk(0 C:)% Disk Time 2017-07-24 12:58:35: debug:c:\source\master\modules\CheckSystem\pdh_thread.cpp:166: Loading counter: disk_queue_length_1 E: = \WIN-DEMO\PhysicalDisk(1 E:)% Disk Time 2017-07-24 12:58:35: debug:c:\source\master\modules\CheckSystem\pdh_thread.cpp:166: Loading counter: disk_queue_length__Total = \WIN-DEMO\PhysicalDisk(_Total)% Disk Time 2017-07-24 12:58:46: debug:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:607: Command line: c:\echo.bat 2017-07-24 12:58:57: debug:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:607: Command line: c:\echo.bat 2017-07-24 12:59:15: debug:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:607: Command line: c:\echo.bat 2017-07-24 12:59:19: debug:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:607: Command line: c:\echo.bat 2017-07-24 12:59:29: debug:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:607: Command line: c:\echo.bat 2017-07-24 12:59:58: debug:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:607: Command line: c:\echo.bat 2017-07-24 13:00:02: debug:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:607: Command line: c:\echo.bat 2017-07-24 13:00:21: debug:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:607: Command line: c:\echo.bat 2017-07-24 13:00:39: debug:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:607: Command line: c:\echo.bat 2017-07-24 13:01:01: debug:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:607: Command line: c:\echo.bat 2017-07-24 13:01:15: debug:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:607: Command line: c:\echo.bat 2017-07-24 13:01:20: debug:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:607: Command line: c:\echo.bat

As you can see the interval is 30s, but as the log show the time it submits result to nagios server is very close. Just about 5s or 10s.

i don’t understand why it was not 30s as configured. Can you please advise?

Thanks in advance.


#2

Fixed in the next build of 0.5.1 (out later today)