Hello @ponchoh ,
Yes, and I also try to launch the plugin on the WSUS Server to verfiy if everything was OK. The result of the command :
C:\Users\Administrator>"C:\Program Files\Centreon NSClient++\scripts\centreon\centreon_plugins.exe" --plugin "apps::wsus::local::plugin" --mode=updates-status --wsus-server="127.0.0.1" --wsus-port="8531" --filter-counters="" --warning-with-client-errors="" --critical-with-client-errors="" --warning-with-server-errors="" --critical-with-server-errors="" --warning-needing-files="" --critical-needing-files="" --warning-needed-by-computers="" --critical-needed-by-computers="" --warning-up-to-date="" --critical-up-to-date="" --verbose
UNKNOWN: Cannot load module --plugin.
Can't locate apps/wsus/local/plugin.pm in @INC (you may need to install the apps::wsus::local::plugin module) (@INC contains: C:/Program Files/Centreon NSClient++/scripts/centreon C:\Users\ADMINI~1\AppData\Local\Temp\3\par-41646d696e6973747261746f72\cache-813547c9571a985ce3260afc238c989466eb7ec1\inc\lib C:\Users\ADMINI~1\AppData\Local\Temp\3\par-41646d696e6973747261746f72\cache-813547c9571a985ce3260afc238c989466eb7ec1\inc CODE(0x37288e8) CODE(0x3728ae0)) at C:\Users\ADMINI~1\AppData\Local\Temp\3\par-41646d696e6973747261746f72\cache-813547c9571a985ce3260afc238c989466eb7ec1\inc\lib/centreon/plugins/misc.pm line 223.
PS C:\Program Files\Centreon NSClient++\scripts\centreon> .\centreon_plugins.exe --plugin="apps::microsoft::wsus::local::plugin" --list-mode
Plugin Description:
Check WSUS through powershell.
Global Options:
--mode Choose a mode.
--dyn-mode
Specify a mode with the path (separated by '::').
--list-mode
List available modes.
--mode-version
Check minimal version of mode. If not, unknown error.
--version
Display plugin version.
--pass-manager
Use a password manager.
Modes Meta:
multi
Modes Available:
computers-status
server-statistics
synchronisation-status
updates-status
Note
"apps::microsoft::wsus::local::plugin”
Hi @ponchoh ,
Thanks a lot, I will try the command properly.
Hi @vliard! Have you managed to solve your problem? If so, don't forget to click on BEST ANSWER. Or simply tell us how you personally managed to solve this issue. This will help other people with the same problem to easily find the solution. Thank you
Hello @Fabrix ,
Thanks to the support, I was able to move forward relatively quickly and efficiently and the problem is solved, it was an SSL connection problem, the following command worked:
/usr/lib/centreon/plugins//centreon_nsclient_restapi.pl --plugin=apps::nsclient::restapi::plugin --mode=query --hostname=10.x.x.x --port='8443' --proto='https' --legacy-password='******' --http-backend=curl --curl-opt="CURLOPT_SSL_VERIFYPEER => 0" --timeout=30 --command=check_centreon_plugins --arg='apps::microsoft::wsus::local::plugin' --arg='updates-status' --arg=' --wsus-server="wsus-serveurs.mondomaine.fr" --wsus-port="8531" --use-ssl --verbose' --insecure
the EXTRAOPTIONs must specify that “--use-ssl --insecure” is to be used, along with all the parameters relating to the secure connection shown above.
Thank you,
Best regards,
Many thanks for this feedback!