Powershell/NRPE/README.md
2023-07-04 12:59:44 +02:00

2.7 KiB

Addon NRPE

  • Tout les sondes ci-dessous son à ajouter dans le fichier nsclient.ini
  • Recherche la rubrique : [/settings/external scripts/scripts]

Partie Supervision :

  • Certificats-local.ps1
    Description : Controle l'expiration d'un ou plusieurs certificat se trouvant dansle même dossier.

    Check_ca=cmd /c echo C:\Exploit\Centreon\Certificats-local.ps1 | powershell.exe -command -

  • Check_win_last_update.ps1
    Description :

    Check_win_last_update=cmd /c echo C:\Exploit\Centreon\check_win_last_update.ps1 | powershell.exe -command -

  • WSTester.ps1
    Description :

    Check_WSTester=cmd /c echo C:\Exploit\Centreon\WSTester.ps1 | powershell.exe -command -

  • Dynamics-AX.ps1
    Description : Pour l'application Dynamics AX

    Check_DynamicsAX=cmd /c echo C:\Exploit\Centreon\Dynamics-AX.ps1 | powershell.exe -command -

  • Check-NetLbfoTeamMember.ps1
    Description :

    Check_TeamMember=cmd /c echo C:\Exploit\Centreon\Check-NetLbfoTeamMember.ps1 | powershell.exe -command -

  • Check_diskdefragstatus.ps1
    Description :

    Check_Defrag=cmd /c echo C:\Exploit\Centreon\check_diskdefragstatus.ps1 -warning 15 -critical 30 | powershell.exe -command -

  • Check_iis.ps1
    Description :

    Check_IIS=cmd /c echo C:\Exploit\Centreon\check_iis.ps1 | powershell.exe -command -

  • Check_IISPerformance_State.ps1
    Description :

    Check_iisperformance_state=cmd /c echo C:\Exploit\Centreon\Check_IISPerformance_State.ps1 -WebSite ARG1 | powershell.exe -command -

  • Check_iis8_app_pool_state.ps1
    Description :

    Check_IIS8_AppPool=cmd /c echo C:\Exploit\Centreon\check_iis8_app_pool_state.ps1 ARG1 | powershell.exe -command -

  • Check_iis8_connections.ps1
    Description :

    Check_IIS8_Connexions=cmd /c echo C:\Exploit\Centreon\check_iis8_connections.ps1 ARG1 ARG2 ARG3 | powershell.exe -command -

  • Check_iis8_site.ps1
    Description :

    Check_IIS8_SiteWeb=cmd /c echo C:\Exploit\Centreon\check_iis8_site.ps1 ARG1 | powershell.exe -command -

Partie Hypervision :

  • Task-kill-Process.ps1
    Description : Permet de couper un process si une alerte définie est atteinte

    Task_Kill_Process=cmd /c echo C:\Exploit\Centreon\Task-kill-Process.ps1 ARG1 | powershell.exe -command -

  • Task-Restart-Service.ps1
    Description : Relance d'un service

    Task_Restart_Service=cmd /c echo C:\Exploit\Centreon\Task-Restart-Service.ps1 ARG1 | powershell.exe -command -

  • Task-Defrag.ps1
    Description : Lance une défragmentation en cas d'alerte

    Task_Defrag=cmd /c echo C:\Exploit\Centreon\Task_defrag.ps1 | powershell.exe -command -