Re: Getting alarms using lm-sensors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> -----Original Message-----
> From: Jean Delvare [mailto:khali@xxxxxxxxxxxx]
> Sent: Saturday, November 17, 2012 2:13 AM
> To: Leslie Rhorer
> Cc: 'Guenter Roeck'; lm-sensors@xxxxxxxxxxxxxx
> Subject: Re:  Getting alarms using lm-sensors
> >
> > echo "$TID $ATEXT  Value: $F2" | mail -a From:sensor_monitor -s "RAID-
> Server
> > Sensor Event Notification" xxxxxxxxxx@xxxxxxxxxxxxx
> 
> This is an UTF8 vs. non-UTF8 issue. You are running "sensors" with an
> UTF8 locale, but the e-mail you send apparently lacks proper encoding
> information. This can be solved in two ways: either set the locale to
> non-UTF8 when you run "sensors" (LANG=en_US sensors), or add some
> encoding parameter to the mail command (my version claims utf-8 to be
> the default but apparently that's not your case.)
> 
> --
> Jean Delvare

OK, this works:

mail -a "Content-Type: text/plain; charset=UTF-8" -a From:sensor_monitor -s
"RAID-Server Sensor Event Notification" ...

Would you guys be interested in me posting the script for future reference?
 



_______________________________________________
lm-sensors mailing list
lm-sensors@xxxxxxxxxxxxxx
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors


[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux