Thank you, for anyone inerested in doing the same, this is how I got
temperature and voltage to be monitored:
add this to the crontab for whatever user:

* * * * *       /usr/local/bin/sensors > /var/tmp/lm_sensors

add this recipe for monit:

check file lm_sensors with path /var/tmp/lm_sensors
if match "ALARM" then alert


Hopefully soon lm_sensors will be more attractively integrated into monit ;)
Thanks !

On Thu, Mar 6, 2008 at 4:20 PM, Martin Pala <[EMAIL PROTECTED]> wrote:

> Currently there is no native support for reading sensors, but it could
> be added in the future (via IPMI or something similar).
>
>
> Currently you can use the hint described in monit FAQ (question no. 13 -
> example for monitoring Solaris Volume Manager devices by Pavel Urban):
>
> http://www.tildeslash.com/monit/doc/faq.php
>
>
>
> We also plan to add native support for external scripts in the future:
>
> http://www.tildeslash.com/monit/doc/next.php#33
>
>
> Martin
>
>
>
> Patrick Zaloum wrote:
> > Hello,
> > I was wondering if anyone has had any experience linking monit to
> > lm-sensors readouts to monitor for excessively high temperatures, low
> > fan speeds, etc. or if anyone would have an idea how to go about it.
> > Essentially, running 'sensors' provides a readout of your current state
> > as shown below, how could it be watched by monit?
> >
> >     # sensors
> >     w83627dhg-isa-0290
> >     Adapter: ISA adapter
> >     Vcore:     +1.27 V  (min =  +1.15 V, max =  +1.50 V)
> >     +12V:     +11.46 V  (min = +11.40 V, max = +12.62 V)
> >     +3.3V:     +3.22 V  (min =  +3.14 V, max =  +3.47 V)
> >     +5V:       +5.25 V  (min =  +4.66 V, max =  +5.35 V)
> >     CPU Fan:   1811 RPM  (min =  600 RPM, div = 32)
> >     MB Temp:     +32°C  (high =   +50°C, hyst =   +45°C)
> >     CPU Temp:  +31.0°C  (high = +60.0°C, hyst = +50.0°C)
> >     coretemp-isa-0000
> >     Adapter: ISA adapter
> >     Core 0:      +26°C  (high =   +85°C)
> >     coretemp-isa-0001
> >     Adapter: ISA adapter
> >     Core 1:      +29°C  (high =   +85°C)
> >
> >
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > --
> > To unsubscribe:
> > http://lists.nongnu.org/mailman/listinfo/monit-general
>
>
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general
>
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to