HDD Health (S.M.A.R.T.) monitoring script

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

jengstro
Cacti User
Posts: 156
Joined: Tue Nov 15, 2005 12:14 pm

Post by jengstro »

ok... so new issue... What information do I need to provide for the following image when adding the graph template to a device?
Attachments
hddhealth1.JPG
hddhealth1.JPG (123.37 KiB) Viewed 5325 times
[size=75]Cacti - 0.8.6h + patches
PHP - 5.1.2
ZendOptimizer - 2.6.2
FastCGI - 0.6
MySQL - 4.1.15
Cactid - 0.8.6g
rrdtool - 1.2.x
IIS6[/size]
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Not to sound like an ass, but did you read the readme.txt?
driden91
Cacti User
Posts: 52
Joined: Fri Jan 20, 2006 10:38 am

Post by driden91 »

jengstro wrote:Having trouble importing the templates for some reason I am getting unmet dependancies...
Cacti has imported the following items:

Round Robin Archive
[success] Daily (5 Minute Average) [update]
[success] Weekly (30 Minute Average) [update]
[success] Monthly (2 Hour Average) [update]
[success] Yearly (1 Day Average) [update]

GPRINT Preset
[success] Normal [update]

Data Input Method
[success] Win32 - HDD Health (local) [update]

Data Template
[success] Win32 - HDD Health (local) [update]
+ Found Dependency: (Data Input Method) Win32 - HDD Health (local)
+ Found Dependency: (Data Input Field) RawReadErrorRate
+ Found Dependency: (Data Input Field) StartStopCount
+ Found Dependency: (Data Input Field) SpinUpTime
+ Found Dependency: (Data Input Field) ReallocatedSectorCount
+ Found Dependency: (Data Input Field) SeekErrorRate
+ Found Dependency: (Data Input Field) PowerOnHoursCount
+ Found Dependency: (Data Input Field) SpinRetryCount
+ Found Dependency: (Data Input Field) CalibrationRetryCount
+ Found Dependency: (Data Input Field) PowerCycleCount
+ Found Dependency: (Data Input Field) Temperature
+ Found Dependency: (Data Input Field) ReallocationEventCount
+ Found Dependency: (Data Input Field) CurrentPendingSectorCoun
+ Found Dependency: (Data Input Field) Off-lineScanUncorrectable
+ Found Dependency: (Data Input Field) UltraATACRCErrorCount
+ Found Dependency: (Data Input Field) WriteErrorRate
+ Found Dependency: (Data Input Field) ReadChannelMargin
+ Found Dependency: (Data Input Field) SeekTimePerformance
+ Found Dependency: (Data Input Field) PoweroffRetractCount
+ Unmet Dependency: (Data Input Field)
+ Found Dependency: (Data Input Field) TACounterDetected
+ Found Dependency: (Data Input Field) TACounterIncreased
+ Found Dependency: (Data Input Field) HardwareECCrecovered
+ Found Dependency: (Data Input Field) HDD Data File
+ Found Dependency: (Data Input Field) HDD Report File

Graph Template
[success] Win32 - HDD Health [update]
Cacti has imported the following items:

Round Robin Archive
[success] Daily (5 Minute Average) [update]
[success] Weekly (30 Minute Average) [update]
[success] Monthly (2 Hour Average) [update]
[success] Yearly (1 Day Average) [update]

Data Input Method
[success] Win32 - HDD Health (local) [update]

Data Template
[success] Win32 - HDD Health (local) [update]
+ Found Dependency: (Data Input Method) Win32 - HDD Health (local)
+ Found Dependency: (Data Input Field) RawReadErrorRate
+ Found Dependency: (Data Input Field) StartStopCount
+ Found Dependency: (Data Input Field) SpinUpTime
+ Found Dependency: (Data Input Field) ReallocatedSectorCount
+ Found Dependency: (Data Input Field) SeekErrorRate
+ Found Dependency: (Data Input Field) PowerOnHoursCount
+ Found Dependency: (Data Input Field) SpinRetryCount
+ Found Dependency: (Data Input Field) CalibrationRetryCount
+ Found Dependency: (Data Input Field) PowerCycleCount
+ Found Dependency: (Data Input Field) Temperature
+ Found Dependency: (Data Input Field) ReallocationEventCount
+ Found Dependency: (Data Input Field) CurrentPendingSectorCoun
+ Found Dependency: (Data Input Field) Off-lineScanUncorrectable
+ Found Dependency: (Data Input Field) UltraATACRCErrorCount
+ Found Dependency: (Data Input Field) WriteErrorRate
+ Found Dependency: (Data Input Field) ReadChannelMargin
+ Found Dependency: (Data Input Field) SeekTimePerformance
+ Found Dependency: (Data Input Field) PoweroffRetractCount
+ Unmet Dependency: (Data Input Field)
+ Found Dependency: (Data Input Field) TACounterDetected
+ Found Dependency: (Data Input Field) TACounterIncreased
+ Found Dependency: (Data Input Field) HardwareECCrecovered
+ Found Dependency: (Data Input Field) HDD Data File
+ Found Dependency: (Data Input Field) HDD Report File
Cacti has imported the following items:

Round Robin Archive
[success] Daily (5 Minute Average) [update]
[success] Weekly (30 Minute Average) [update]
[success] Monthly (2 Hour Average) [update]
[success] Yearly (1 Day Average) [update]

Data Input Method
[success] Win32 - HDD Health (remote) [update]

Data Template
[success] Win32 - HDD Health (remote) [update]
+ Found Dependency: (Data Input Method) Win32 - HDD Health (remote)
+ Unmet Dependency: (Data Input Field)
+ Unmet Dependency: (Data Input Field) PoweroffRetractCount
+ Unmet Dependency: (Data Input Field) SeekTimePerformance
+ Unmet Dependency: (Data Input Field) ReadChannelMargin
+ Unmet Dependency: (Data Input Field) WriteErrorRate
+ Unmet Dependency: (Data Input Field) UltraATACRCErrorCount
+ Unmet Dependency: (Data Input Field) Off-lineScanUncorrectable
+ Unmet Dependency: (Data Input Field) CurrentPendingSectorCoun
+ Unmet Dependency: (Data Input Field) ReallocationEventCount
+ Unmet Dependency: (Data Input Field) Temperature
+ Unmet Dependency: (Data Input Field) PowerCycleCount
+ Found Dependency: (Data Input Field) CalibrationRetryCount
+ Unmet Dependency: (Data Input Field) SpinRetryCount
+ Unmet Dependency: (Data Input Field) PowerOnHoursCount
+ Unmet Dependency: (Data Input Field) SeekErrorRate
+ Unmet Dependency: (Data Input Field) ReallocatedSectorCount
+ Unmet Dependency: (Data Input Field) StartStopCount
+ Unmet Dependency: (Data Input Field) SpinUpTime
+ Unmet Dependency: (Data Input Field) RawReadErrorRate
+ Unmet Dependency: (Data Input Field) TACounterDetected
+ Unmet Dependency: (Data Input Field) TACounterIncreased
+ Unmet Dependency: (Data Input Field) HardwareECCrecovered
+ Found Dependency: (Data Input Field) HDD Data File (*.hdd)
+ Found Dependency: (Data Input Field) HDD Report File (*.txt)
+ Found Dependency: (Data Input Field) Remote Computer
How could I be screwing the import up... it seems pretty easy from your readme. :(
I have the same error .. i use cacti 0.8.6 g ...
jengstro
Cacti User
Posts: 156
Joined: Tue Nov 15, 2005 12:14 pm

Post by jengstro »

Yes BSOD but I will look over it again.
[size=75]Cacti - 0.8.6h + patches
PHP - 5.1.2
ZendOptimizer - 2.6.2
FastCGI - 0.6
MySQL - 4.1.15
Cactid - 0.8.6g
rrdtool - 1.2.x
IIS6[/size]
jengstro
Cacti User
Posts: 156
Joined: Tue Nov 15, 2005 12:14 pm

Post by jengstro »

I can only assume you are referring to the following section of your readme...
5. Create the following output fields. These are the common fields I found that my various computers/hard drives used. If the computers you monitor do not have any of these fields, one can leave them out. Conversely, one can add fields that are not present to be monitored. Just remember to add them to the data templates and graph too. If you do add new ones, pay attention to how the script outputs the name.
I have read over this several times but cannot get the idea. Any chance you might clarify it a bit? So do I remove the output fields above? How do I figure out was output fields to use if not these?

Thanks.
[size=75]Cacti - 0.8.6h + patches
PHP - 5.1.2
ZendOptimizer - 2.6.2
FastCGI - 0.6
MySQL - 4.1.15
Cactid - 0.8.6g
rrdtool - 1.2.x
IIS6[/size]
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You need to look in your HDD Health directory for the files to use. The HDD report file is the name of the hard drive (ex: WDC WD740GD-75FLA1.txt). The HDD data file is the serial number of the hard drive (ex: WD-WMAKE1359731.hdd). You can find it either in the HDD report file or inside HDD Health.
jengstro
Cacti User
Posts: 156
Joined: Tue Nov 15, 2005 12:14 pm

Post by jengstro »

Where I unzipped the script? There are no txt files that I can find in the cacti directory or the unzipped script directory.

Sorry but I still am confused for some reason.

What do you mean by...
or inside HDD Health.
[size=75]Cacti - 0.8.6h + patches
PHP - 5.1.2
ZendOptimizer - 2.6.2
FastCGI - 0.6
MySQL - 4.1.15
Cactid - 0.8.6g
rrdtool - 1.2.x
IIS6[/size]
jengstro
Cacti User
Posts: 156
Joined: Tue Nov 15, 2005 12:14 pm

Post by jengstro »

Oh hell... you need to have a 2rd party application installed? Damn I am slow at times!
[size=75]Cacti - 0.8.6h + patches
PHP - 5.1.2
ZendOptimizer - 2.6.2
FastCGI - 0.6
MySQL - 4.1.15
Cactid - 0.8.6g
rrdtool - 1.2.x
IIS6[/size]
tsunam
Posts: 8
Joined: Tue Feb 28, 2006 11:24 pm

Post by tsunam »

Onkel_Tom wrote:It would be very nice to have smartmontools under Linux also working with cacti. Does somebody work on that and also want to share?
Please note the following command is frowned upon by people who develop in perl, but it does what is needed.

It's actually easy enough to script for what you want. And easy to expand with perl if you want more. I just wanted two seperate ones for Power_On hours and temp of the drive. The following is the code I use to get info for my temp.

Please note, that I added my user that that will run smartctl to the sudoers file with only permission to run that single command. So that I don't get a permission denied(slightly important as you actually want to get values)

#!/usr/bin/perl
my $output = `sudo /usr/sbin/smartctl -a /dev/hda | grep -i temperature | awk '{print \$10}'`;
print $output;
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Here are the repaired templates.

TheWitness
Attachments
hddhealth.zip
(50.61 KiB) Downloaded 398 times
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

BSOD, I want a copy of the database that contains this template.

Please email it to me.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

rony wrote:BSOD, I want a copy of the database that contains this template.

Please email it to me.
That'll have to wait another 2+ weeks when I'm back at college. Forget exactly what version I started to use Cacti... Whatever version was out around 08 May 2004. Been upgrading ever since.
Vampire1984
Posts: 2
Joined: Wed Feb 29, 2012 3:27 am

Re: HDD Health (S.M.A.R.T.) monitoring script

Post by Vampire1984 »

Hi. Well the newest hdd health cannot be used as commercial use.. And what i saw that program cannot generate reports, there is no option to create report as *.txt and *.hdd(searched the whole disks for that files). Can u rewrite a script to use for example smartmontools(windows version) or crystal disk info? The script is old,dont work and i didnt find any working alternate solution on windows hosts.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: HDD Health (S.M.A.R.T.) monitoring script

Post by BSOD2600 »

I can put smartmontools on my todo list, but wouldn't expect it any time soon.
Vampire1984
Posts: 2
Joined: Wed Feb 29, 2012 3:27 am

Re: HDD Health (S.M.A.R.T.) monitoring script

Post by Vampire1984 »

Ok thank You very much;). I will wait;) Cheers
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests