mickem / nscp

NSClient++
http://nsclient.org
GNU General Public License v2.0
239 stars 94 forks source link

0.5.2.35 unable to load modules when start #672

Open leffu33 opened 4 years ago

leffu33 commented 4 years ago

Issue and Steps to Reproduce

After uninstalling nsclient++ 0.3.X (this is customer issiue I try help them) we try installing nsclient++ 0.5.35(also we try 0.5.39 same results), everything looks normal we replace default op5.ini with custom op5.ini(which works at other similarly installation, I will past it below). We have "all" modules enable but when nsclient start, it's only load 3 module:
CheckTaskSched
NRPEServer
NSClientServer

and we can't use commands like check_drivesize which is imo basic command.

Expected Behavior

I want to nsclient load all enabled module

Actual Behavior

Load only 3 modules

Details

Additional Details

NSClient++ log:

2020-03-23 16:23:42: debug:c:\source\master\service\NSClient++.cpp:323: Attempting to stop all plugins
2020-03-23 16:23:42: debug:c:\source\master\service\NSClient++.cpp:325: Stopping all plugins
2020-03-23 16:23:42: debug:c:\source\master\service\plugin_manager.cpp:259: Unloading plugin: CheckTaskSched...
2020-03-23 16:23:42: debug:c:\source\master\service\plugin_manager.cpp:259: Unloading plugin: NRPEServer...
2020-03-23 16:23:42: debug:c:\source\master\service\plugin_manager.cpp:259: Unloading plugin: NSClientServer...
2020-03-23 16:23:42: debug:c:\source\master\service\NSClient++.cpp:333: Stopping: COM helper
2020-03-23 16:23:42: debug:c:\source\master\service\NSClient++.cpp:342: Stopping: Settings instance
2020-03-23 16:23:43: debug:c:\source\master\service\NSClient++.cpp:219: On crash: restart: nscp
2020-03-23 16:23:43: debug:c:\source\master\service\NSClient++.cpp:231: Archiving crash dumps in: C:\Program Files\NSClient++/crash-dumps
2020-03-23 16:23:43: debug:c:\source\master\service\plugin_manager.cpp:150: Found: CheckTaskSched
2020-03-23 16:23:43: debug:c:\source\master\service\plugin_manager.cpp:150: Found: NRPEServer
2020-03-23 16:23:43: debug:c:\source\master\service\plugin_manager.cpp:150: Found: NSClientServer
2020-03-23 16:23:43: debug:c:\source\master\service\plugin_manager.cpp:306: Loading module C:\Program Files\NSClient++\modules\CheckTaskSched.dll ()
2020-03-23 16:23:43: debug:c:\source\master\service\plugin_manager.cpp:306: Loading module C:\Program Files\NSClient++\modules\NRPEServer.dll ()
2020-03-23 16:23:43: debug:c:\source\master\service\plugin_manager.cpp:306: Loading module C:\Program Files\NSClient++\modules\NSClientServer.dll ()
2020-03-23 16:23:43: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: CheckTaskSched
2020-03-23 16:23:43: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: NRPEServer
2020-03-23 16:23:43: debug:c:\source\master\modules\NRPEServer\NRPEServer.cpp:126: Allowed hosts definition: ALLOWED_OP5_POLLERS
2020-03-23 16:23:43: debug:c:\source\master\modules\NRPEServer\NRPEServer.cpp:127: Server config: address: :5666, ssl enabled: none, no certificate, dh: C:\Program Files\NSClient++/security/nrpe_dh_512.pem, ciphers: ADH, ca: C:\Program Files\NSClient++/security/ca.pem, options: none
2020-03-23 16:23:43: debug:c:\source\master\include\socket/server.hpp:111: Binding to: [::]:5666(ipv6)
2020-03-23 16:23:43: debug:c:\source\master\include\socket/server.hpp:214: Attempting to bind to: [::]:5666(ipv6)
2020-03-23 16:23:43: debug:c:\source\master\include\socket/server.hpp:107: Binding to: 0.0.0.0:5666(ipv4), reopen: true, reuse: true
2020-03-23 16:23:43: debug:c:\source\master\include\socket/server.hpp:214: Attempting to bind to: 0.0.0.0:5666(ipv4)
2020-03-23 16:23:43: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: NSClientServer
2020-03-23 16:23:43: debug:c:\source\master\modules\NSClientServer\NSClientServer.cpp:86: Allowed hosts definition: ALLOWED_OP5_SERVERS
2020-03-23 16:23:43: debug:c:\source\master\include\socket/server.hpp:111: Binding to: [::]:1248(ipv6)
2020-03-23 16:23:43: debug:c:\source\master\include\socket/server.hpp:214: Attempting to bind to: [::]:1248(ipv6)
2020-03-23 16:23:43: debug:c:\source\master\include\socket/server.hpp:107: Binding to: 0.0.0.0:1248(ipv4), reopen: true, reuse: true
2020-03-23 16:23:43: debug:c:\source\master\include\socket/server.hpp:214: Attempting to bind to: 0.0.0.0:1248(ipv4)
2020-03-23 16:23:43: debug:c:\source\master\service\NSClient++.cpp:317: NSClient++ - 0.5.2.39 2018-02-04 Started!
2020-03-23 16:23:43: debug:c:\source\master\service\NSClient++.cpp:441: Starting: DONE
2020-03-23 16:25:09: debug:c:\source\master\include\check_nt/server/protocol.hpp:77: Accepting connection from: POLLER_OP5
2020-03-23 16:25:09: debug:c:\source\master\modules\NSClientServer\NSClientServer.cpp:302: Real command: check_drivesize drive=C warn=free<0 crit=free<0 filter=type='fixed' and mounted = 1 perf-config=used(unit:B)free(unit:B)
2020-03-23 16:25:09: error:c:\source\master\service\plugin_manager.cpp:475: Unknown command(s): check_drivesize available commands: commands {, check_tasksched, checktasksched}, plugins {, 0}

op5.ini we use:

op5.txt