Hi there, I too had an issue with these checks. The solution I found was to change the /format: csv command to: /format:"%WINDIR%\System32\wbem\en-us\csv"
@echo off rem This plugin obsoletes wmicchecks.bat. It is better because it is rem directly supported by the normal ps check. echo ^<^<^<ps:sep^(44^)^>^>^> echo [wmic process] wmic process get ProcessId,name,pagefileusage,virtualsize,workingsetsize,usermodetime,kernelmodetime,ThreadCount,HandleCount /format:"%WINDIR%\System32\wbem\en-us\csv" echo [wmic process end] Hope this does the trick for you! Darren Furlotte IAM Support Lead | Open Windows [Description: Description: Description: Description: OWA email final]<http://www.openwindows.com.au/> P +61 3 9819 5088 | D +61 3 9994 5479 | M +61 408 550 079 635 Glenferrie Road, Hawthorn, VIC 3122 From: [email protected] [mailto:[email protected]] On Behalf Of Zdenek Jamecný Sent: Wednesday, 25 February 2015 8:47 PM To: 'Patrick Flaherty' Cc: [email protected] Subject: Re: [omd-users] Check_mk - monitoring windows processes with performance Thx, I tried setup these rules: monitoring configuration > enable processing of perfdata for services and manual checks> app, processes & services > memory and CPU of processes on Windows > checktype: wmic_process; name_of_process: ‚some_my_process‘ ... some memmory limits But output is still: UNKNOWN - No output from agent in section wmic_process ☹ Regards Zdenek From: Patrick Flaherty [mailto:[email protected]] Sent: Tuesday, February 24, 2015 12:20 AM To: Zdeněk Jamečný Cc: [email protected]<mailto:[email protected]> Subject: Re: [omd-users] Check_mk - monitoring windows processes with performance On Mon, Feb 23, 2015 at 9:21 AM, Zdeněk Jamečný <[email protected]<mailto:[email protected]>> wrote: Hi all, please does anyone know, how can I use Check_mk wmic_process check? I tried copy psperf.bat to check_mk agent's plugins folder, but it doesn't work for me. I'm not sure if the problem isn't in agent output format, because it has headers and blank line? Regards Zdenek output sample: [wmic process] Node,HandleCount,KernelModeTime,Name,PageFileUsage,ProcessId,ThreadCount,UserModeTime,VirtualSize,WorkingSetSize SERV01,0,44237911034535,System Idle Process,0,0,12,0,0,24576 SERV01,1260,72016145639,System,12632,4,175,0,615501824,11288576 ...etc My output hast the same extra line, so it's not that. After you put the psperf.bat file in place and restarted the agent, did you add rules in check_mk to find the services you were interested in? Search for Process Inventory in wato.
_______________________________________________ omd-users mailing list [email protected] http://lists.mathias-kettner.de/mailman/listinfo/omd-users
