[checkproc memcpuabove] part is missing in check_wmi_plus.ini

Home Forums Help [checkproc memcpuabove] part is missing in check_wmi_plus.ini

Tagged: , ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #906
    mdicss
    Participant

    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, Matthias

    #910
    admin
    Keymaster

    Can you please provide the ini configuration?

    #912
    mdicss
    Participant

    Hi
    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.
    EOT

    aligndata=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=5

    customfield=_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.
    EOT

    query=select Name,PercentProcessorTime,Timestamp_Sys100NS from Win32_PerfRawData_PerfOS_Processor

    #914
    admin
    Keymaster

    Ok, added to release ini file

    #918
    mdicss
    Participant

    Fine, thanks.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.