centreon / centreon-plugins

Collection of standard plugins to discover and gather cloud-to-edge metrics and status across your whole IT infrastructure.
https://www.centreon.com
Apache License 2.0
310 stars 274 forks source link

[os::windows::wsman::plugin] --mode=eventlog - Wrong time format #4399

Open nunomla opened 1 year ago

nunomla commented 1 year ago

Hello, I´m using de wsman plugin and everytime i try to check eventlog greated then 4h I receveidthe error Wrong time format

/usr/lib/centreon/plugins//centreon_windows_wsman.pl --plugin=os::windows::wsman::plugin --mode=eventlog --hostname=xx.xx.xx.xx --wsman-scheme=http --wsman-port=5985 --wsman-username='xxxxx' --wsman-password='xxxxxxx' --timeframe='5' --filter-type='error' --filter-logfile='application' UNKNOWN: Wrong time format

Other issue that I have is I can't add two filter types, for exemple error and warning, and I can't discover how to use warning-count

garnier-quentin commented 1 year ago

Could you provide the output with --debug when you have that error ?

nunomla commented 1 year ago

I get the same error - UNKNOWN: Wrong time format

garnier-quentin commented 1 year ago

If you still have the issue, could you test with that archive ? https://github.com/centreon/centreon-plugins/archive/refs/heads/windows-wsman-eventlog-format.zip

lucie-dubrunfaut commented 1 month ago

Hello :)

Without additional information we are not able to provide a solution or resolve a possible bug. So @nunomla if you still need a response / solution to this issue, can you tell us if you had tested the Quentin proposition above?