Hello,
Thank you again for the wonderful product you have put out. I have two feature requests.
First, It would be nice if the monitoring scripts sent email to my regular email account. I started trying to do this myself to my gmail account but I've been stumped. If someone could automate this it would really enhance the trust in the system.
Second, If there were an option to turn off dhcp it would be great. When my comcast router locks up (seems like monthly) it resets to dhcp on. When I gethome I can turn it off but it really bothers my wife.
Wonderful product though!
Send system messages to outside email
Re: Send system messages to outside email
you can create a crontab entry for root that runs every /hour/day/week/month/.
the entry could look like this:
tail -n 200 is for the last 200 entries in /var/log/messages, you can change this to whatever you want (different numbers, different logfiles, etc), read "man tail" for more info
basically what the above script does is read all the output of the commands listed until it reaches a "where point" - in this case the string "eof" - and puts it in the body of a mail. it then mails it to the recipient mentioned with the subject "logfiles hda".
the entry could look like this:
Code: Select all
mail -s 'logfiles hda' your_account@domain.com <<eof
$(tail -n 200 /var/log/messages)
eof
basically what the above script does is read all the output of the commands listed until it reaches a "where point" - in this case the string "eof" - and puts it in the body of a mail. it then mails it to the recipient mentioned with the subject "logfiles hda".
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD
Re: Send system messages to outside email
Thank you moredruid. I tried that and believe it will work just fine if I could get sendmail configured appropriately. Deciphering how to get sendmail to talk to gmails smtp server is my problem. I've been googling but still failing. I was thinking that if someone who knew sendmail well could use the email address used to register amahi as the forwarding link it would be a nifty feature.
Re: Send system messages to outside email
nice sendmail tutorial with your answer here:
http://cri.ch/linux/docs/sk0009.html
or other way to try here:
https://www.linuxquestions.org/question ... er-102886/
http://cri.ch/linux/docs/sk0009.html
or other way to try here:
https://www.linuxquestions.org/question ... er-102886/
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD
Who is online
Users browsing this forum: No registered users and 30 guests