[ZBX-15866] configuring sms gateway msg91 Created: 2019 Mar 23 Updated: 2019 May 29 Resolved: 2019 May 29 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Server (S) |
Affects Version/s: | 4.0.5 |
Fix Version/s: | None |
Type: | Problem report | Priority: | Blocker |
Reporter: | Chandra | Assignee: | Unassigned |
Resolution: | Commercial support required | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Description |
HI Team, I'm trying to setup sms gateway (msg91) but ending up with multiple errors. i have created following .sh script and tried executing manually every thing seems fine but when it comes to integration with alerts. Status shows sent but i have not received any alerts. https://docs.msg91.com/collection/msg91-api-integration/5/send-sms/T1HW8R1O curl --request POST \ |
Comments |
Comment by Alexey Pustovalov [ 2019 Mar 24 ] |
Please be advised that this section of the tracker is for bug reports only. The case you have submitted can not be qualified as one, so please reach out to [email protected] for commercial support or consultancy services. Alternatively, you can also use our IRC channel or community forum (https://www.zabbix.com/forum) for assistance. With that said, we are closing this ticket. Thank you for understanding. |
Comment by Chandra [ 2019 Mar 25 ] |
Hi Team, This seems to be a bug here as per the zabbix report status sms is sent. but i have not received the sms either in the SMS gateway i see any details.
#!/usr/bin/php <?php //Your authentication key $authKey = "XXXXXXXX"; //Multiple mobiles numbers separated by comma $mobileNumber = "$\{1}"; //Sender ID,While using route4 sender id should be 6 characters long. $senderId = "ZABBIX"; //Your message to send, Add URL encoding here. $message = urlencode("$\{2}"); //Define route $route = "4"; //Prepare you post parameters $postData = array( 'authkey' => $authKey, 'mobiles' => $mobileNumber, 'message' => $message, 'sender' => $senderId, 'route' => $route ); //API URL $url="http://api.msg91.com/api/sendhttp.php"; // init the resource $ch = curl_init(); curl_setopt_array($ch, array( CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_POSTFIELDS => $postData //,CURLOPT_FOLLOWLOCATION => true )); //Ignore SSL certificate verification curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); //get response $output = curl_exec($ch); //Print error if any if(curl_errno($ch)) \{ echo 'error:' . curl_error($ch); } curl_close($ch); echo $output; ?>
|
Comment by Alexey Pustovalov [ 2019 Mar 25 ] |
Try to add extended debug to the script and show us passed arguments to the script. |
Comment by Chandra [ 2019 Mar 25 ] |
Hi Alexey, Can you please confirm how to enable for sepectific action.
|
Comment by Alexey Pustovalov [ 2019 Mar 25 ] |
You need to modify your custom script and redirect all data into file. |
Comment by Chandra [ 2019 Mar 25 ] |
Sorry Alexey, Not sure how to do that. i have already added the script that i have used in earlier ticket thread.
|
Comment by Alexey Pustovalov [ 2019 Mar 25 ] |
I mean you need add debug to your script, which will dump arguments data and execution status to some file |