Ad Widget

Collapse

SMS Gnokii

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dcpromo
    Junior Member
    • Nov 2011
    • 1

    #1

    SMS Gnokii

    Hello friends,
    I can send SMS message using gnokii, but It's not work if I use zabbix (I followed this guide - http://www.zabbix.com/wiki/howto/config/alerts/sms).
    I test command line with zabbix user , it's okie. I granted all permission on script file.
    Plz help me
  • mveplus
    Junior Member
    • Nov 2011
    • 1

    #2
    Hi dcpromo

    Originally posted by dcpromo
    Hello friends,
    I can send SMS message using gnokii, but It's not work if I use zabbix (I followed this guide - http://www.zabbix.com/wiki/howto/config/alerts/sms).
    I test command line with zabbix user , it's okie. I granted all permission on script file.
    Plz help me
    Write more info about your distro, what version of Zabbix?

    I also fallowed this guide and for me it's working fine! .....After fighting with user permission issue on CentOS 6. I'm running Zabbix server mysql + agent+ PHP frontend 1.8.8 installed form epel repo on one machine.
    Code:
    Installed Packages
    zabbix.i686                                  1.8.8-1.el6                   @epel
    zabbix-agent.i686                            1.8.8-1.el6                   @epel
    zabbix-server.i686                           1.8.8-1.el6                   @epel
    zabbix-server-mysql.i686                     1.8.8-1.el6                   @epel
    zabbix-web.noarch                            1.8.8-1.el6                   @epel
    zabbix-web-mysql.noarch
    My gnokii version is
    Code:
    Installed Packages
    gnokii.i686                          0.6.30-1.el6                          @epel
    Did you add the fallowing to your /etc/sudoers:
    Code:
    ## Send SMS with Zabbix
    Defaults:%zabbix !requiretty
    Defaults:zabbix !requiretty
    zabbix ALL=NOPASSWD:/usr/bin/gnokii
    My selinux is enforced mode and still it is working...

    Also make sure where is your script? look in /etc/zabbix/zabbix_sever.conf and find line with AlertScriptsPath, and check the path, make sure your script is there! and it's executable:
    Code:
    ### Option: AlertScriptsPath
    #       Location of custom alert scripts
    #
    # Mandatory: no
    # Default:
    AlertScriptsPath=/var/lib/zabbix/
    if you sure you complete all above then fallow the last two steps form the How-to:
    Configure a media type (menu administration) with the same name as your script (without path, without parameters)

    Link this media type to a user (menu administration) and use the phone number (i.e. 31600000000) as Send to parameter.
    Create alert with user that you added that media "sendsms" and trigger something.You should get SMS!

    Greetings,

    Comment

    • dominbdg
      Junior Member
      • Sep 2019
      • 5

      #3
      Hello, All
      I also have a issue with Zabbix sms notifications,
      From my side the situation is as follow:
      I have a small router with OpenWRT installed and 3g modem connected to it and everything is working fine,
      From Zabbix perspective I would like to create sms notification with will be working on this router.
      I mean this should be a script from Zabbix perspective - in order to sms alert notification - to access this router as root and send sms notification using gnokii for example.
      Can anyone provide to me some manual or instruction which to configure in order to make Zabbix send sms using this router ?

      Best regards

      Comment

      Working...