PRTG – SMS per smstools3

SMS Batch für PRTG Netzwerk Monitor für das senden von SMS über smstools3 Host. Der Inhalt der Batchdatei: %programfolder%\PRTG Network Monitor\Notifications\EXE\smstools.bat

:: SMS Notification Batch for Paessler Network Monitor PRTG and smstools3

::DateTime String
set datetimef=%date:~6%%date:~3,2%%date:~0,2%_%time:~0,2%-%time:~3,2%-%time:~6,2%
set datetimef=%datetimef: =0%

set smsfile=sms_PRTG__%datetimef%__%1.txt

::Copy SMS File to smstools3 Cifs share path 
set destin=\\sms\sent

::Create SMS File for smstools
Echo To: %1 > %smsfile%
Echo. >> %smsfile%
Echo %~2 >> %smsfile%

::Copy to smstools3 share
xcopy %smsfile% %destin%
if errorlevel 0 del %smsfile% /Q

Der Samba Cifs Share bzw. die /etc/samba/smb.conf sieht so aus:

#Samba Konfiguration

[global]
        # Netzwerkeinstellungen
        workgroup = Workgroup
        netbios name = SMS
        server string = %h Server
        ;disable netbios = yes
        security = user
        map to guest = Bad User
        encrypt passwords = true

        # Bindung auf eine Schnittstelle
        ;interfaces = eth0
        ;bind interfaces only = yes

        # Logfile Einstellungen
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 1000

        # IP-Zugriffsbeschraenkungen
        ;hosts allow = 127.0.0.1 192.168.0.0/24
        ;hosts deny = 0.0.0.0/0

        # Generelle Einstellungen
        ;domain master = no
        ;local master = no
        ;preferred master = no
        dns proxy = yes
        ;wins support = no
        ;wins server = 192.168.0.3
        name resolve order = lmhosts hosts bcast
        ;smb ports = 445
        socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536

        # Druckeinstellungen
        load printers = no
        disable spoolss = yes

#======================= Share Definitions =======================
[sent]
        comment = Send SMS
        path = /var/spool/sms/outgoing
        read only = no
        public = yes

Schreibe einen Kommentar


error: Alert: Content selection is disabled!!