A SparesMissing event had been detected on md device 
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
Trigger action on file change, triggered tail 
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
Check nagios config file syntax 
# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg


[ add comment ] ( 3 views )   |  [ 0 trackbacks ]   |  permalink
Prevzaty clanek o SMART diagnostice disku 
URL: http://www.linuxzone.cz/modules/tisk_cl ... mp;idc=658


[ add comment ] ( 3 views )   |  [ 0 trackbacks ]   |  permalink
Postfix as secondary MX 
http://www.howtoforge.com/postfix_backup_mx

[ add comment ] ( 3 views )   |  [ 0 trackbacks ]   |  permalink
Zadlužení zemí EU  


[ add comment ] ( 4 views )   |  [ 0 trackbacks ]   |  permalink
Find and replace with sed 
sed -i 's/ugly/beautiful/g' /home/bruno/old-friends/sue.txt
http://www.brunolinux.com/02-The_Termin ... h_Sed.html

[ add comment ] ( 4 views )   |  [ 0 trackbacks ]   |  permalink
Linux: read line by line from file in a bash script  
while read line
do
echo "MAC=$line"
done < mac-hex-codes.txt > mac-hex-codes2.txt


[ add comment ] ( 6 views )   |  [ 0 trackbacks ]   |  permalink
Linux: Red Hat Enterprise Linux 6 Beta Available  
Search for the torrent at http://torrent.ibiblio.org/.

[ add comment ] ( 6 views )   |  [ 0 trackbacks ]   |  permalink
python: convert hex to ascii and ascii to hex 
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

<<First <Back | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | Next> Last>>