Hi,
i'm tryubg ti send sms from zabbix 1.4
I have a Siemens MC35 gsm modem attached to /dev/ttyS0
from console i can send sms but zabbix gives me an error:
Expected [+CMGS: ] received [OK]
I checked the sms.c and is like this :
/* 0 */ {ZBX_AT_ESC , NULL , 0 }, /* Send <ESC> */
/* 1 */ {"AT+CMEE=2\r" , "OK" , 5 }, /* verbose error values */
/* 1 */ {"ATE0\r" , "OK" , 5 }, /* Turn off echo */
/* 2 */ {"AT\r" , "OK" , 5 }, /* Init modem */
/* 3 */ {"AT+CMGF=1\r" , "OK" , 5 }, /* Switch to text mode */
/* 4 */ {"AT+CMGS=\"" , NULL , 0 }, /* Set phone number */
/* 5 */ {number , NULL , 0 }, /* Write phone number */
/* 6 */ {"\"\r" , "> " , 5 }, /* Set phone number */
/* 7 */ {message , NULL , 0 }, /* Write message */
/* 8 */ {ZBX_AT_CTRL_Z , "+CMGS: " , 40 }, /* Send message */
/* 9 */ {NULL , "OK" , 1 }, /* ^Z */
/* EOS */ {NULL , NULL , 0 }
};
I need to change something?
Thanks,
Riccardo
i'm tryubg ti send sms from zabbix 1.4
I have a Siemens MC35 gsm modem attached to /dev/ttyS0
from console i can send sms but zabbix gives me an error:
Expected [+CMGS: ] received [OK]
I checked the sms.c and is like this :
/* 0 */ {ZBX_AT_ESC , NULL , 0 }, /* Send <ESC> */
/* 1 */ {"AT+CMEE=2\r" , "OK" , 5 }, /* verbose error values */
/* 1 */ {"ATE0\r" , "OK" , 5 }, /* Turn off echo */
/* 2 */ {"AT\r" , "OK" , 5 }, /* Init modem */
/* 3 */ {"AT+CMGF=1\r" , "OK" , 5 }, /* Switch to text mode */
/* 4 */ {"AT+CMGS=\"" , NULL , 0 }, /* Set phone number */
/* 5 */ {number , NULL , 0 }, /* Write phone number */
/* 6 */ {"\"\r" , "> " , 5 }, /* Set phone number */
/* 7 */ {message , NULL , 0 }, /* Write message */
/* 8 */ {ZBX_AT_CTRL_Z , "+CMGS: " , 40 }, /* Send message */
/* 9 */ {NULL , "OK" , 1 }, /* ^Z */
/* EOS */ {NULL , NULL , 0 }
};
I need to change something?
Thanks,
Riccardo
Comment