david/scripts-archive
david
/
scripts-archive
Archived
1
0
Fork 0
This repository has been archived on 2022-04-16. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
david 5e60ee959c initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
clonebackup initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
db initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
ftpsftp initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
kvm-tools initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
monitoring initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
thinkpad_x131e initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
README.please initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
bandwidth.sh initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
bashlib initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
check_glue_records.sh initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
df.conf.sample initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
df.sh initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
df_bot.conf.sample initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
df_bot.sh initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
flash_scrolllock.sh initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
hb.sh initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
heartbeat.lst.sample initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
heartbeat.sh initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
htpasswd.py initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
htpasswd.sh initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
install_moka.sh initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
install_yaourt.sh initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
jekyll.sh initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
journal.sh initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
lifesaver.pl initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
linz_ag.pl initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
lomount.sh initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
mc.sh initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
mediacontrol.sh initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
mem.sh initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
on_time.sh initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
ping.conf.sample initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
ping.sh initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
power_control.sh initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
prep_ubuntu_server.sh initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
prime.pl initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
recreate_ssh_host_keys.sh initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
reference.pl initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
remove_emailaddress_from_queue.pl initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
rtspstream.pl initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
setup_zsh.sh initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
speedtest.sh initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
start_vmware.sh initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
telnet_mail.sh initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
vpnc_config.sh initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00
youtube_converter.sh initial commit, added everything old from my scripts repo 2022-04-16 20:25:43 +02:00

README.please

this is my little mobot project.

the concept is not to spend hundreds of hours to implement some massive
monitoring tool like nagios or something like this.
instead i want to use some simple message/notification scripts 
which exactly tell me what i need to know.

the first thing i have here is the df bot. it sends me a short jabber message
when one or more disks on the serving machine reaching a preconfigured threshold 
(example: 90% disk usage).

another tool i find really useful is the pingbot (ping.sh)
it works pretty much the same as the dfbot.

feel free to use or improve this handy tools!


=== install notes ===

1. copy the scrip somewhere on your machine
you get the df.sh on gitorious.org
http://gitorious.org/sn/scripts/trees/master/mobots/df.sh

2. create the configfile
use the df.conf.sample to create a config and put this file anywhere on the same machine
http://gitorious.org/sn/scripts/trees/master/mobots/df.conf.sample

3. create a cronjob for it
add a line like this to your /etc/crontab
*/2 *	* * *	root	/bin/bash --login /path/to/the/script/df.sh /path/to/configfile/df.conf >> /path/to/logfile/df.log
or (if you use the default configpath /etc/mobots)
*/5 *   * * *   root    /bin/bash --login /path/to/script/df.sh >> /var/log/mobots/df.log

the logdirectory must exist

after this you have to restart your cron with something like
service cron restart

of course there are several ways to create a cronjob but this is probably the easiest way

any questions? mail me! (david@socialnerds.org)