Switch to http-ini breaks scheduler


(Oliver Tatzmann) #1

Hi,

the plan is to use NSCA to run checks with “interval” (e.g. CPU) or “schedule” (e.g. check windows updates). Since there is no central deployment/config management solution NSClient should check for new configurations from time to time.
So I tried to switch to HTTP config:
nscp settings --switch http://my.cloud.com/nscp/nsclient.ini

This basically works if i restart nscp. If the running nscp pulls the new config itself, somethink seems to break

[...]
2018-12-14 10:30:00: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: CommandClient
2018-12-14 10:30:00: debug:c:\source\master\service\plugin_manager.cpp:150: Found: CheckDisk
2018-12-14 10:30:00: debug:c:\source\master\service\plugin_manager.cpp:150: Found: CheckExternalScripts
2018-12-14 10:30:00: debug:c:\source\master\service\plugin_manager.cpp:150: Found: CheckHelpers
2018-12-14 10:30:00: debug:c:\source\master\service\plugin_manager.cpp:150: Found: CheckSystem
2018-12-14 10:30:00: debug:c:\source\master\service\plugin_manager.cpp:150: Found: CheckWMI
2018-12-14 10:30:00: debug:c:\source\master\service\plugin_manager.cpp:150: Found: NRPEServer
2018-12-14 10:30:00: debug:c:\source\master\service\plugin_manager.cpp:150: Found: NSCAClient
2018-12-14 10:30:00: debug:c:\source\master\service\plugin_manager.cpp:150: Found: Scheduler
2018-12-14 10:30:00: debug:c:\source\master\service\plugin_manager.cpp:306: Loading module c:\Program Files\nsclient++\modules\CheckDisk.dll ()
2018-12-14 10:30:00: debug:c:\source\master\service\master_plugin_list.cpp:159: Found duplicate plugin returning old 0
2018-12-14 10:30:00: debug:c:\source\master\service\plugin_manager.cpp:306: Loading module c:\Program Files\nsclient++\modules\CheckExternalScripts.dll ()
2018-12-14 10:30:00: debug:c:\source\master\service\master_plugin_list.cpp:159: Found duplicate plugin returning old 1
2018-12-14 10:30:00: debug:c:\source\master\service\plugin_manager.cpp:306: Loading module c:\Program Files\nsclient++\modules\CheckHelpers.dll ()
2018-12-14 10:30:00: debug:c:\source\master\service\master_plugin_list.cpp:159: Found duplicate plugin returning old 2
2018-12-14 10:30:00: debug:c:\source\master\service\plugin_manager.cpp:306: Loading module c:\Program Files\nsclient++\modules\CheckSystem.dll ()
2018-12-14 10:30:00: debug:c:\source\master\service\master_plugin_list.cpp:159: Found duplicate plugin returning old 3
2018-12-14 10:30:00: debug:c:\source\master\service\plugin_manager.cpp:306: Loading module c:\Program Files\nsclient++\modules\CheckWMI.dll ()
2018-12-14 10:30:00: debug:c:\source\master\service\master_plugin_list.cpp:159: Found duplicate plugin returning old 4
2018-12-14 10:30:00: debug:c:\source\master\service\plugin_manager.cpp:306: Loading module c:\Program Files\nsclient++\modules\NRPEServer.dll ()
2018-12-14 10:30:00: debug:c:\source\master\service\master_plugin_list.cpp:159: Found duplicate plugin returning old 5
2018-12-14 10:30:00: debug:c:\source\master\service\plugin_manager.cpp:306: Loading module c:\Program Files\nsclient++\modules\NSCAClient.dll ()
2018-12-14 10:30:00: debug:c:\source\master\service\master_plugin_list.cpp:159: Found duplicate plugin returning old 6
2018-12-14 10:30:00: debug:c:\source\master\service\plugin_manager.cpp:306: Loading module c:\Program Files\nsclient++\modules\Scheduler.dll ()
2018-12-14 10:30:00: debug:c:\source\master\service\master_plugin_list.cpp:159: Found duplicate plugin returning old 7
2018-12-14 10:30:00: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: CheckDisk
2018-12-14 10:30:00: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: CheckExternalScripts
2018-12-14 10:30:00: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: CheckHelpers
2018-12-14 10:30:00: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: CheckSystem
2018-12-14 10:30:00: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: CheckWMI
2018-12-14 10:30:00: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: NRPEServer
2018-12-14 10:30:00: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: NSCAClient
2018-12-14 10:30:00: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: Scheduler
2018-12-14 10:30:00: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: CommandClient
2018-12-14 10:30:39: error:c:\source\master\include\scheduler\simple_scheduler.cpp:151: Scheduler is overloading: 2 is 10 seconds slow
2018-12-14 10:30:44: error:c:\source\master\include\scheduler\simple_scheduler.cpp:151: Scheduler is overloading: 2 is 15 seconds slow
2018-12-14 10:30:49: error:c:\source\master\include\scheduler\simple_scheduler.cpp:151: Scheduler is overloading: 2 is 20 seconds slow
2018-12-14 10:30:54: error:c:\source\master\include\scheduler\simple_scheduler.cpp:151: Scheduler is overloading: 2 is 25 seconds slow
2018-12-14 10:30:59: error:c:\source\master\include\scheduler\simple_scheduler.cpp:151: Scheduler is overloading: 2 is 30 seconds slow
2018-12-14 10:31:04: error:c:\source\master\include\scheduler\simple_scheduler.cpp:151: Scheduler is overloading: 2 is 35 seconds slow
2018-12-14 10:31:09: error:c:\source\master\include\scheduler\simple_scheduler.cpp:151: Scheduler is overloading: 2 is 40 seconds slow
2018-12-14 10:31:14: error:c:\source\master\include\scheduler\simple_scheduler.cpp:151: Scheduler is overloading: 2 is 45 seconds slow
2018-12-14 10:31:19: error:c:\source\master\include\scheduler\simple_scheduler.cpp:151: Scheduler is overloading: 2 is 50 seconds slow
2018-12-14 10:31:24: error:c:\source\master\include\scheduler\simple_scheduler.cpp:151: Scheduler is overloading: 2 is 55 seconds slow
2018-12-14 10:31:29: error:c:\source\master\include\scheduler\simple_scheduler.cpp:151: Scheduler is overloading: 2 is 60 seconds slow
2018-12-14 10:31:34: error:c:\source\master\include\scheduler\simple_scheduler.cpp:151: Scheduler is overloading: 2 is 65 seconds slow
2018-12-14 10:31:39: error:c:\source\master\include\scheduler\simple_scheduler.cpp:151: Scheduler is overloading: 2 is 70 seconds slow
2018-12-14 10:31:44: error:c:\source\master\include\scheduler\simple_scheduler.cpp:151: Scheduler is overloading: 2 is 75 seconds slow
2018-12-14 10:31:49: error:c:\source\master\include\scheduler\simple_scheduler.cpp:151: Scheduler is overloading: 2 is 80 seconds slow
2018-12-14 10:31:54: error:c:\source\master\include\scheduler\simple_scheduler.cpp:151: Scheduler is overloading: 2 is 85 seconds slow
2018-12-14 10:31:59: error:c:\source\master\include\scheduler\simple_scheduler.cpp:151: Scheduler is overloading: 2 is 90 seconds slow
2018-12-14 10:32:04: error:c:\source\master\include\scheduler\simple_scheduler.cpp:151: Scheduler is overloading: 2 is 95 seconds slow
2018-12-14 10:32:09: error:c:\source\master\include\scheduler\simple_scheduler.cpp:151: Scheduler is overloading: 2 is 100 seconds slow
2018-12-14 10:32:14: error:c:\source\master\include\scheduler\simple_scheduler.cpp:151: Scheduler is overloading: 2 is 105 seconds slow
2018-12-14 10:32:19: error:c:\source\master\include\scheduler\simple_scheduler.cpp:151: Scheduler is overloading: 2 is 110 seconds slow
2018-12-14 10:32:24: error:c:\source\master\include\scheduler\simple_scheduler.cpp:151: Scheduler is overloading: 2 is 115 seconds slow
2018-12-14 10:32:29: error:c:\source\master\include\scheduler\simple_scheduler.cpp:151: Scheduler is overloading: 2 is 120 seconds slow
2018-12-14 10:32:34: error:c:\source\master\include\scheduler\simple_scheduler.cpp:151: Scheduler is overloading: 2 is 125 seconds slow
2018-12-14 10:32:39: error:c:\source\master\include\scheduler\simple_scheduler.cpp:151: Scheduler is overloading: 2 is 130 seconds slow
2018-12-14 10:32:44: error:c:\source\master\include\scheduler\simple_scheduler.cpp:151: Scheduler is overloading: 2 is 135 seconds slow
2018-12-14 10:32:49: error:c:\source\master\include\scheduler\simple_scheduler.cpp:151: Scheduler is overloading: 2 is 140 seconds slow
2018-12-14 10:32:54: error:c:\source\master\include\scheduler\simple_scheduler.cpp:151: Scheduler is overloading: 2 is 145 seconds slow
2018-12-14 10:32:59: error:c:\source\master\include\scheduler\simple_scheduler.cpp:151: Scheduler is overloading: 2 is 150 seconds slow
2018-12-14 10:33:04: error:c:\source\master\include\scheduler\simple_scheduler.cpp:151: Scheduler is overloading: 2 is 155 seconds slow
2018-12-14 10:33:09: error:c:\source\master\include\scheduler\simple_scheduler.cpp:151: Scheduler is overloading: 2 is 160 seconds slow
2018-12-14 10:33:14: error:c:\source\master\include\scheduler\simple_scheduler.cpp:151: Scheduler is overloading: 2 is 165 seconds slow
2018-12-14 10:33:19: error:c:\source\master\include\scheduler\simple_scheduler.cpp:151: Scheduler is overloading: 2 is 170 seconds slow
2018-12-14 10:33:24: error:c:\source\master\include\scheduler\simple_scheduler.cpp:151: Scheduler is overloading: 2 is 175 seconds slow

[…]

no schedules are logged any more, but data is sent to the NSCA server

after a
nscp service --stop
nscp service --start
everything is fine until the next ini-pull.

NSClient++, Version: 0.5.2.35 2018-01-28, Platform: x64

any ideas?

Thx
Oliver