Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_con
1.0
2010-08-10
- Nagios 3.x
120685
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!
I wrote a simple plugin to check the number of established connections
to a windows server. Just execute:
cmd /c netstat -an |find /i “estab” /c
I have also done the same for a linux server. Just exec.:
netstat -anp | grep -c EST
In fact that script is only 2 lines:
result=`netstat -anp | grep :81 | grep -c EST`
echo “Conexoes Totais = $result |Conexoes=$result”
Note that | will graph that result, witch is very usefull!
There are many ways of getting that information, I have also
done the same thing via WMI, perfmon has that counter
and it maybe easier to for example find out the total number of
current connections to a specific website.
The script for windows is a .vbs and I call it using NC_NET
to a windows server. Just execute:
cmd /c netstat -an |find /i “estab” /c
I have also done the same for a linux server. Just exec.:
netstat -anp | grep -c EST
In fact that script is only 2 lines:
result=`netstat -anp | grep :81 | grep -c EST`
echo “Conexoes Totais = $result |Conexoes=$result”
Note that | will graph that result, witch is very usefull!
There are many ways of getting that information, I have also
done the same thing via WMI, perfmon has that counter
and it maybe easier to for example find out the total number of
current connections to a specific website.
The script for windows is a .vbs and I call it using NC_NET
Reviews (1)
byTex65, February 7, 2013
Good plugin !
But VBS Download URL is unavailable ...
But VBS Download URL is unavailable ...