[checkproc memcpuabove] part is missing in check_wmi_plus.ini
- This topic has 4 replies, 2 voices, and was last updated 9 months ago by mdicss.
- AuthorPosts
- 2022-11-19 at 3:29 AM #906mdicssParticipant
In older releases, there was a [checkproc memcpuabove] part in the check_wmi_plus.ini that comes with the release. Now this part is missing, resulting in the error messages:
‘A valid MODE and/or SUBMODE must be specified’Reinserting the old part of the configuration resolved the problem.
Please add the missing definition to the wmi_plus.ini file in new releases.
Thanks, Matthias2022-11-19 at 9:09 AM #910adminKeymasterCan you please provide the ini configuration?
2022-11-21 at 8:50 PM #912mdicssParticipantHi
I can’t find an upload possibility, so here my changes in the check_wmi_plus.ini.
The missing part is:#———————————————————-
[checkproc memcpuabove]
requires=1.48
inihelp=<<EOT
Check for processes using more than a specified CPU utilisation. To make this work as intended you need to specify some
warning/critical criteria eg -w 50 for warning when a process uses more than 50% CPU.
ARG1 The processname to look for. Use % for wildcards.
The process name typically only includes the actual file name minus its suffix eg firefox, svchost
If there are multiple instances eg svchost, then some versions of Windows have them named all the same while others
such as Windows 2008 Server, have them numbered eg svchost#1, svchost#2, svchost#3. To get all svchost processes you
need to set ARG1 to svchost%
To view all processes set ARG1 to “%” and the full process list will be included in the plugin output.Note: Use –nodatamode and/or NODATAEXIT settings to control what happens if no matching process is found.
EOTaligndata=Name,IDProcess
query=select Name,IDProcess,PercentProcessorTime,Timestamp_Sys100NS,PrivateBytes from Win32_PerfRawData_PerfProc_Process WHERE Name like “{_arg1}” and Name != “Idle” and Name != “_Total”# run 2 WMI queries, 5 seconds apart. The delay only applies if using –nokeepstate
samples=2
delay=5customfield=_AvgCPU,PERF_100NSEC_TIMER,PercentProcessorTime,%.1f,100
test=_AvgCPU
test=PrivateBytes
test=_ItemCount# fields to display before we list out all the CPU data
predisplay=_DisplayMsg||~|~| – ||
predisplay=_ItemCount||Total Process Count||||<br>display=_DisplayMsg||~|~| – ||
display=_AvgCPU|%|{Name} (PID={IDProcess}) CPU||||
display=PrivateBytes|#B|Memory||||<br># need to include the {Name} so that performance data is unique to each instance
perf=_ItemCount||Process Count
# perf=_AvgCPU|%|Avg Utilisation CPU_{Name} – don’t really need perfdata for each process for this check – use checkproc cpu if you want that###########################################
In the following query, the ‘Name’ field was missing:[checkeachcpu]
requires=1.43
inihelp=<<EOT
Get CPU performance (like checkcpu) but provide information for each CPU. Cores are seen as CPUs.
EOTquery=select Name,PercentProcessorTime,Timestamp_Sys100NS from Win32_PerfRawData_PerfOS_Processor
2022-11-26 at 12:44 PM #914adminKeymasterOk, added to release ini file
2022-11-28 at 7:35 PM #918mdicssParticipantFine, thanks.
- AuthorPosts
- You must be logged in to reply to this topic.