Compare float in bash If you have a regular if and one of the integers has a float value like 1.200 you will get an error message. The best way to do is using the bc command. Like: $ echo […]
Nagios check_con
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 also wrote a script for Windows Here is the code I have also […]
Monitor Varnish with Nagios
Varnish is an amazing reverse proxy product and it does its job very well, but how can we know that? Or even better how can we know it detected problems in the backed? Currently I monitor those server using hit/ratio […]
replicate IIS configuration
Well if you have the mission to keep multiple webservers IIS 6.0 with exactly same setup its not an easy job! I was faced with this challenge and ended up writing yet another vbs script. I played with Microsoft tool […]
nagios report
I have a custom script to generate monthly reports about Hosts and Services. The syntax is pretty simple: * /usr/local/nagios/libexec/report.pl –email=fel.h2o@gmail.com –type=monthlyservice –debug=0 /usr/local/nagios/libexec/report.pl –email=emailme@gmail.com –type=monthlyservice –debug=1 I usually add it to run once a month one for service and […]
NC_NET execute a vbs script
How to configure NC_NET execute a vbs script I was used to the simplicity of NRPE_NT, where things are much easier and straight forward. I am now tring NC_NET wich for startes requires Framework 2.0 and a server reboot to […]
Enumerate exchange mailboxes script
I had already written a simillar script, that would go thru an entire Cluster and SGs, these one implements same theory but it is more flexible and easy to use. Basically you will get 3 types of info and all […]