initial commit; version 22.5.12042
This commit is contained in:
17
scripts/agent-local/hddtemp
Executable file
17
scripts/agent-local/hddtemp
Executable file
@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
# hddtemp sensor readings
|
||||
# needs hddtemp daemon listening on (at least) localhost
|
||||
# requires netcat to be installed and in the path
|
||||
# (c) 2012, Tom Laermans for Observium
|
||||
|
||||
hostname="localhost"
|
||||
port=7634
|
||||
nc=`which nc`
|
||||
|
||||
if [ $? -eq 0 ] && [ `$nc -zv $hostname $port 2>&1 | awk '{print $5}'` = "open" ]
|
||||
then
|
||||
echo '<<<hddtemp>>>'
|
||||
$nc $hostname $port
|
||||
echo
|
||||
fi
|
Reference in New Issue
Block a user