CPU_RAM_DISK Usage

I would to like to combine analysis to monitor CPU_RAM_DISK usage , once the device CPU_RAM_DISK Usage reached 80% then it can trigger a task to email out with a list of the devices including the with percentages of CPU_RAM_DISK Usage. Currently I have analysis set to find the CPU_RAM_DISK Usage, the analysis is finding all the devices CPU_RAM_DISK Usage information. I want it to be triggered to the devices that reached CPU_RAM_DISK Usage 80% > Generate the report > > Rename the report like “CPU_RAM_DISKUsage_mmddyyy.csv” > Send the report to a list of user

can anyone please guide me through the process

You can create a report on the Web Reports and then schedule it with a relevance trigger.
If you can share the analysis we can help you with a session relevance

Here are my Analysis, which is giving me results for all devices and generating a Webreport as “report-8” every day, now I need to Trigger only the devices exceeded 85% of usage in each criteria then generate report and rename the report and then send to the list of user.

CPU Usage (%)

( ( (sum of (it as floating point) of (string values of selects "LoadPercentage from Win32_Processor" of wmis)) / (number of (selects "LoadPercentage from Win32_Processor" of wmis)) ) as string & " %25" ) | "N/A"

RAM Usage (%)

(((100* used amount of ram / total amount of ram) as string) & " %25") | "N/A"

Disk Space Used (%)

((100 * (total space of it - free space of it) / total space of it) as integer as string & " %25") of drives whose (name of it = "C:")

BigFix is not a true monitoring tool. It can help provide near real-time data, but if you need proper continuous monitoring, it would be better to use one of the dedicated monitoring tools already available in your organization.

That said, if you still want to achieve this through BigFix, you can modify the source analysis properties so they return only True/False whenever the requested component reaches 85% utilization. I have added example logic below, which you can use and adjust as needed.

CPU

( ( (sum of (it as floating point) of (string values of selects "LoadPercentage from Win32_Processor" of wmis)) / (number of (selects "LoadPercentage from Win32_Processor" of wmis)) ) as string & " %25" ) > "85" | "N/A"

RAM

(((100* used amount of ram / total amount of ram) as string) & " %25") > "85" | "N/A"

Disk

(((100 * (total space of it - free space of it) / total space of it) as integer as string & " %25") of drive whose (name of it = "C:"))  > "85"

You can then use these property results in Web Reports and Generate report when relevance evaluates to True.

For example, the custom Session Relevance used as the trigger can be:

exists bes computers whose (value of results from (bes property "CPU Usages") of it contains "True")

You can expand this further with OR conditions for the other two property results as well.

2 Likes

Thanks Khurava, I will try to use and adjust these to see if if I can move forward

You can use the below sample to create the webreport.

<!DOCTYPE html>
<html>
<head>
    <style>
        body { font-family: sans-serif; margin: 20px; }
        table { border-collapse: collapse; width: 100%; box-shadow: 0 2px 3px #ccc; }
        th { background-color: #4A90E2; color: white; text-align: left; padding: 12px; }
        td { border-bottom: 1px solid #ddd; padding: 10px; font-size: 0.9em; }
        tr:hover { background-color: #f5f5f5; }
        .header { margin-bottom: 20px; }
    </style>
</head>
<body>

<div class="header">
    <h2>Hardware Inventory Report</h2>
    <p>Generated via Custom Relevance Query</p>
</div>

<table id="resultsTable">
    <thead>
        <tr>
            <th>Computer Name</th>
            <th>Last Report Time</th>
            <th>RAM</th>
            <th>CPU</th>
            <th>Disk Space</th>
        </tr>
    </thead>
    <tbody>
        <?relevance 
 
            (html ("<tr>" & 
                "<td>" & name of it & "</td>" &
                "<td>" & last report time of it as string & "</td>" &
                "<td>" & (if exists values of results (it, bes properties "RAM") then (concatenation ", " of values of results (it, bes properties "RAM")) else "N/A") & "</td>" &
                "<td>" & (if exists values of results (it, bes properties "CPU") then (concatenation ", " of values of results (it, bes properties "CPU")) else "N/A") & "</td>" &
                "<td>" & (if exists values of results (it, bes properties "DISK") then (concatenation ", " of values of results (it, bes properties "DISK")) else "N/A") & "</td>" &
            "</tr>")) of bes computers
        ?>
    </tbody>
</table>

</body>
</html>