I keep getting these errors in my dnsmasq.log file:
Jun 22 21:34:48 fire dnsmasq[28990]: DHCPACK(eth1) 192.168.333.100 00:13:8f:c7:b7:31 gamer5
Jun 22 21:34:48 fire dnsmasq[28990]: not giving name gamer1 to the DHCP lease of 192.168.333.126 because the name exists in /etc/hosts with address 192.168.333.67
Jun 22 21:34:48 fire dnsmasq[28990]: not giving name gamer2 to the DHCP lease of 192.168.333.43 because the name exists in /etc/hosts with address 192.168.333.94
Very annoying, because it means that the IPs I've assigned to these machines aren't making it somehow.
After researching it looks like I may have put too much info into the /etc/dnsmasq.conf file:
dhcp-host=00:02:RR:0F:8E:RR,192.168.333.34,gamer8
dhcp-host=00:06:RR:70:00:RR,192.168.333.63,gamer9
I will remove the host name from this and see if that fixes it.
Update - this works great - guess too much info can be an issue.
Solution looks likes this:
dhcp-host=00:02:RR:0F:8E:RR,192.168.333.34
dhcp-host=00:06:RR:70:00:RR,192.168.333.63
----
Also: to delete the current dnsmasq DHCP leases:
# /etc/init.d/dnsmasq stop
# nano /var/lib/misc/dnsmasq.leases - remove offending entries
# /etc/init.d/dnsmasq start
Following most of this how-to:
http://gentoo-wiki.com/HOWTO_Monitor_your_hard_disk(s)_with_smartmontools
I've set it up to email the various Gmail account for my servers. So now hopefully I'll get some advance warning if a hard drive is thinking about failing (which thankfully hasn't happened yet, thanks mostly to a once-every-two-years-or-so hard drive upgrade for these machines).
after having some MySQL issues, I found an excellent script here:
http://dev.mysql.com/doc/refman/5.0/en/check-table.html
I've set this to go off once a day to let me know about possible MySQL issues:
#!/bin/bash
#
# #automysqlcheck.sh
#
# This is a small bash script that checks all mysql databases for errors
# and mails a log file to a specified email address. All variables are
# hardcoded for ease of use with cron. Any databases you wish not to check
# should be added to the DBEXCLUDE list, with a space in between each name.
#
# Note that DBEXCLUDE will only work with GNU sed, as BSD regular expressions
# on Darwin seem to have some trouble with word boundary anchors.
#
# original version by sbray@csc.uvic.ca, UVic Fine Arts 2004
#
# modified by eyechart AT gmail.com and Mickael Sundberg at mickael@pischows.se and Jake Carr jake-+AT+-websitesource-+DOT+-com
# (see Change Log for details)
#
# Some of this code was inspired from automysqlbackup.sh.2.0
# http://sourceforge.net/projects/automysqlbackup/
#
#=====================================================================
# Change Log
#=====================================================================
#
# VER 1.3 - (2006-12-02)
# Added --host=$DBHOST in mysql commands, so it's useful for non-localhost situations
# Jake Carr
# VER 1.2 - (2006-10-29)
# Added "\`" arround the tables in $DBTABLES, otherwise it'll create
# errors if tablenames containt characters like -.
# Modified by Mickael Sundberg
# VER 1.1 - (2005-02-22)
# Named script automysqlcheck.sh
# Added PATH variable to make this script more CRON friendly
# Removed the $DBTABLES loop and replaced it with single command
# that executes the CHECK TABLE command on all tables in a given DB
# Changed code to only check MyISAM and InnoDB tables
# Cleaned up output to make the email prettier
# Modified script to skip databases that have no tables
# Modified by eyechart
# VER 1 - (2004-09-24)
# Initial release by sbray@csc.uvic.ca
# system variables (change these according to your system)
PATH=/usr/local/bin:/usr/bin:/bin:$PATH
USER=root
PASSWORD="xxx"
DBHOST=localhost
LOGFILE=/var/log/automysqlcheck.log
MAILTO=root@localhost
TYPE1= # extra params to CHECK_TABLE e.g. FAST
TYPE2=
CORRUPT=no # start by assuming no corruption
DBNAMES="all" # or a list delimited by space
DBEXCLUDE="" # or a list delimited by space
# I/O redirection...
touch $LOGFILE
exec 6[gt][amp]1
exec [gt] $LOGFILE # stdout redirected to $LOGFILE
echo -n "AutoMySQLCheck: "
date
echo "---------------------------------------------------------"; echo; echo
# Get our list of databases to check...
# NOTE: the DBEXCLUDE feature seemed to only work with Linux regex, GNU sed
if test $DBNAMES = "all" ; then
DBNAMES="`mysql --host=$DBHOST --user=$USER --password=$PASSWORD --batch -N -e "show databases"`"
for i in $DBEXCLUDE
do
DBNAMES=`echo $DBNAMES | sed "s/\b$i\b//g"`
done
fi
# Run through each database and execute our CHECK TABLE command for all tables
# in a single pass - eyechart
for i in $DBNAMES
do
# echo the database we are working on
echo "Database being checked:"
echo -n "SHOW DATABASES LIKE '$i'" | mysql -t --host=$DBHOST -u$USER -p$PASSWORD $i; echo
# Check all tables in one pass, instead of a loop
# Use GAWK to put in comma separators, use SED to remove trailing comma
# Modified to only check MyISAM or InnoDB tables - eyechart
DBTABLES="`mysql --host=$DBHOST --user=$USER --password=$PASSWORD $i --batch -N -e "show table status;" | gawk 'BEGIN {ORS=", " } $2 == "MyISAM" || $2 == "InnoDB"{print "\`" $1 "\`"}' | sed 's/, $//'`"
# Output in table form using -t option
if [ ! "$DBTABLES" ]
then
echo "NOTE: There are no tables to check in the $i database - skipping..."; echo; echo
else
echo "CHECK TABLE $DBTABLES $TYPE1 $TYPE2" | mysql --host=$DBHOST -t -u$USER -p$PASSWORD $i; echo; echo
fi
done
exec 1[gt][amp]6 6[gt][amp]- # Restore stdout and close file descriptor #6
# test our logfile for corruption in the database...
for i in `cat $LOGFILE`
do
if test $i = "warning" ; then
CORRUPT=yes
elif test $i = "error" ; then
CORRUPT=yes
fi
done
# Send off our results...
if test $CORRUPT = "yes" ; then
cat $LOGFILE | mail -s "MySQL CHECK Log [ERROR FOUND] for $DBHOST-`date`" $MAILTO
else
cat $LOGFILE | mail -s "MySQL CHECK Log [PASSED OK] for $DBHOST-`date`" $MAILTO
fi
I've been having this message appear whenever I try to do an 'emerge' on a new or existing package on my Gentoo Linux server.
* This profile has not been tested thoroughly and is not considered to be
* a supported server profile at this time. For a supported server
* profile, please check the Hardened project (http://hardened.gentoo.org).
* This profile is merely a convenience for people who require a more
* minimal profile, yet are unable to use hardened due to restrictions in
* the software being used on the server. This profile should also be used
* if you require GCC 4.1 or Glibc 2.4 support. If you don't know if this
* applies to you, then it doesn't and you should probably be using
I used to be getting these messages because I had selected to use the 'server' profile that used to be available - however is wasn't properly supported, but I didn't mind. So I ignored those messsages. However after looking into this recently I found this post:
http://www.uno-code.com/?q=node/102
and noticed that I could easily select a working profile that would not give me that error message:
# eselect profile list
Available profile symlink targets:
[1] default-linux/x86/2006.1 *
[2] default-linux/x86/no-nptl
[3] default-linux/x86/2006.1/desktop
[4] default-linux/x86/2007.0
[5] default-linux/x86/2007.0/desktop
[6] hardened/x86/2.6
[7] selinux/2007.0/x86
[8] selinux/2007.0/x86/hardened
[9] default/linux/x86/2008.0
[10] default/linux/x86/2008.0/desktop
[11] default/linux/x86/2008.0/developer
[12] default/linux/x86/2008.0/no-nptl
[13] default/linux/x86/2008.0/server
[14] hardened/linux/x86
SP2971c var # eselect profile set 9
SP2971c var # eselect profile list
Available profile symlink targets:
[1] default-linux/x86/2006.1
[2] default-linux/x86/no-nptl
[3] default-linux/x86/2006.1/desktop
[4] default-linux/x86/2007.0
[5] default-linux/x86/2007.0/desktop
[6] hardened/x86/2.6
[7] selinux/2007.0/x86
[8] selinux/2007.0/x86/hardened
[9] default/linux/x86/2008.0 *
[10] default/linux/x86/2008.0/desktop
[11] default/linux/x86/2008.0/developer
[12] default/linux/x86/2008.0/no-nptl
[13] default/linux/x86/2008.0/server
[14] hardened/linux/x86
after that I just needed to add a few USE flags (snmp, mailwrapper, 1 or 2 others) that were not in the new (working) profile into /etc/make.conf - and done!
Just saw this - looks great!
http://www.internettablettalk.com/forums/showthread.php?t=18270
With MythTV moving to QT4, which has a wider range of functionality on various devices, plus a whole host of improvements - I think things are definately on the upswing for MythTV.