Everything old from https://git.socialnerds.org/david/scripts
david 5e60ee959c | ||
---|---|---|
clonebackup | ||
db | ||
ftpsftp | ||
kvm-tools | ||
monitoring | ||
thinkpad_x131e | ||
README.please | ||
bandwidth.sh | ||
bashlib | ||
check_glue_records.sh | ||
df.conf.sample | ||
df.sh | ||
df_bot.conf.sample | ||
df_bot.sh | ||
flash_scrolllock.sh | ||
hb.sh | ||
heartbeat.lst.sample | ||
heartbeat.sh | ||
htpasswd.py | ||
htpasswd.sh | ||
install_moka.sh | ||
install_yaourt.sh | ||
jekyll.sh | ||
journal.sh | ||
lifesaver.pl | ||
linz_ag.pl | ||
lomount.sh | ||
mc.sh | ||
mediacontrol.sh | ||
mem.sh | ||
on_time.sh | ||
ping.conf.sample | ||
ping.sh | ||
power_control.sh | ||
prep_ubuntu_server.sh | ||
prime.pl | ||
recreate_ssh_host_keys.sh | ||
reference.pl | ||
remove_emailaddress_from_queue.pl | ||
rtspstream.pl | ||
setup_zsh.sh | ||
speedtest.sh | ||
start_vmware.sh | ||
telnet_mail.sh | ||
vpnc_config.sh | ||
youtube_converter.sh |
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)