Archive

Archive for the ‘Nagios’ Category

check_backend.sh

March 25th, 2014 No comments

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 it checks if it is still having erros on the backend.

Read more…

check_con.vbs

March 25th, 2014 No comments

Check connections for windows
A Visual Basic Script to check how many open connections exists in a certain port.

Read more…

Categories: Nagios, plugins, Windows Tags:

varnish check_hitratio

March 25th, 2014 No comments

We need to know if varnish is caching hit ratio is as it should.
So I wrote this simple bash plugin for nagios.

Read more…

check_http.sh

March 14th, 2014 5 comments

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

Read more…

Categories: Nagios, plugins Tags: , , , ,

check_error_log

December 6th, 2013 No comments

Yet another log monitoring script..
The date field is very specific for each system and I keep having to refix each time.

Read more…

check_procs: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

December 4th, 2013 No comments

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

Read more…

Categories: Linux, Nagios, plugins Tags: ,

check iis cpu

September 5th, 2013 1 comment

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.

Read more…

check apache script

August 22nd, 2013 No comments

This script monitor Apache
./check_apache
OK – Apache Status Req/s = 0.6 Idel = 4 Busy = 7|Req=0.6;Idle=4;Busy=7

Read more…

Categories: BashScripts, HowTo, Linux, Nagios, plugins Tags: ,

check_aws.sh

May 31st, 2013 No comments

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 setup it.

Read more…

Categories: Amazon-AWS, Nagios, plugins Tags:

check logfiles script

April 17th, 2013 2 comments

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 this skel.

Read more…

Categories: Nagios, plugins Tags: , , , , ,