Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Thu Jul 20, 2017 7:56 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Cacti and HDD Temperature
PostPosted: Sat Feb 04, 2017 5:00 pm 
Offline

Joined: Sat Feb 04, 2017 4:51 pm
Posts: 2
Hi all,

I'm trying to get a Cacti graph for my HDD temperature.
The script part is quite easy because smartctl + grep will give you the answer.
A little sudo let cacti user the right to execute the script.

However here comes the hard part. Each times smartctl is call for a drive it reset it's timeout for spin down.
So the only "solution" I've founded is to raise poller interval to 2000 Sec (in field Step of data templace) while I've set HDD spin-down to 1800 sec

The issue is like many other user I get nothing on the graphs with still -nan

I do not find any suitable troubleshooting guide for such a situation.
Cacti is quite simple but get out of issue is very painfull...

Any help is welcomed

Here is the result of my perl scrit launched with cacti user
Code:
bash-4.2$ perl /usr/share/cacti/scripts/query_unix_disks.pl query temp
/dev/sda:44
/dev/sdb:20
/dev/sdc:20
/dev/sdd:48
/dev/sde:49
/dev/sdf:20
/dev/sdg:20
/dev/sdh:48
/dev/sdi:20
/dev/sdj:20
/dev/sdk:20
/dev/sdl:20
/dev/sdm:20
/dev/sdn:20
/dev/sdo:20
/dev/sdp:51
/dev/sdq:41
/dev/sdr:42
/dev/sds:39

20°c means disk is sleeping...


Top
 Profile  
 
 Post subject: Re: Cacti and HDD Temperature
PostPosted: Sun Feb 05, 2017 7:19 am 
Offline

Joined: Sat Feb 04, 2017 4:51 pm
Posts: 2
I've tested with step at 60 it's OK but when I switch to 600, graph no longer display values....


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group