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 […]
check_http.sh
Simple bash script using curl to check a website. It works on HTTP and HTTPS. Requirement: curl Usage ./check_http.sh Example: ./check_http.sh ‘http://oglobo.globo.com’ oglobo 1 OK – Site oglobo.globo.com key oglobo time 0.019 |’time’=0.019s;1 Here is the code: #!/bin/bash #Verificar um […]
check_error_log
Yet another log monitoring script.. The date field is very specific for each system and I keep having to refix each time. I like this one about the way it works, it first find the date/time where we want to […]
check_procs: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
When monitoring a server process/services using check_procs plugin On new servers x64 many times you will get this error # ./check_procs -bash: ./check_procs: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory The solution is to install: glibc.i686 : The […]
check iis cpu
This nagios plugin VBS script, gets exactly the amount of CPU a specific Aplication Pool is using, it helps a lot to identify witch site is using more CPU. It was tested on Windows 2003 only. I had the help […]
check apache script
This script monitor Apache ./check_apache OK – Apache Status Req/s = 0.6 Idel = 4 Busy = 7|Req=0.6;Idle=4;Busy=7 Tested on Ubuntu 12.04 lighthttpd and It works only whe apache mod_status is on. I also included security on the mod_status access […]
check_aws.sh
I wrote this script to monitor my Amazon EC2 servers and LoadBalancers, this script is able to get any metrics avaiable at the cloud-watch. For it to work you will need the amazon api commands working, here is how to […]