Open antonin2063 opened 1 year ago
Could you provide the output with --debug-stream ?
Got exactly the same output
/usr/lib/centreon/centreon-plugins/src/centreon_plugins.pl --plugin=os::windows::wsman::plugin --mode=updates --hostname=xx --wsman-scheme=xxx --wsman-port=xx --wsman-username='xx' --wsman-password='xx' --debug-stream
UNKNOWN: Cannot decode json response: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "PowerShell[.exe] [-P...") at /usr/lib/centreon/centreon-plugins/src/os/windows/wsman/mode/updates.pm line 96.
Could you add a debug in file update.pm to display the json response ?
This is the JSON response, seems like a powershell issue..
UNKNOWN: Cannot decode json response: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "PowerShell[.exe] [-P...") at /usr/lib/centreon/centreon-plugins/src/os/windows/wsman/mode/updates.pm line 100. JSON Response:
PowerShell[.exe] [-PSConsoleFile
Hello guys, Got an issue with the wsman plugin. Got an issue using the updates mode.
/usr/lib/centreon/centreon-plugins/src/centreon_plugins.pl --plugin=os::windows::wsman::plugin --mode=updates --hostname=xxx --wsman-scheme=xxx --wsman-port=xxxx --wsman-username='xxx' --wsman-password='xxx'
Got this return error : UNKNOWN: Cannot decode json response: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "PowerShell[.exe] [-P...") at /usr/lib/centreon/centreon-plugins/src/os/windows/wsman/mode/updates.pm line 96.
Has someone got an idea ? Thanks,