I just installed lm-sensor in my terminal and it's working, however i really don't know how to analyze what I have, Any help will be appreciated, Thanks
Here is the reading in my terminal,
sensors
acpitz-virtual-0
Adapter: Virtual device
temp1: +40.0°C (crit = +124.0°C)
You could setup a cron job that runs lm-sensor and puts the into a temporary log file and then continue in the same script to compare the values given with what the upper thresholds should be, e.g. using the temp1 line:
Crude and only handles integer temperatures.
The logger line could of course send an email.
Okay, if you save the above script as say /usr/local/sbin/lm_sensor_temperature_check.sh with the lines:
#!/bin/ksh
or
#!/bin/bash
as the very first line to specify what shell the script is to run in. Run:
to make it executable.
Add a line to root crontab to run this script once an hour do the following:
This will now run every hour and if the temp1 line from lm_sensor indicates that the measured temperature is above the 124 critical temperature then it will add a line to the /var/log/syslog log file (check the /etc/syslog.conf log to confirm where the alarm you select gets logged to) that you can then get HP OVO of BMC patrol (or whatever system monitoring software you are using) to look for the "temp1 is too high" string and raise an alert, or else you could replace the "logger -p" line in the script with a line to send an email somewhere, e.g.:
Last edited by TonyFullerMalv; 04-11-2009 at 11:52 AM..
I was able to enable the Mosquitto MQTT using instructable
Now I need to communicate my new wireless sensor to communicate with Mosquito in such a way that it will display tracker in which it shows the readings of sensor,
Also need to know how can to display the notification on smartphones... (0 Replies)
Hello All,
I have a text file containing output from a command that contains lots of escape/control characters that when viewed using vi or view, looks like jibberish. But when viewed using the cat command the output is formatted properly.
Is there any way to take the output from the cat... (7 Replies)
I have been having an extremely annoying problem. For the record, I am relatively new at this. I've only been working with unix-based OS's for roughly two years, mostly Xubuntu and some Kali. I am pretty familiar with the BASH language, as that's the default shell for debian. Now, I've made this... (16 Replies)
Hello,
I am trying to get some information from the sensors on my pc. But i get confuse with what i get.
I don t know where to find out which sensors watches what..
I use "sensors" under ubuntu 10.10.
Here is the result of the cmd line sudo sensors.
the temp 3 indicates 79°C which... (0 Replies)
This Expect script provides expect with a list of IP addresses to Cisco IPS sensors and commands to configure Cisco IPS sensors. The user, password, IP addresses, prompt regex, etc. have been anonymized. In general this script will log into the sensors and send commands successfully but there are... (1 Reply)
Hi,
I installed ubuntu recently on my pc. And I installed gnuplot as well.
When I first started working with gnuplot it was working . I did a plot and when I wanted to fit my data something happened and not the default terminal of gnuplot is xwt!
I changed it to: set terminal x11, but it... (0 Replies)
I am trying to automate a SSH login using Keys using the following command
ssh -i id_rsa usernamw@ipaddr.
I am successful in doing this and i am getting the Warning Screen and I logon successfully.
but when I am executing the command
tail -1cf put.dat | ssh -i id_rsa username@ipaddr > get.dat ... (1 Reply)
I just changed from windows NT to XP and I am no longer able
to connect to my unix system. I used to use hyper terminal -- which acts as dumb terminal to my main frame unix system. I think one of the options used to be "direct to comX". This option isn't listed now. I use a serial port and the... (2 Replies)