Wrote a script in python using beautiful soap to scrub a web page.
Can't locate Sys/Statistics/Linux.pm
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 […]
script to check aws status
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… Here is […]
nagios vmware esx plugin
The best script to monitor VMWare ESX using nagios was developed by Steve Shipway. 1. Download the script wget http://felipeferreira.net/wp-content/uploads/2015/05/VMWare.zip unzip VMWare.zip cd VMWare chmod +x check_vmware.pl && sed -i -e ‘s/\r$//’ check_vmware.pl ./check_vmware.pl OBS: It is normal to get […]
check process uptime
Simple script to get any linux process uptime. It could have been done using the /proc/PID too. Here is the code: #!/bin/bash # Script to get a process uptime, alerts if process time is under CRIT value # can be […]
check_varnish_uptime
Simple script to check if the varnish daemon has been restarted latelly Here is the code: #!/bin/bash #Get current varnish uptime #Version 1.0 #By Felipe Ferreira Set 2013 #Variables CRIT=900 #Check arguments print help if [ $# -lt 1 ]; […]
check_backend.sh
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 […]