1
1
scripts/mobots/README.please

42 lines
1.5 KiB
Plaintext
Raw Normal View History

2010-06-30 23:58:23 +02:00
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.
2010-06-30 23:58:23 +02:00
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).
2010-06-30 23:58:23 +02:00
another tool i find really useful is the pingbot (ping.sh)
it works pretty much the same as the dfbot.
2010-06-30 23:58:23 +02:00
feel free to use or improve this handy tools!
2010-06-30 23:58:23 +02:00
2010-07-08 23:38:45 +02:00
=== install notes ===
1. copy the scrip somewhere on your machine
2010-07-08 23:38:45 +02:00
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
2010-07-09 00:03:11 +02:00
add a line like this to your /etc/crontab
2010-07-08 23:38:45 +02:00
*/2 * * * * root /bin/bash --login /path/to/the/script/df.sh /path/to/configfile/df.conf >> /path/to/logfile/df.log
2010-07-09 00:03:11 +02:00
or (if you use the default configpath /etc/mobots)
2010-07-09 00:40:29 +02:00
*/5 * * * * root /bin/bash --login /path/to/script/df.sh >> /var/log/mobots/df.log
the logdirectory must exist
2010-07-08 23:38:45 +02:00
2010-07-08 23:44:28 +02:00
after this you have to restart your cron with something like
service cron restart
2010-07-08 23:38:45 +02:00
2010-07-08 23:44:28 +02:00
of course there are several ways to create a cronjob but this is probably the easiest way
2010-06-30 23:58:23 +02:00
2010-07-08 23:38:45 +02:00
any questions? mail me! (david@socialnerds.org)