![]() The Enterprise- Class Open Source Network Monitoring Solution. Zabbix is the ultimate enterprise- level software designed for real- time monitoring of millions of metrics collected from tens of thousands of servers, virtual machines and network devices. Zabbix is Open Source and comes at no cost. There is an excellent little utility to monitor hard drive temperature. Most modern computer hard disk comes with S. M. A. R. T (Self- Monitoring, Analysis, and Reporting Technology). ![]() Install And Configure Exchange 2013It is a monitoring system for computer hard disks to detect and report on various indicators of reliability, in the hope of anticipating failures. The hddtemp utility will give you the temperature of your hard drive by reading data from S. M. A. R. T. on drives that support this feature. Only modern hard drives have a temperature sensor. S. M. A. R. T. information from SCSI drives too. How to monitor system temperature on Linux Author . $./configure $ make $ sudo make install. Run the following command to launch hddtemp as a daemon. Zabbix is a mature and effortless enterprise-class open source monitoring solution for network monitoring and application monitoring of millions of metrics. Linux: Monitor Hard Disks Temperature With hddtemp. Install hddtemp. You need to run hddtemp in daemon mode. ![]() Install hddtemp. To install hddtemp under a Debian / Ubuntu Linux use apt- get command/apt command: $ sudo apt- get install hddtemp. Sample outputs: Reading package lists.. Done. Building dependency tree. Reading state information.. Done. Suggested packages. The following NEW packages will be installed. Need to get 5. 7. B of archives. After this operation, 1. B of additional disk space will be used. Get: 1 http: //cdn- fastly. B]. Fetched 5. 7. B in 2s (2. 2. 6 k. Install And Configure Scanning SoftwareB/s). Preconfiguring packages .. Selecting previously unselected package hddtemp. Reading database .. Preparing to unpack ../hddtemp_0. Unpacking hddtemp (0. Setting up hddtemp (0. Processing triggers for systemd (2. Processing triggers for man- db (2. To install hddtemp under a Cent. OS/RHEL/SL/Oracle Linux, run yum command (first turn on EPEL repo): $ sudo yum install hddtemp. Type the following pacman command to install hddtemp under an Arch Linux distro: $ sudo pacman - S hddtemp. Type the following dnf command to install hddtemp under a Fedora Linux distro: $ sudo dnf install hddtemp. Type the following zypper command to install hddtemp under an Open. SUSE Linux distro : $ sudo zypper install hddtemp. A note about source code installation. You can also perform source code installation. Download the source code tar ball here.$ wget http: //download. Untar and install hddtemp using the following commands: $ tar - jxvf hddtemp- 0. Install hard disk temperature database at /usr/share/misc or /etc directory: $ cd /usr/share/misc# wget http: //download. How do I monitor hard disk temperature? To see temperature for /dev/sda, enter the following command: $ hddtemp /dev/sda. Sample outputs/dev/sda: WDC WD2. YS- 0. 1SHB1: 2. 5°CAbove output indicate that my hard disk temperature is 2. C. If temperature is higher than 6. C , consider cooling options immediately. How Do I Find Out Remote Server HDD Temperature? By default hddtemp bind to TCP/IP port 7. You need to run hddtemp in daemon mode. Login on remote box and start it as follows to monitor /dev/sda, /dev/sdb, /dev/sdc, and /dev/sdd: # hddtemp - d /dev/sd[abcd]Use telnet or nc / netcat command to to get a temperature from a remote box: $ telnet remotebox 7. OR$ nc 1. 92. 1. 68. Sample outputs: |/dev/sda|Samsung SSD 8. EVO m. SATA 5. 00. GB|4. 5|C|You can format it as follows using the awk command: nc centos. F'|' '{print $2 " " $4 $5 "(" $3 ")"}'Sample outputs: /dev/sda 4. C(Samsung SSD 8. 50 EVO m. SATA 5. 00. GB)Shutdown Linux Computer If Temperature > = 5. To power off / shutdown computer, run following command via cron tab (cron job) file: t=$(hddtemp /dev/sda - -numeric)[ $t - ge 5. Sample shell script to shutdown box if temperature > = 5. C (download link): #!/bin/bash# Purpose: Shutdown server if disk temp crossed $ALERT_LEVEL# Author: Vivek Gite {https: //www. GPL v. 2. x# - -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- HDDS="/dev/sda /dev/sdb /dev/sdc /dev/sdc /dev/sdd /dev/sde"HDT=/usr/sbin/hddtemp. LOG=/usr/bin/logger. DOWN=/sbin/shutdown. ALERT_LEVEL=6. 0for disk in$HDDSdoif[- b$disk]; then. HDTEMP=$(${HDT}- -numeric${disk})if[$HDTEMP- ge$ALERT_LEVEL]. LOG"System going down as hard disk \"$disk\" temperature ($HDTEMP) crossed its limit."sync; sync$DOWN- h. Purpose: Shutdown server if disk temp crossed $ALERT_LEVEL. Author: Vivek Gite {https: //www. GPL v. 2. x. # - -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- . HDDS="/dev/sda /dev/sdb /dev/sdc /dev/sdc /dev/sdd /dev/sde". HDT=/usr/sbin/hddtemp. LOG=/usr/bin/logger. DOWN=/sbin/shutdown. HDDS. if [ - b $disk ]; then. HDTEMP=$( ${HDT} - -numeric ${disk} ). HDTEMP - ge $ALERT_LEVEL ]. LOG "System going down as hard disk \"$disk\" temperature ($HDTEMP) crossed its limit.". You can run script using a cron job on Linux or Unix- like system: $ sudo crontab - e. Append the following to run cron job every 1. Say hello to smartctl Utility. If you have smartctl utility installed, try it as follows to get temperature data: # smartctl - d ata - A /dev/sda | grep - i temperature. Output: 1. 94 Temperature_Celsius 0x. Old_age Always - 2. Set ALERT_LEVEL as per your requirements. Please refer to your hard disk manual for working temperature guideline. Here is general temperature guideline (extracted from Seagate SV3. Series Hard Drives Web Page): Operating 0 to 6. CNonoperating - 4. CMaximum operating temperature change 2. C per hour. Maximum nonoperating temperature change 3. C per hour. Maximum operating case temperature. CA note for MS- Windows XP / Vista/ 7 / 1. Server Users. Sorry. The hddtemp is UNIX / Linux only program. Further readings. Posted by: Vivek Gite The author is the creator of nix. Craft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
November 2017
Categories |