ZABBIX Forums  
  #1  
Old 02-10-2007, 16:41
vikty vikty is offline
Senior Member
 
Join Date: Jul 2007
Posts: 103
Question SMS GSM Modem

Hi,

How can I use the modem GSM to send SMS?
must I install anything? must I follow any procedure?

I have a Siemens TC35... is there any problem???
Reply With Quote
  #2  
Old 02-10-2007, 20:20
Alexei Alexei is offline
Zabbix developer, product manager
 
Join Date: Sep 2004
Location: Riga, Latvia
Posts: 5,424
Lightbulb

Siemens TC35 works absolutely fine. I used it some time ago, nice hardware.
__________________
Alexei Vladishev
Creator of Zabbix, Product manager
Riga, Latvia
My Twitter
Reply With Quote
  #3  
Old 03-10-2007, 09:17
vikty vikty is offline
Senior Member
 
Join Date: Jul 2007
Posts: 103
Talking thank you

This resolve any problem
Reply With Quote
  #4  
Old 03-10-2007, 10:45
vikty vikty is offline
Senior Member
 
Join Date: Jul 2007
Posts: 103
Post How to use

Hi,

Can you explain how to use the SMS media types?
I have done
1) config the Media type wiht /dev/ttyS0
2) Add new media type in user account
3) in "Send to" box I have written my tel number 348xxxxxxx
4) I have configured the action to send me the alarm normaly....
After this the SMS is not arrived...

I think that the problem is the GSM modem, but I don't know how to test if the GSM Modem is corectly recognized
How can I do?
Reply With Quote
  #5  
Old 03-10-2007, 15:49
vikty vikty is offline
Senior Member
 
Join Date: Jul 2007
Posts: 103
Lightbulb How to testing

Hi,
This is a mini "How to" for GSM modem:

1) Use minicom with /dev/ttyS0 and 9600bps
2) Test some AT comand (AT, AT+CPIN?)
After
3) Read in zabbix interface Monitoring > Action, why it doesn't work.
4) Set permission "chmod 666 /dev/ttyS0"
5)Try an action...
6)GOOD LOOK

Last edited by vikty; 03-10-2007 at 16:00.
Reply With Quote
  #6  
Old 10-10-2007, 10:27
vikty vikty is offline
Senior Member
 
Join Date: Jul 2007
Posts: 103
Question /dev/ttyS0 Permition deny

mmhh.. but...
Why must I do this "chmod 666 /dev/ttyS0"?
I don't think that is a normal operation...but Zabbix user can't write in /dev/ttyS0
Can someone explain me this..??
Attached Images
 

Last edited by vikty; 10-10-2007 at 11:12.
Reply With Quote
  #7  
Old 10-10-2007, 11:15
Alexei Alexei is offline
Zabbix developer, product manager
 
Join Date: Sep 2004
Location: Riga, Latvia
Posts: 5,424
Lightbulb

Under Ubuntu, you may simply add user "zabbix" to group "dialout". No change of /dev/ttyS0 permissions is required.
__________________
Alexei Vladishev
Creator of Zabbix, Product manager
Riga, Latvia
My Twitter
Reply With Quote
  #8  
Old 10-10-2007, 11:23
vikty vikty is offline
Senior Member
 
Join Date: Jul 2007
Posts: 103
Default

I use Fedora Core 6...
anyway I can retry.
Reply With Quote
  #9  
Old 10-10-2007, 12:01
vikty vikty is offline
Senior Member
 
Join Date: Jul 2007
Posts: 103
Unhappy


In fedora there isn't dialout group, but there is uucp group
I have tryed to add zabbix user in uucp group, but when I try to send a SMS
Quote:
Error open(/dev/ttyS0) [Permission denied]
fine.. just I will find anything I will post it here...

Last edited by vikty; 10-10-2007 at 12:04.
Reply With Quote
  #10  
Old 09-05-2008, 11:46
bee bee is offline
Senior Member
 
Join Date: Jun 2007
Posts: 123
Unhappy Expected [OK] received []

After few weeks trial and doing every possible trick, ZABBIX still won't send sms out. It always return with error:
Expected [OK] received []

My GSM modem is iTegno W3800 SE with serial port. My ZABBIX hosted on FreeBSD 7.0-STABLE. ZABBIX it self have version:
Code:
ZABBIX Server (daemon) v1.4.5 (25 March 2008)
Compilation time:  May  9 2008 15:19:12
Send manual sms using AT command via minicom, no issue at all, works very charm.

i did many times recompile of sms.c, change any possible trick from step 0 till step 9 and did any advice posted in this thread but none work. ALways return with Expected [OK] received []

Is there any still possible trick for me to make it work?! What is exactly Expected [OK] received [] means?

Code:
/*  0  */       {ZBX_AT_ESC     , NULL          , 0     },      /* Send <ESC> */
/*  1  */       {"AT+CMEE=2\r"  , "OK"          , 5     },      /* verbose error
/*  1  */       {"ATE0\r"       , "OK"          , 5     },      /* Turn off echo
/*  2  */       {"AT\r"         , "OK"          , 5     },      /* Init modem */
/*  3  */       {"AT+CMGF=1\r"  , "OK"          , 5     },      /* Switch to tex
/*  4  */       {"AT+CMGS=\""   , NULL          , 0     },      /* Set phone num
/*  5  */       {number         , NULL          , 0     },      /* Write phone n
/*  6  */       {"\"\r"         , "> "          , 5     },      /* Set phone num
/*  7  */       {message        , NULL          , 0     },      /* Write message
/*  8  */       {ZBX_AT_CTRL_Z  , "+CMGS: "     , 40    },      /* Send message
/*  9  */       {NULL           , "OK"          , 1     },      /* ^Z */
/* EOS */       {NULL           , NULL          , 0     }
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 17:23.