Archive

Posts Tagged ‘Nagios’

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 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: , , , , ,

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: , , , , ,

check_conntrack_unreplied

March 27th, 2013 No comments

Our front end varnish servers expierence a lot of traffic and we currently
must have a iptables NAT that routes from port 80 to port 81, where the varnish daemon listen to traffic. Doing this we end up using the iptables conntrack feature.

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: , , ,

Centreon Enterprise Server

October 31st, 2012 3 comments

CES Centreon Enterprise Server

I tired the Standard 2.0 64bits (October 31st 2012)

Today I tested the CES server I was kind of disappointed to find out that
it does not have all Centreon cool tools pre-installed, I guess its also a funny
name “Enterprise Standard”, hum…
There is no “Enterprise Complete” .iso available on the website, maybe that one
would be the real thing. I was disappointed to see it does not even have
the latest Centreon (2.3.9)pre-installed. or latest CentOS 6.x .
It’s nice that it has a .iso where you can boot from, but the idea is not new
at all, check FAN – FullAutomatedNagios at http://felipeferreira.net/?p=224

Read more…

TCP Send-Queue

October 3rd, 2012 No comments

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

Read more…

Categories: Linux, Nagios Tags: , , , , ,

check_ftp.php

September 20th, 2012 No comments

Nagios plugin to verify a FTP site, by uploading a file and testing the time it takes.
check_ftp.php

#!/usr/bin/php
< ?php // Script to connect to a FTP site and Upload a file, return the time it took and compare to WARN and CRIT values // Formated for Nagios usage // Use a test user for the FTP as it could be simple to get this password // I use a 5mb file, created by using: dd bs=1024 count=5120 skip=5120 if=/dev/sda of=file.tst // by Felipe Ferreira http://felipeferreira.net Read more…