Archive

Posts Tagged ‘Nagios’

python nagios scrape

December 22nd, 2016 No comments

Wrote a script in python using beautiful soap to scrub a web page.

Categories: python Tags: , , ,

Can’t locate Sys/Statistics/Linux.pm

August 5th, 2016 No comments

When using check_stats.pl on Centos 7 I got a known error but not so easy to fix…

PROBLEM:
# su – nrpe -c “/usr/lib64/nagios/plugins/check_stats.pl -C -w 90% -c 95%”
Can’t locate Sys/Statistics/Linux.pm in @INC (@INC contains: /usr/lib64/nagios/plugins /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/lib64/nagios/plugins/check_stats.pl line 33.
BEGIN failed–compilation aborted at /usr/lib64/nagios/plugins/check_stats.pl line 33.

Read more…

Categories: Linux Tags: , ,

script to check aws status

September 23rd, 2015 1 comment

This is a bash script made to work with nagios and to automaticly check Amazon AWS status
based on the RSS from http://status.aws.amazon.com/
I did find something similar in Ruby
I tried to keep it simple as possible…

Read more…

Categories: Amazon-AWS Tags: , , , ,

nagios vmware esx plugin

May 26th, 2015 No comments

The best script to monitor VMWare ESX using nagios was
developed by Steve Shipway.

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…

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…