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_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 logfiles script
Not so generic way to check ‘any’ logfile for erros I have written at least about 5 variations of this same script. Some more flexible and genereal purpose. But in the end I have been writing customs made out of […]
Check Linux Cluster
A simple nagios/bash script to check if a RedHat/CentOS cluster has failedover.It uses the output from the clustat command. The usage is simple the script name and service, example: check_usage IO_Service It has been tested only with a 2 node […]
TCP Send-Queue
Script to monitor the TCP Send-Queue. Send-Q is retrived from the netstat cmd. ex.: #netstat -anp |more Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name The script syntax example: #check_sendq -w 900 […]
nagios check printer
Script in vbs that will check if a printer is working correctly and is processing its Documents. In case the same number of documents are in the Queue it will alert, this can be used in nagios with a retry […]
check local administrator group
We needed a way to know if anyone has added itself to the Local Administrator group on any servers. So I wrote this script and setup on schedulle task to run each hour. In case any changes happen on the […]