mdicss

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • mdicss
    Participant

    Fine, thanks.

    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

    mdicss
    Participant

    What are the error messages you get?
    Do you have a running http server (gunicorn?) with the wmic server? Can you test the connection to the wmic server?
    Did you try a call with wmic_client.sh like:
    wmic_client.sh -i MYUSER1-t MYSECRETUSERACCESSTOKEN1 -h MYWINDOWSPC -q ‘SELECT * FROM Win32_UTCTime’
    When wmic_client.sh works, the problem is in the check_wmi_plus part of the configuration.

    in reply to: wmic_server setup #899
    mdicss
    Participant

    Hi
    I run into the same problem. There is a conflict with two scripts uuid.py and the path to find one. For me
    pip3 uninstall uuid
    pip3 uninstall aiowmi
    pip3 install aiowmi
    did the trick.

Viewing 4 posts - 1 through 4 (of 4 total)