From 69fcf75ce0b4be292960b00db344bf472900b425 Mon Sep 17 00:00:00 2001 From: ballen4705 <ballen4705@4ea69e1a-61f1-4043-bf83-b5c94c648137> Date: Thu, 24 Oct 2002 09:57:55 +0000 Subject: [PATCH] log message for failed attribute suggests next action git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@101 4ea69e1a-61f1-4043-bf83-b5c94c648137 --- sm5/smartd.c | 5 +++-- sm5/smartd.cpp | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/sm5/smartd.c b/sm5/smartd.c index 675f7a741..162e0cfd4 100644 --- a/sm5/smartd.c +++ b/sm5/smartd.c @@ -37,7 +37,7 @@ #include "ataprint.h" extern const char *CVSid1, *CVSid2; -const char *CVSid3="$Id: smartd.c,v 1.17 2002/10/24 09:54:02 ballen4705 Exp $" +const char *CVSid3="$Id: smartd.c,v 1.18 2002/10/24 09:57:55 ballen4705 Exp $" CVSID1 CVSID4 CVSID7; int daemon_init(void){ @@ -242,7 +242,8 @@ int ataCheckDevice( atadevices_t *drive){ // See if any vendor attributes are below minimum, and print them out if ((failed=ataCheckSmart(tempsmartval,tempsmartthres,1))){ ataPrintSmartAttribName(attributename,failed); - printout(LOG_CRIT,"Device: %s, Failed attribute: %s\n",drive->devicename,attributename); + printout(LOG_CRIT,"Device: %s, Failed attribute: %s. Use smartctl -v to investigate.\n", + drive->devicename,attributename); } // WHEN IT WORKS, we should here add a call to ataSmartStatus2() diff --git a/sm5/smartd.cpp b/sm5/smartd.cpp index 513cb7dac..9c6ef7d0a 100644 --- a/sm5/smartd.cpp +++ b/sm5/smartd.cpp @@ -37,7 +37,7 @@ #include "ataprint.h" extern const char *CVSid1, *CVSid2; -const char *CVSid3="$Id: smartd.cpp,v 1.17 2002/10/24 09:54:02 ballen4705 Exp $" +const char *CVSid3="$Id: smartd.cpp,v 1.18 2002/10/24 09:57:55 ballen4705 Exp $" CVSID1 CVSID4 CVSID7; int daemon_init(void){ @@ -242,7 +242,8 @@ int ataCheckDevice( atadevices_t *drive){ // See if any vendor attributes are below minimum, and print them out if ((failed=ataCheckSmart(tempsmartval,tempsmartthres,1))){ ataPrintSmartAttribName(attributename,failed); - printout(LOG_CRIT,"Device: %s, Failed attribute: %s\n",drive->devicename,attributename); + printout(LOG_CRIT,"Device: %s, Failed attribute: %s. Use smartctl -v to investigate.\n", + drive->devicename,attributename); } // WHEN IT WORKS, we should here add a call to ataSmartStatus2() -- GitLab