Archive

Archive for the ‘BashScripts’ Category

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…

bash script to convert pdf to jpg

September 30th, 2013 No comments

I wrote this shell script to convert around 7 million PDF’s. The initial Java version had trouble with performance, it crashed a lot and used way to much memory. So old bash again did a clean and fast job.

Read more…

Categories: BashScripts, HowTo, Linux Tags:

check aws elb hosts

September 2nd, 2013 1 comment

This scripts counts how many active instances are inService of a AWS ElasticLoadBalancer (ELB).

The code is based on a simple API call via bash
elb-describe-instance-health

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 how many files in a directory

June 7th, 2013 3 comments

Script to count how many files exists in directory and subdirectories
based on Gerd Stammwitz original script.

Read more…

Categories: BashScripts Tags: , , , , ,

How to setup aws cmd line tools

May 31st, 2013 No comments

To be able to execute the many API command line tools you will need to setup and configure the authentication correctly.
This will help you to do just that.

Read more…

Cluster MS Check

January 17th, 2013 3 comments

Another nagios/bash script that verifies if a cluster has performed a failover. This one is used for any microsoft cluster.

Read more…

Check Linux Cluster

January 17th, 2013 No comments

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

Read more…

Categories: BashScripts, Linux Tags: , , ,

check_ftp_download script

December 10th, 2012 1 comment

This is a script that tests the FTP site by downloading a specific file and verifying how long it takes to do so.
It also measures the bandwidth.
It uses curl PHP library to do the FTP part.

Read more…

Categories: BashScripts, Linux Tags:

File cleanup script for Linux

May 2nd, 2012 1 comment

Sometimes disks fill up with logs for example, and we the administrators have to
login sometimes even wake up just to delete log files! Well this script solves the problem.
In this case I used to cleanup Glassfish log files. Just setup it on cron with X amount
of days to keep files. Carefull because its recursive.

Read more…

Categories: BashScripts Tags: , , , , , ,