Code: Select all
/usr/bin/php -q /var/www/html/cacti/scripts/wmi.php -h 'SERVERNAME' -u '/etc/cacti/cactiwmi.pw' -w 'Win32_PerfRawData_W3SVC_WebService' -n '' -k 'Name' -v '_Total' -c 'CopyRequestsPersec,DeleteRequestsPersec,GetRequestsPersec,HeadRequestsPersec,LockRequestsPersec,MkcolRequestsPersec,MoveRequestsPersec,OptionsRequestsPersec,OtherRequestMethodsPersec,PostRequestsPersec,PropfindRequestsPersec,ProppatchRequestsPersec,PutRequestsPersec,SearchRequestsPersec,TraceRequestsPersec,UnlockRequestsPerse'
NTSTATUS: NT code 0x80041017 - NT code 0x80041017
Return code non-zero, debug mode enabled!
/usr/local/bin/wmic --namespace='root\CIMV2' --authentication-file=/etc/cacti/cactiwmi.pw //SERVERNAME "SELECT CopyRequestsPersec,DeleteRequestsPersec,GetRequestsPersec,HeadRequestsPersec,LockRequestsPersec,MkcolRequestsPersec,MoveRequestsPersec,OptionsRequestsPersec,OtherRequestMethodsPersec,PostRequestsPersec,PropfindRequestsPersec,ProppatchRequestsPersec,PutRequestsPersec,SearchRequestsPersec,TraceRequestsPersec,UnlockRequestsPerse FROM Win32_PerfRawData_W3SVC_WebService WHERE Name='_Total'"
Exec Status: 1
PHP Notice: Undefined offset: 1 in /var/www/html/cacti/scripts/wmi.php on line 120
If I run the command from the poller cache it works fine:
Code: Select all
/usr/bin/php -q /var/www/html/cacti/scripts/wmi.php -h 'SERVERNAME' -u '/etc/cacti/cactiwmi.pw' -w 'Win32_PerfRawData_W3SVC_WebService' -n '' -k 'Name' -v '_Total' -c 'CopyRequestsPersec,DeleteRequestsPersec,GetRequestsPersec,HeadRequestsPersec,LockRequestsPersec,MkcolRequestsPersec,MoveRequestsPersec,OptionsRequestsPersec,OtherRequestMethodsPersec,PostRequestsPersec,PropfindRequestsPersec,ProppatchRequestsPersec,PutRequestsPersec,SearchRequestsPersec,TraceRequestsPersec,UnlockRequestsPersec'
CopyRequestsPersec:0 DeleteRequestsPersec:0 GetRequestsPersec:4282 HeadRequestsPersec:192 LockRequestsPersec:0 MkcolRequestsPersec:0 MoveRequestsPersec:0 Name:_Total OptionsRequestsPersec:0 OtherRequestMethodsPersec:0 PostRequestsPersec:1213 PropfindRequestsPersec:0 ProppatchRequestsPersec:0 PutRequestsPersec:0 SearchRequestsPersec:0 TraceRequestsPersec:0 UnlockRequestsPersec:0