Coder Social home page Coder Social logo

lifailon / winperf-agent Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 920 KB

Service for measuring increased CPU performance and sending a report to the email

PowerShell 100.00%
performance powershell windows-service monitoring service windows windows-monitoring

winperf-agent's Introduction

WinPerf-Agent

Установка

Агент мониторинга по сбору метрик в виде службы.

Версия 1.1 обрабатывает одно условие в указанный промежуток времени (в секундах, по умолчанию 15), где нагрузка на CPU превышает 90%, если триггерное условие срабатывает, то оно проверяется еще два раза с указанным интервалом выше. Если три проверки подряд вернули результат выше тригерного значения, отправляет развернутый отчет состояния системы на почту, в котором можно инициализировать процессы, которые вызвали данную нагрузку и список установленных сетевых соединений, с которым их можно сопоставить и выявить удаленный источник нагрузки. Вывод измерений логируется.

Image alt

Image alt

Установка:

  • Скопировать директорию WinPerf-Agent в корень диски C:\
  • Скачать NSSM-2.24.exe и поместить в директорию C:\WinPerf-Agent\NSSM-2.24.exe
  • Создать службу:
    $powershell_Path = (Get-Command powershell).Source
    $NSSM_Path = (Get-Command "C:\WinPerf-Agent\NSSM-2.24.exe").Source
    $Script_Path = "C:\WinPerf-Agent\WinPerf-Agent-1.1.ps1"
    $Service_Name = "WinPerf-Agent"
    & $NSSM_Path install $Service_Name $powershell_Path -ExecutionPolicy Bypass -NoProfile -f $Script_Path
    & $NSSM_Path start $Service_Name
    & $NSSM_Path status $Service_Name

winperf-agent's People

Contributors

lifailon avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.