Skip to content

Commit

Permalink
Update inodealert.py changing errors on e-mail and log messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
ataliba committed May 21, 2012
1 parent f963aa4 commit f413363
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inodealert/inodealert.py
Expand Up @@ -85,10 +85,10 @@ def SendEmail(error, message):
SendEmail('You had reached 75% of you filesystem inodes','You had reached 75% of your filesystem inodes. You need to clean some files.')
sh.logger("InodeAlert This is a warning: You had reached 75% of you filesystem inodes")
elif Percent > 85:
SendEmail('You had reached 85% of you filesystem inodes','You had reached 75% of your filesystem inodes. You need to clean some files.')
SendEmail('You had reached 85% of you filesystem inodes','You had reached 85% of your filesystem inodes. You need to clean some files.')
sh.logger("InodeAlert This is a warning: You had reached 85% of you filesystem inodes")
elif Percent > 90:
SendEmail('You had reached 90% of you filesystem inodes','You had reached 75% of your filesystem inodes. You need to clean some files.')
SendEmail('You had reached 90% of you filesystem inodes','You had reached 90% of your filesystem inodes. You need to clean some files.')
sh.logger("InodeAlert Critical: You had reached 90% of you filesystem inodes")
else:
sh.logger("InodeAlert The number of inodes on your system are ok ")
Expand Down

0 comments on commit f413363

Please sign in to comment.