If theres no spares= option in mdadm.conf, then spare_disks gets set to
UnSet, and --monitor sends a SparesMissing event because there are less
than 65534 spare disks available.
http://marc.info/?l=linux-raid&m=10 ... 64&w=2
[ add comment ] ( 7 views ) | [ 0 trackbacks ] | permalink
inotify-tools allows you to watch for a file change. The RPM package can be downloaded at: http://packages.sw.be/inotify-tools/.
#!/bin/sh
LOGFILE="/var/log/remote/arpwatch/*"
while inotifywait -e modify $LOGFILE; do
if tail -n1 $LOGFILE | grep "STATUS=new"; then
ARP=`tail -n1 $LOGFILE | cut -d" " -f3 | cut -d "=" -f2`
echo "A new MAC address received: " $ARP
if grep -i $ARP ARP_Monitor.csv; then
echo "The MAC address is in the scope"
else
echo "The MAC address is not in the scope"
fi
fi
done
[ add comment ] ( 4 views ) | [ 0 trackbacks ] | permalink
# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
[ add comment ] ( 3 views ) | [ 0 trackbacks ] | permalink
URL: http://www.linuxzone.cz/modules/tisk_cl ... mp;idc=658
[ add comment ] ( 3 views ) | [ 0 trackbacks ] | permalink
http://www.howtoforge.com/postfix_backup_mx
[ add comment ] ( 3 views ) | [ 0 trackbacks ] | permalink
[ add comment ] ( 4 views ) | [ 0 trackbacks ] | permalink
sed -i 's/ugly/beautiful/g' /home/bruno/old-friends/sue.txthttp://www.brunolinux.com/02-The_Termin ... h_Sed.html
[ add comment ] ( 4 views ) | [ 0 trackbacks ] | permalink
while read line
do
echo "MAC=$line"
done < mac-hex-codes.txt > mac-hex-codes2.txt
[ add comment ] ( 6 views ) | [ 0 trackbacks ] | permalink
Search for the torrent at http://torrent.ibiblio.org/.
[ add comment ] ( 6 views ) | [ 0 trackbacks ] | permalink
The pythons module binascii is suitable for conversion between ascii and hex.
$ python
>>> import binascii
>>> binascii.unhexlify('7461696C202F7661722F6C6F672F6D65737361676573')
'tail /var/log/messages'
more at: http://blog.dispatched.ch/2009/12/09/py ... unhexlify/
[ add comment ] ( 6 views ) | [ 0 trackbacks ] | permalink