Poller separator affected by service name
Hi,
I have a problem with the wmic module:
CMD[/bin/wmic --user=*** --password=*** --delimiter='##' --namespace='root\CIMV2' //'Host' "SELECT DisplayName,Name,StartMode,State FROM Win32_Service"]
I get this Situation:
CMD EXITCODE[0] CMD RUNTIME[4.8128s] STDOUT[ CLASS: Win32_Service DisplayName##Name##StartMode##State (Other services...) Interne Windows-Datenbank##MSSQL$MICROSOFT##WID##Auto##Running (Other services...) ] PHP Fatal error: Uncaught ValueError: array_combine(): Argument #1 ($keys) and argument #2 ($values) must have the same number of elements in /opt/observium/includes/wmi.inc.php:140 Stack trace: #0 /opt/observium/includes/wmi.inc.php(140): array_combine() #1 /opt/observium/includes/wmi.inc.php(15): wmi_parse() #2 /opt/observium/includes/polling/wmi.inc.php(235): wmi_get() #3 /opt/observium/includes/polling/functions.inc.php(306): include('...') #4 /opt/observium/poller.php(171): poll_device() #5 {main} thrown in /opt/observium/includes/wmi.inc.php on line 140
The Service "MSSQL$MICROSOFT##WID" includes the delimiter '##' so the array has 4 Keys but this row got 5 values due to the servicename... Is there a way to change the delimiter or ignore this service?
participants (1)
-
support@vechelde.de