Jump to content

unraid-overtemp-shutdown generates overly-verbose email


jetkins

Recommended Posts

I've just upgraded to unMenu 1.3 and installed unraid-overtemp-shutdown.  I've been testing overtemp by specifying thresholds below normal operating temperature, and while the warning email and automatic shutdown processes both work fine, the generated emails are excessivly verbose.  Where I would expect one status line for each drive, instead it seems to be iterating the same information almost endlessly - over 2000 lines and 74k of text for six drives!

 

Here's the first couple of iterations.  Anyone have any idea how to rein it in?

 

Subject:EMERGENCY unRaid Overtemp Shutdown Warning
Date: Wed Nov  3 13:45:03 CDT 2010
Server Name: Tower
Server IP: 192.168.0.8
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1NC4L temperature is 40C
.
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1RW26 temperature is 40C
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1NC4L temperature is 40C
.
.
   disk /dev/disk/by-id/ata-ST31500541AS_6XW01X0V temperature is 34C
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1NC4L temperature is 40C
.
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1RW26 temperature is 40C
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1NC4L temperature is 40C
.
.
.
   disk /dev/disk/by-id/ata-ST31500541AS_9XW0DVCD temperature is 34C
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1NC4L temperature is 40C
.
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1RW26 temperature is 40C
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1NC4L temperature is 40C
.
.
   disk /dev/disk/by-id/ata-ST31500541AS_6XW01X0V temperature is 34C
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1NC4L temperature is 40C
.
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1RW26 temperature is 40C
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1NC4L temperature is 40C
.
.
.
.
   disk /dev/disk/by-id/ata-ST3160827AS_4LJ1JF63 temperature is 34C
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1NC4L temperature is 40C
.
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1RW26 temperature is 40C
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1NC4L temperature is 40C
.
.
   disk /dev/disk/by-id/ata-ST31500541AS_6XW01X0V temperature is 34C
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1NC4L temperature is 40C
.
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1RW26 temperature is 40C
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1NC4L temperature is 40C
.
.
.
   disk /dev/disk/by-id/ata-ST31500541AS_9XW0DVCD temperature is 34C
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1NC4L temperature is 40C
.
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1RW26 temperature is 40C
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1NC4L temperature is 40C
.
.
   disk /dev/disk/by-id/ata-ST31500541AS_6XW01X0V temperature is 34C
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1NC4L temperature is 40C
.
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1RW26 temperature is 40C
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1NC4L temperature is 40C
.
.
.
.
.
** disk /dev/disk/by-id/scsi-SATA_ST31500341AS_9VS1NC4L temperature is 40C
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1NC4L temperature is 40C
.
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1RW26 temperature is 40C
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1NC4L temperature is 40C
.
.
   disk /dev/disk/by-id/ata-ST31500541AS_6XW01X0V temperature is 34C
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1NC4L temperature is 40C
.
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1RW26 temperature is 40C
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1NC4L temperature is 40C
.
.
.
   disk /dev/disk/by-id/ata-ST31500541AS_9XW0DVCD temperature is 34C
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1NC4L temperature is 40C
.
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1RW26 temperature is 40C
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1NC4L temperature is 40C
.
.
   disk /dev/disk/by-id/ata-ST31500541AS_6XW01X0V temperature is 34C
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1NC4L temperature is 40C
.
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1RW26 temperature is 40C
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1NC4L temperature is 40C
.
.
.
.
   disk /dev/disk/by-id/ata-ST3160827AS_4LJ1JF63 temperature is 34C
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1NC4L temperature is 40C
.
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1RW26 temperature is 40C
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1NC4L temperature is 40C
.
.
   disk /dev/disk/by-id/ata-ST31500541AS_6XW01X0V temperature is 34C
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1NC4L temperature is 40C
.
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1RW26 temperature is 40C
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1NC4L temperature is 40C
.
.
.
   disk /dev/disk/by-id/ata-ST31500541AS_9XW0DVCD temperature is 34C
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1NC4L temperature is 40C
.
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1RW26 temperature is 40C
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1NC4L temperature is 40C
.
.
   disk /dev/disk/by-id/ata-ST31500541AS_6XW01X0V temperature is 34C
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1NC4L temperature is 40C
.
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1RW26 temperature is 40C
** disk /dev/disk/by-id/ata-ST31500341AS_9VS1NC4L temperature is 40C
.
.
.
.
.
.
** disk /dev/disk/by-id/scsi-SATA_ST31500341AS_9VS1RW26 temperature is 40C

Link to comment

There should only be one line per disk...

 

What do you get when you type (you'll probably want to cut/paste this):

ls --time-style='+%Y-%m-%d %I:%M%p' /dev/disk/by-id/* -Hl | grep -v plugdev | grep -v "by-id/usb" | grep -v '\-part[1-9]$' | awk '{print $9}'

 

It should return one line per drive.  Apparently, on your server, it is returning much more?

 

What "exactly" did you put in the temperature threshold field?

 

Joe L.

Link to comment
What do you get...?

root@Tower:~# ls --time-style='+%Y-%m-%d %I:%M%p' /dev/disk/by-id/* -Hl | grep -v plugdev | grep -v "by-id/usb" | grep -v '\-part[1-9]$' | awk '{print $9}'
/dev/disk/by-id/ata-ST31500341AS_9VS1NC4L
/dev/disk/by-id/ata-ST31500341AS_9VS1RW26
/dev/disk/by-id/ata-ST31500541AS_6XW01X0V
/dev/disk/by-id/ata-ST31500541AS_9XW0DVCD
/dev/disk/by-id/ata-ST3160827AS_4LJ1JF63
/dev/disk/by-id/scsi-SATA_ST31500341AS_9VS1NC4L
/dev/disk/by-id/scsi-SATA_ST31500341AS_9VS1RW26
/dev/disk/by-id/scsi-SATA_ST31500541AS_6XW01X0V
/dev/disk/by-id/scsi-SATA_ST31500541AS_9XW0DVCD
/dev/disk/by-id/scsi-SATA_ST3160827AS_4LJ1JF63
root@Tower:~#

 

 

What "exactly" did you put in the temperature threshold field?
Exactly "35" and "38" for warning and shutdown respectively.

 

Would I be correct in surmising that the fact that each drive is appearing twice - once as "ata-..." and once as "scsi-SATA_..." is confusing things?

Link to comment

The double entries would just result in two lines per disk.  I got the impression you were seeing much more.

 

Am I correct?  (Not that two lines per disk is right, but I can get rid of the dupes now that I know they might occur in some hardware.)

 

in the event of a temperature warning, it will get your attention, that's for sure. ;)

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...