Archive

Posts Tagged ‘check’

check_varnish_uptime

March 25th, 2014 No comments

Simple script to check if the varnish daemon has been restarted latelly

Here is the code:

Read more…

check_http.sh

March 14th, 2014 6 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 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 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: , , ,

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

nagios check printer

August 20th, 2012 No comments

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 of 3 times each 2 min.

Read more…

check local administrator group

June 5th, 2012 No comments

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 Local Admins group and e-mail will be sent.

Read more…

CHECK FTP DIR

March 21st, 2012 No comments

I needed to check if operation was happening.
The doubt was, Is the FTP files being copied over every day to the server?
To be sure I wrote this PHP script to check.
It goes into the FTP server and check for a folder with the date of today.

Read more…

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

vbs script to check services

December 15th, 2011 No comments

Script to check services, check_services.vbs
I tried developing it so the services could be passed via arguments, but
using check_nt (NC_Net) and vbscript I found it impossible when we came along
multiple arguments containing spaces, its a shame 🙁 Maybe someone out there has done it.
I know a SNMP plugin that does it and I use it, but some servers are in cluster and SNMP
checks dont work well.
Anyways here is the code ( hardcoded services are in an array)

Read more…

Categories: VbScripts Tags: , , , ,

script to check event viewer

October 6th, 2011 No comments

I have written similar script to check for a single server but this time
it scans a list of server.
It still not integrated with nagios because of the time it takes to execute
such script.
It does requires 7z.exe and dumpel.exe

Read more…