Archive

Archive for the ‘plugins’ Category

check schedulle task nagios

February 3rd, 2017 No comments

Script to get failed schedulle jobs (plugin for Nagios/Centreon)
REQUIRES: schtasks.exe
Tested only Windows 2003

Read more…

Categories: Centreon, Nagios, plugins, script, VbScripts Tags:

money conversion rate monitoring script

September 29th, 2016 No comments

If you want to easly monitor a money conversion rate, here is the script I wrote long long time ago (default is EURO x REAL)
./ moneyconversioncheck –minwarn 3 –maxwarn 4.0 –mincrit 2.8 –maxcrit 4.5 -v
Verbose Mode ON
EURO is 3.6189 validating
MONEYX OK: Value of EURO is – 3.6189

Read more…

Categories: plugins, script Tags: , , ,

Nagios Notify html Script

September 29th, 2016 No comments

The default notification script for nagios is very simple, why not get more information on the email. Like: hostgroup, how long has the problem happened, link to the possible documentation. And format it in a nice html table.

Read more…

check process uptime

December 10th, 2014 1 comment

Simple script to get any linux process uptime.
It could have been done using the /proc/PID too.

Here is the code:

Read more…

Categories: Nagios, plugins Tags: , , , ,

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_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…