Tools
Ein sehr nützliches Monitoring-Tool ist bekanntlich smokeping
Bei vielen Servern genügt mir ein einfacher Ping, den Smokeping mit 'fping' realisiert, und ich hatte eine alte Version, die dafür völlig genügte.
Damit ich für mutwillig abgeschaltete Server nicht dauernd Emails bekomme, habe ich lange gesucht, um die Variable edgetrigger und ihre Möglichkeit zu finden. Die gibt es erst ab Version 2.0.2
edgetrigger:
When this variable is set to 'yes', a notification program (see the to variable documentation above) will get a sixth argument, raise, which has the value 1 if the alert was just raised and 0 if it was cleared.
Default value: edgetrigger = no
in die Alerts Sektion einfügen:
für alle
oder nur für eine 'loss' Art
*** Alerts ***
to = xyz@gmail.com
from = smokealert@abc.com
edgetrigger = yes
+bigloss
type = loss
# in percent
pattern = ==0%,==0%,==0%,==0%,>0%,>0%,>0%
comment = suddenly there is packet loss
+someloss
type = loss
edgetrigger = yes
# in percent
pattern = >0%,*12*,>0%,*12*,>0%
comment = loss 3 times in a row
+startloss
usw....
rrd Datenbanken mergen:
http://oss.oetiker.ch/rrdtool/pub/contrib/merge-rrd.tgz
merge-rrd.py is a python script that merges that data found in rrd
files. This assumes that the two rrds are have the same data structure.
The script creates the merged rrd by copying the entries from the new rrd.
If the new rrd has database entries with missing data, then the records
of the old rrd are used instead. This mean that data from the new rrd
will always take precedence over the data in the old rrd.
There's another one : http://www.pintori.it/rrd-merger/
Quelle: Irgendein Forum im Netz