Bug 92259 - Add hostname to the mail report.
Add hostname to the mail report.
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: diskcheck (Show other bugs)
9
All Linux
medium Severity medium
: ---
: ---
Assigned To: Harald Hoyer
: FutureFeature
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-06-04 05:23 EDT by Rudi Heitbaum
Modified: 2007-04-18 12:54 EDT (History)
0 users

See Also:
Fixed In Version: 1.4-4.1
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-06-04 06:20:18 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Rudi Heitbaum 2003-06-04 05:23:12 EDT
Patch to add hostname in the mail report. On sites with a large number of 
hosts, the disk issues can easily be detected.


*** /tmp/diskcheck      Tue Nov  5 22:40:57 2002
--- /etc/cron.hourly/diskcheck  Wed Jun  4 18:58:37 2003
***************
*** 269,275 ****
  
  message.append("To: %s\n" % conf['mailTo'])
  message.append("From: %s\n" % conf['mailFrom'])
! message.append("Subject: Low disk space warning\n\n")
  
  message.append("Disk usage for %s:\n\n" % hostname)
  
--- 269,275 ----
  
  message.append("To: %s\n" % conf['mailTo'])
  message.append("From: %s\n" % conf['mailFrom'])
! message.append("Subject: Low disk space warning - %s\n\n" % hostname)
  
  message.append("Disk usage for %s:\n\n" % hostname)
Comment 1 Harald Hoyer 2003-06-04 05:29:03 EDT
good point... will do :)

Note You need to log in before you can comment on or make changes to this bug.