SMS Server Tools 3
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. The forum is currently read-only, but will open soon. Tue Jul 01, 2025 13:40
SMSTools3 Community » Search Bottom

Page:  1

Keywords:
Mode: All keywords (AND)
Ven: I'm using Wavecom Fastrak also. Yes, its a serial. You wont have any problem using CentOS 4.8. There's plenty of solution provided here. You can check them out. I got one friend using CentOS with SMSTools3 and it works just fine. Good luck on your project ;)
Ven: Thanks keke for the reply. It is indeed permission problem. It's working now. These are my configs. i) /var/spool/sms/outgoing drwxrwsr-t 2 smsd smsd 4096 2010-03-22 14:59 checked drwxrwsr-t 2 smsd smsd 4096 2010-03-22 14:14 failed drwxrwsr-t 2 smsd smsd 4096 2008-10-06 12:04 failed1 drwxrwsr-t 2 smsd smsd 4096 2008-10-06 12:04 failed2 drwxrwsr-t 2 smsd smsd 4096 2008-10-06 12:04 failed3 drwxrwsr-t 2 smsd smsd 4096 2010-03-22 14:15 incoming drwxrwsr-t 2 smsd smsd 4096 2010-03-22 15:07 outgoing drwxrwsr-t 2 smsd smsd 4096 2008-10-06 12:04 queue1 drwxrwsr-t 2 smsd smsd 4096 2008-10-06 12:04 queue2 drwxrwsr-t 2 smsd smsd 4096 2008-10-06 12:04 queue3 drwxrwsr-t 2 smsd smsd 4096 2010-03-22 14:59 sent drwxrwsr-t 2 smsd smsd 4096 2008-10-06 12:04 sent1 drwxrwsr-t 2 smsd smsd 4096 2008-10-06 12:04 sent2 drwxrwsr-t 2 smsd smsd 4096 2008-10-06 12:04 sent3 drwxrwsr-t 2 smsd smsd 4096 2008-10-06 12:04 tmp ii) /etc/smsd.conf -rw-r--r-- 1 root root 3019 2010-03-19 16:48 /etc/smsd.conf iii) /usr/local/nagios/etc/objects -rw-rw-r-- 1 nagios nagios 8745 2010-03-10 10:22 commands.cfg -rw-rw-r-- 1 nagios nagios 3054 2010-03-22 15:04 contacts.cfg -rw-rw-r-- 1 nagios nagios 5403 2009-11-11 16:00 localhost.cfg -rw-rw-r-- 1 nagios nagios 3124 2009-11-11 16:00 printer.cfg -rw-rw-r-- 1 nagios nagios 3293 2009-11-11 16:00 switch.cfg -rw-rw-r-- 1 nagios nagios 10864 2009-11-11 16:20 templates.cfg drwxr-sr-x 2 root nagios 4096 2010-03-17 11:07 test -rw-rw-r-- 1 nagios nagios 3209 2009-11-11 16:00 timeperiods.cfg -rw-rw-r-- 1 nagios nagios 4022 2010-03-17 09:17 windows.cfg iv) less /etc/group dialout: x:20:gsmsms,smsd,root,nagios smsd: x:109:nagios Cheers
Ven: Ah, one more thing. I run everything as a root. Is this might be a permission issue?
Ven: Operating system name and version: : Debian 5.0 Version of smsd: 3.1-2 Smsd installed from: http://smstools3.kekekasvi.com/packages/smstools3-3.1.tar.gz Name and model of a modem / phone: Wavecom Interface: Serial (RJ45) Hi, currently I'm working for sending alert notification (SMS) through Nagios 3.2. I have configured Nagios to send SMS using smstools3 but it doesn't send out any SMS. Here are the config: i) /usr/local/nagios/etc/objects/commands.cfg define command{ command_name notify-host-by-sms command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$ \nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time:$LONGDATETIME$\n" | /usr/local/bin/sendsms $CONTACTEMAIL$ "** $NOTIFICATIONTYPE$ Host Alert:$HOSTNAME$ is $HOSTSTATE$ **" } define command{ command_name notify-service-by-sms command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$ \nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time:$LONGDATETIME$\n" | /usr/local/bin/sendsms $CONTACTEMAIL$ "** $NOTIFICATIONTYPE$ Service Alert:$SERVICEDESC$ on $HOSTNAME$ State: $SERVICESTATE$ **" } ii) /usr/local/nagios/etc/objects/contacts.cfg define contact{ contact_name zulfadhli-SMS alias Zulfadhli contactgroups admins service_notification_period 24x7 host_notification_period 24x7 service_notification_options c,r host_notification_options d,u,r service_notification_commands notify-service-by-sms host_notification_commands notify-host-by-sms email 6019XXXXXXX } iii) /etc/smsd.conf devices = GSM1 outgoing = /var/spool/sms/outgoing checked = /var/spool/sms/checked incoming = /var/spool/sms/incoming logfile = /var/log/smsd.log infofile = /var/run/smstools/smsd.working pidfile = /var/run/smstools/smsd.pid #outgoing = /var/spool/sms/outgoing #checked = /var/spool/sms/checked failed = /var/spool/sms/failed #incoming = /var/spool/sms/incoming sent = /var/spool/sms/sent stats = /var/log/smstools/smsd_stats loglevel = 7 #delaytime = 10 #errorsleeptime = 10 #blocktime = 3600 #stats = /var/log/smsd_stats #stats_interval = 3600 #stats_no_zeroes = no #checkhandler = /usr/local/bin/smscheck receive_before_send = no # autosplit 0=no 1=yes 2=with text numbers 3=concatenated autosplit = 3 # store_received_pdu 0=no, 1=unsupported, 2=unsupported and 8bit, 3=all #store_received_pdu = 1 #validity = 255 #decode_unicode_text = no #internal_combine = no # You can specify here an external program that is started whenever an alarm occurs. # alarmhandler = /path/to/an/alarmhandler/script # Specifies what levels start an alarmhandler. You can use value between 2 and 5. # alarmlevel = 4 # eventhandler = @EVENTHANDLER@ #blacklist = /etc/smstools/blacklist #whitelist = /etc/smstools/whitelist #[queues] # Commented lines are examples for germany # D1 = /var/spool/sms/D1 # D2 = /var/spool/sms/D2 # O2 = /var/spool/sms/O2 # EPLUS = /var/spool/sms/EPLUS # QUAM = /var/sppol/sms/QUAM # MOBILCOM = /var/spool/sms/MOBILCOM #OTHER = /var/spool/sms/OTHER #[provider] # Commented lines are examples for germany # D1 = 49160, 49170, 49171, 49175, 49151 # D2 = 491520, 49162, 49172, 49173, 49174 # O2 = 49176, 49179, 49159 # EPLUS = 49163, 49177, 49178, 49157 # QUAM = 49150 # MOBILCOM = 49156 #OTHER = 0,1,2,3,4,5,6,7,8,9 #[GSM1] # init = ATE0+CPMS="SM"+CNMI=2,0,0,2,1 # # Windows: /dev/com1, Solaris: /dev/cua/a, Linux /dev/ttyS0 # device = /dev/ttyS0 # incoming = yes # queues = OTHER # You don't need a PIN for mobile phones # pin = 1111 # mode = new # smsc = 491722270000 # baudrate = 19200 # rtscts = yes # cs_convert = yes # report = no # memory_start = 1 # primary_memory = memory name # secondary_memory = memory name # secondary_memory_max = number # pdu_from_file = /var/spool/sms/GSM1-PDU # sending_disabled = no # decode_unicode_text = no # internal_combine = no # #[GSM2] #init = ATE0 # Windows: /dev/com2, Solaris: /dev/cua/b, Linux /dev/ttyS1 #device = /dev/ttyS1 #incoming = yes #queues = OTHER #You don't need a PIN for mobile phones #pin = 2222 #mode = new #smsc = 491710760000 #baudrate = 19200 #rtscts = yes #cs_convert = yes #report = no #memory_start = 1 #primary_memory = memory name #secondary_memory = memory name #secondary_memory_max = number #pdu_from_file = /var/spool/sms/GSM2-PDU #sending_disabled = no #decode_unicode_text = no #internal_combine = no [GSM1] #init = device = /dev/ttyS0 incoming = yes #pin = baudrate = 19200 When compiling Nagios using /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg it shows no error. I can send SMS manually using sendsms command but it doesn't send any alert SMS if one (or more) of my monitored server went down. Any helps and suggestions would be very much appreciated. Thanks p/s: do I need some sort of "sendsms.sh" script on /usr/local/nagios/libexec

Page:  1

SMSTools3 Community » Search Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.