Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_iis
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
Simple dirty perl check_iis plugin for collecting statistics from IIS with snmp.
This is an example for those who can write plugins to do a better plugin for this.
This is an example for those who can write plugins to do a better plugin for this.
Reviews (7)
bynishith, February 23, 2016
Here is my command output.
./check_iis 172.16.1.105
currentAnonymousUsers 0,maxAnonymousUsers 4,currentConnections 0,maxConnections 98,|'currentAnonymousUsers'=0 'maxAnonymousUsers'=4 'currentConnections'=0
But, configuring the same in nagios configuration gives below error.
SNMP error, plugin missing?
Really don't know how to make it worked...!?
./check_iis 172.16.1.105
currentAnonymousUsers 0,maxAnonymousUsers 4,currentConnections 0,maxConnections 98,|'currentAnonymousUsers'=0 'maxAnonymousUsers'=4 'currentConnections'=0
But, configuring the same in nagios configuration gives below error.
SNMP error, plugin missing?
Really don't know how to make it worked...!?
bysfiedler, December 11, 2013
Test it first from the nagios ssh.
check_iis has 2 things you need to configure:
@indata=`snmpwalk -Os -v 1 -c public $ARGV[0] 1.3.6.1.4.1.311.1.7.3.1`;
Change the community string.
$defconf="/usr/lib64/nagios/plugins/check_iis-std.conf";
Check the location for this file and make sure the file exists there. The defaults are good enough, I personally was only interested in anonymous connections, so I removed the rest.
You need perl. Every nagios server I have used has perl and a lot of other scripts anyways.
on the nagios ssh console, run chmod +x to the file so it is executable and test it:
./check_iis "ipaddress"
It should return the values you specified in check_iis-std.conf
Move the files to the nagios plugin directory. Make sure you change the path for $defconf to where you put check_iis-std.conf
Now it depends on how familiar you are with Nagios configuration. I used nagiosql, and the command definition needs to be like this:
/usr/bin/perl $USER1$/check_iis $HOSTADDRESS$
Without specifying the perl path it returned with "Service check did not exit properly", with the path to perl it is displaying the correct information.
check_iis has 2 things you need to configure:
@indata=`snmpwalk -Os -v 1 -c public $ARGV[0] 1.3.6.1.4.1.311.1.7.3.1`;
Change the community string.
$defconf="/usr/lib64/nagios/plugins/check_iis-std.conf";
Check the location for this file and make sure the file exists there. The defaults are good enough, I personally was only interested in anonymous connections, so I removed the rest.
You need perl. Every nagios server I have used has perl and a lot of other scripts anyways.
on the nagios ssh console, run chmod +x to the file so it is executable and test it:
./check_iis "ipaddress"
It should return the values you specified in check_iis-std.conf
Move the files to the nagios plugin directory. Make sure you change the path for $defconf to where you put check_iis-std.conf
Now it depends on how familiar you are with Nagios configuration. I used nagiosql, and the command definition needs to be like this:
/usr/bin/perl $USER1$/check_iis $HOSTADDRESS$
Without specifying the perl path it returned with "Service check did not exit properly", with the path to perl it is displaying the correct information.
Hi all.
i m searching all this days to find a litlle bit on how to use this plugin and i m finding nothing. if you have something from this plugin i m very intresting. thanks for the community and thanks for the producter of this plugins :)
i m searching all this days to find a litlle bit on how to use this plugin and i m finding nothing. if you have something from this plugin i m very intresting. thanks for the community and thanks for the producter of this plugins :)
It worked for me with a few changes:
diff check_iis.orig check_iis
1a2
> # nagios: -epn
9c10
@indata=`/usr/bin/snmpwalk -Os -v 1 -c public $ARGV[0] 1.3.6.1.4.1.311.1.7.3.1`;
83c84
print "|$perf
";
diff check_iis.orig check_iis
1a2
> # nagios: -epn
9c10
@indata=`/usr/bin/snmpwalk -Os -v 1 -c public $ARGV[0] 1.3.6.1.4.1.311.1.7.3.1`;
83c84
print "|$perf
";
How would you actually use this plugin?
hi, it sounds interesting but an how-to-use-it will be great.
i think you use it on the server to check , maybe with a nrpelistener ?
in this case i suppose you need perl on your server ?
could you enlight us ?
thanks
i think you use it on the server to check , maybe with a nrpelistener ?
in this case i suppose you need perl on your server ?
could you enlight us ?
thanks
could you please help on how the command could be created for this plugin