Portál AbcLinuxu, 3. listopadu 2025 12:00
check program FAN with path "/etc/monit/scripts/fan.sh"
if status > 2000 then alert
if status < 100 then alert
group health
#!/bin/sh
fanRPM=`sensors | grep fan1 | awk '{print $2}'`
#echo $fanRPM
exit $fanRPM
Coz samozrejme nebude fungovat, protoze bash -c 'exit 1000'; echo $? bude uplne jina hodnota, zejo. Mate nekdo doporuceni pro tento pripad? Chci to resit v monitu, nechci to resit v case a v jinem sw, napriklad v muninu. Diky
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.