HDD Health (S.M.A.R.T.) monitoring script
Moderators: Developers, Moderators
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 (123.37 KiB) Viewed 5321 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]
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]
Not to sound like an ass, but did you read the readme.txt?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
I have the same error .. i use cacti 0.8.6 g ...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 FileHow could I be screwing the import up... it seems pretty easy from your readme.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
I can only assume you are referring to the following section of your readme...
Thanks.
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?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.
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]
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]
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.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
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...
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]
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]
Please note the following command is frowned upon by people who develop in perl, but it does what is needed.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?
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;
- TheWitness
- Developer
- Posts: 17062
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Here are the repaired templates.
TheWitness
TheWitness
- Attachments
-
- hddhealth.zip
- (50.61 KiB) Downloaded 397 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?
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?
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
BSOD, I want a copy of the database that contains this template.
Please email it to me.
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]
[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]
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.rony wrote:BSOD, I want a copy of the database that contains this template.
Please email it to me.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
-
- Posts: 2
- Joined: Wed Feb 29, 2012 3:27 am
Re: HDD Health (S.M.A.R.T.) monitoring script
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.
Re: HDD Health (S.M.A.R.T.) monitoring script
I can put smartmontools on my todo list, but wouldn't expect it any time soon.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
-
- Posts: 2
- Joined: Wed Feb 29, 2012 3:27 am
Re: HDD Health (S.M.A.R.T.) monitoring script
Ok thank You very much;). I will wait;) Cheers
Who is online
Users browsing this forum: No registered users and 2 guests