Times are changing in the IT world: the most popular monitoring stacks now consist of about six to eight tools, and generally include at least one from each of the following, plus other specialized or custom tools: an open source […]
nagios vmware esx plugin
The best script to monitor VMWare ESX using nagios was developed by Steve Shipway. 1. Download the script wget http://felipeferreira.net/wp-content/uploads/2015/05/VMWare.zip unzip VMWare.zip cd VMWare chmod +x check_vmware.pl && sed -i -e ‘s/\r$//’ check_vmware.pl ./check_vmware.pl OBS: It is normal to get […]
check process uptime
Simple script to get any linux process uptime. It could have been done using the /proc/PID too. Here is the code: #!/bin/bash # Script to get a process uptime, alerts if process time is under CRIT value # can be […]
check_varnish_uptime
Simple script to check if the varnish daemon has been restarted latelly Here is the code: #!/bin/bash #Get current varnish uptime #Version 1.0 #By Felipe Ferreira Set 2013 #Variables CRIT=900 #Check arguments print help if [ $# -lt 1 ]; […]
check_backend.sh
Another bash script to monitor if there were any failed connections to the backend’s. It is a simple aproach using the command: varnishstat -1 -f backend_fail Then it puts the output on a tmp file and next time it runs […]
check_con.vbs
Check connections for windows A Visual Basic Script to check how many open connections exists in a certain port. Here is the code: ‘Script Check Number of ESTABLISHED connections ‘Author: Felipe Ferreira ‘Data: 29/07/2010 ‘Version: 1.0 (nagios) ‘———-NAGIOS VARs Const […]
varnish check_hitratio
We need to know if varnish is caching hit ratio is as it should. So I wrote this simple bash plugin for nagios. ./check_hitratio.sh 96 90 OK – 98.67% hit_ratio|hit_ratio=98.67 96 = warning 90 = critical if no arg is […]