Archive

Posts Tagged ‘script’

Block IP bash script

March 30th, 2017 No comments

Still working hard to keep my server security locked down from attacks.

This script checks lighttpd logfile for unusual behaviour

Read more…

Centreon reporting email

March 1st, 2017 No comments

I had created a Nagios Script for auto e-mailing reports. Old Post
Since now I have fully migrated to centreon (centreon-engine) I needed also here to have an auto email report.

Read more…

centos 7 disable useless services

January 4th, 2017 No comments

This some of the tuning I do on a centos 7 install

REMOVE USLESS NETWORK INTERFACE
brctl delbr virbr0
systemctl get-default
systemctl set-default multi-user.target

Read more…

python nagios scrape

December 22nd, 2016 No comments

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

Categories: python Tags: , , ,

Reverse SSH Tunnel

November 14th, 2016 No comments

The idea is to have my IP autostart connect to my Cloud server,
this way I can remote control my Raspberry PI without having to configure DynDNS and firewall rules.
The only requsisite is that PI has internet and run a simple script on startup to estabilish the SSH tunnel

Read more…

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…

iptables block country script

April 25th, 2016 No comments

My own server is daily attacked by SSH scanner and bruteforce scripts.
My fail2ban solution

Read more…

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

aws backup script

August 11th, 2015 1 comment

This is a robust script that backups all instances that have a TAG, Backup=TRUE
it generates a AMI images, and snapshots of each Volume, also a nice e-mail with a HTML table nice format.

Read more…