Hallo,
bei meinem digitemp funktionieren die Alerts nichts, d.h. es wird keine Email versandt. Hier meine Alert-Zeile:
Doch leider kommen so keine Emails an, obwohl die Temp. mit aktuell 24.1 °C darüber liegt.
Wenn ich auf der Fritzbox direkt folgendes aufrufe, wird die Email versendet (natürlich ohne Wert):
Allerdings enthält die Betreff-Zeile dieses seltsame Zeichen jeweils vor dem Grad-Zeichen:
Hilft das zur Lösung des Problems evtl. weiter? Was/ welche Logs o.ä. kann ich sonst noch liefern?
bei meinem digitemp funktionieren die Alerts nichts, d.h. es wird keine Email versandt. Hier meine Alert-Zeile:
Code:
Wohnzimmer 23 max 60 mailer -t [EMAIL="[email protected]"][email protected][/EMAIL] -s "Wohnzimmer > 23 °C: $1 °C"
Wenn ich auf der Fritzbox direkt folgendes aufrufe, wird die Email versendet (natürlich ohne Wert):
Code:
mailer -t [EMAIL="[email protected]"][email protected][/EMAIL] -s "Wohnzimmer > 23 °C: $1 °C"
Hier der Start von rrdstats:Wohnzimmer > 23 °C: °C
Code:
+ DAEMON=rrdstats
+ PID_FILE=/var/run/rrdstats.pid
+ . /etc/init.d/modlibrc
+ export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/mod/sbin:/mod/bin:/mod/usr/sbin:/mod/usr/bin
+ export LD_LIBRARY_PATH=/mod/lib:/mod/usr/lib
+ [ -z ]
+ DAEMON_LONG_NAME=rrdstats
+ [ -z ]
+ CONF_NAME=rrdstats
+ [ -z ]
+ CONF_ENABLED=rrdstats_ENABLED
+ [ -z ]
+ DAEMON_BIN=rrdstats
+ [ -z /var/run/rrdstats.pid ]
+ [ -n rrdstats ]
+ modlib_loadconfig
+ local CONF_FILE=/mod/etc/conf/rrdstats.cfg
+ [ ! -r /mod/etc/conf/rrdstats.cfg ]
+ . /mod/etc/conf/rrdstats.cfg
+ export RRDSTATS_CPU100PERC=yes
+ export RRDSTATS_DELBACKUP=yes
+ export RRDSTATS_DIGITEMP1W=yes
+ export RRDSTATS_DIGITEMP85=yes
+ export RRDSTATS_DIGITEMPRS=/dev/ttyUSB0
+ export RRDSTATS_DIGITEMP_A=yes
+ export RRDSTATS_DIGITEMP_AUTH=yes
+ export RRDSTATS_DIGITEMP_C=yes
+ export RRDSTATS_DIGITEMP_HTTP=yes
+ export RRDSTATS_DIGITEMP_INETD=yes
+ export RRDSTATS_DIGITEMP_L=
+ export RRDSTATS_DIGITEMP_PASS=xxxMeinPWxxx
+ export RRDSTATS_DIGITEMP_PORT=85
+ export RRDSTATS_DIGITEMP_U=
+ export RRDSTATS_DIGITEMP_USER=xxxMeinUserxxx
+ export RRDSTATS_DIMENSIONX=5
+ export RRDSTATS_DIMENSIONY=2
+ export RRDSTATS_DISK_DEV1=sda1
+ export RRDSTATS_DISK_DEV2=
+ export RRDSTATS_DISK_DEV3=
+ export RRDSTATS_DISK_DEV4=
+ export RRDSTATS_DISK_LOGARITHM1=no
+ export RRDSTATS_DISK_LOGARITHM2=no
+ export RRDSTATS_DISK_LOGARITHM3=no
+ export RRDSTATS_DISK_LOGARITHM4=no
+ export RRDSTATS_DISK_NAME1=USB Stick
+ export RRDSTATS_DISK_NAME2=
+ export RRDSTATS_DISK_NAME3=
+ export RRDSTATS_DISK_NAME4=
+ export RRDSTATS_ENABLED=yes
+ export RRDSTATS_END_BACKUP=no
+ export RRDSTATS_INTERFACE1=eth0
+ export RRDSTATS_INTERFACE2=lan
+ export RRDSTATS_INTERFACE3=wlan
+ export RRDSTATS_INTERFACE4=
+ export RRDSTATS_INTERVAL=60
+ export RRDSTATS_LOGARITHM1=no
+ export RRDSTATS_LOGARITHM2=no
+ export RRDSTATS_LOGARITHM3=no
+ export RRDSTATS_LOGARITHM4=no
+ export RRDSTATS_MAXIMUMBACKUPS=10
+ export RRDSTATS_MAX_DISK_GRAPH1=0
+ export RRDSTATS_MAX_DISK_GRAPH2=0
+ export RRDSTATS_MAX_DISK_GRAPH3=0
+ export RRDSTATS_MAX_DISK_GRAPH4=0
+ export RRDSTATS_MAX_GRAPH1=0
+ export RRDSTATS_MAX_GRAPH2=100
+ export RRDSTATS_MAX_GRAPH3=56
+ export RRDSTATS_MAX_GRAPH4=0
+ export RRDSTATS_NICE_NAME1=Internet
+ export RRDSTATS_NICE_NAME2=Intranet
+ export RRDSTATS_NICE_NAME3=Wireless
+ export RRDSTATS_NICE_NAME4=
+ export RRDSTATS_NOTLAZYM=yes
+ export RRDSTATS_NOTLAZYS=yes
+ export RRDSTATS_PERIODMAIN=1d
+ export RRDSTATS_PERIODSSUB=6h 1d 1w 1m 1y
+ export RRDSTATS_RRDBACKUP=/var/media/ftp/uStor1/rrdstats/backup
+ export RRDSTATS_RRDDATA=/tmp/persistent
+ export RRDSTATS_RRDTEMP=/tmp/rrdstats
+ export RRDSTATS_SAVEBACKUP=no
+ export RRDSTATS_START_RESTORE=no
+ export RRDSTATS_THOMSONADV=yes
+ export RRDSTATS_THOMSONTHG=yes
+ export RRDSTATS_UPTIME_ENB=yes
+ export RRDSTATS_WEBENABLED=yes
+ export RRDSTATS_WEBTCPPORT=86
+ export RRDSTATS_WEB_AUTH=yes
+ export RRDSTATS_WEB_INETD=yes
+ export RRDSTATS_WEB_PASS=xxxMeinPWxxx
+ export RRDSTATS_WEB_USER=xxxMeinUserxxx
+ export RRDSTATS_XCHG_RXTX1=no
+ export RRDSTATS_XCHG_RXTX2=no
+ export RRDSTATS_XCHG_RXTX3=no
+ export RRDSTATS_XCHG_RXTX4=no
+ HTTPD_PID_RRD=/var/run/webcfg-rrd.pid
+ HTTPD_PID_ONE=/var/run/webcfg-one.pid
+ modlib_start
+ local DAEMON_ENABLED=
+ [ == no ]
+ [ == inetd -a -x /etc/init.d/rc.inetd ]
+ modlib_check_running
+ echo rrdstats_ENABLED
+ tr [:lower:]- [:upper:]_
+ eval echo $RRDSTATS_ENABLED
+ echo yes
+ [ yes == inetd ]
+ local fn=/var/run/rrdstats.pid
+ [ ! -s /var/run/rrdstats.pid ]
+ return 3
+ start
+ [ no = yes -a no = no ]
+ [ no = yes ]
+ modlib_startdaemon start-stop-daemon -n rrdstats -a /etc/default.rrdstats/rrdstats 60 -b -q -S
+ echo -n Starting rrdstats...
+ config
+ env - PATH=/sbin:/bin:/usr/sbin:/usr/bin:/mod/sbin:/mod/bin:/mod/usr/sbin:/mod/usr/bin start-stop-daemon -n rrdstats -a /etc/default.rrdstats/rrdstats 60 -b -q -S
+ local rv=0
+ [ 0 -ne 0 ]
+ local fn=/var/run/rrdstats.pid
+ [ ! -s /var/run/rrdstats.pid ]
+ pidof -s rrdstats
+ local dp=2403
+ [ 0 -ne 0 ]
+ [ -n 2403 ]
+ echo 2403
+ echo done.
+ stop_webserver
+ cat /var/run/webcfg-rrd.pid
+ kill -9 2517
+ cat /var/run/webcfg-one.pid
+ kill -9 2520
+ [ -x /etc/init.d/rc.inetd ]
+ /usr/bin/modinetd -n rrdstats
+ [ yes = yes -a yes != yes ]
+ which digitemp
+ [ -x /usr/bin/digitemp -a yes = yes -a yes != yes ]
+ pidof -s rrdstats
+ local DAEMON_PID=2523
+ pidof rrdstats
+ [ 2523 2522 2521 2403 != 2523 ]
+ sleep 1
+ pidof -s rrdstats
+ local DAEMON_PID=2403
+ pidof rrdstats
+ [ 2403 != 2403 ]
+ [ -n 2403 ]
+ echo 2403
+ return 0
+ exit 0