Portál AbcLinuxu, 7. května 2025 01:21
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 $fanRPMCoz 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.