[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: GSM Anbindung f. Server



Guten Tag Michael Frank,

am Montag, 19. Januar 2009 um 19:10 schrieben Sie:

> Welche Modelle gehn ?
> Mir ist nicht so richtig klar, wie das Handy dann
> angeschlossen wird.
> Ein altes Standard Nokia z.Bsp. brauch doch sicher
> spezielle Treiber f. USB ?

Wir haben uralt Nokia dran gehabt und nen aktuell Sony Ercisson (hat
de vorteil das es über USB aufgeladen wird)

Extra treiber werden hier nicht benötigt.
Wie gesagt läuft bei uns Prima und sehr zuverlässig.
Läuft bei uns mit smsd und nagios verschickt dann so die SMSe ;)

define command{
        command_name host-notify-by-sms
        command_line /usr/bin/sudo /usr/local/bin/funk2 $CONTACTPAGER$ "$NOTIFICATIONTYPE$: Server $HOSTNAME$ ($HOSTADDRESS$) ist $HOSTSTATE$ $SERVICEOUTPUT$"

:~# cat /usr/local/bin/funk2
#!/bin/bash
# This script send a text sms at the command line by creating
# a sms file in the outgoing queue.
# I use it for testing.

# $1 is the destination phone number
# $2 is the message text
# if you leave $2 or both empty, the script will ask you

DEST=$1
TEXT=$2

if [ -z "$DEST" ]; then
  printf "Destination: "
  read DEST
fi

if [ -z "$TEXT" ]; then
  printf "Text: "
  read TEXT
fi
#DATE=`date +%Y-%m-%d`
#DATE1=`date +%H:%M:%S`
#DATE2=`date +%Y-%m-%d`
#echo "$DATE $DATE1|$DEST|$TEXT" >> /var/log/sms/sms_$DATE2.log
echo $2
echo ${#2}
echo "go..."
/usr/local/bin/samsem -s -C /usr/local/etc/samsem.conf "$DEST" $TEXT




-- 
Mit freundlichen Grüßen
Daniel
mailto:dh@dimax-it.de




Reply to: