Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Plugin for check IIS Sites and Application pool status, using NRPE.
Current Version
1.0.5
Last Release Date
2016-11-22
Owner
Yossi Bitton
Download URL
https://github.com/yosbit/nagios/releases/download/v1.05/check_iis.ps1
Compatible With
Author: Yossi Bitton [email protected] Version: 1.0.5 LastModified: 22/11/2016
Check IIS 7 Sites and Application Pool status using NRPE.
Monitor Option: Sites = check if all Sites with AutoStart=True, up and running. AppPool = check if all AppPool with AutoStart=True, up and running. DebugMode = run plugin in debug mode. Exclude = exclude sites ot application pool.
For NSC.ini add the following line under section: [Wrapped Scripts] check_iis=check_iis.ps1 $ARG1$
[Script Wrappings] ps1 = cmd /c echo scripts%SCRIPT%%ARGS%; exit($lastexitcode) | powershell.exe -ExecutionPolicy Bypass -command - Example:
For nsclient.ini check_iis = cmd /c echo scriptscheck_iis.ps1 $ARG1$ ; exit($lastexitcode) | powershell.exe -ExecutionPolicy Bypass -command - 2> $null
Monitor all IIS sites. ./check_nrpe -H IIS_IP_Address -t 30 -c check_iis -a '-CheckType Sites'
Monitor all IIS sites, exclude site01,oldsite2 ./check_nrpe -H IIS_IP_Address -t 30 -c check_iis -a '-CheckType Sites -Exclude site01,oldsite'
Monitor all Application pool, exclude app01 ./check_nrpe -H IIS_IP_Address -t 30 -c check_iis -a '-CheckType AppPool -Exclude app01'
Debug mode: add -DebugMode 1
You can add the argument by position: CheckType = 1 DebugMode =2 Exclude = 3
So this command also work: ./check_nrpe -H IIS_IP_Address -t 30 -c check_iis -a 'Sites 0 sites01,oldsite' This command mean: check 1: iis sites 2: no debug, 3: exclude sites01,oldsite
You must be logged in to submit a review.
To:
From: