Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: How to recieve notification by sms or on android phone

  1. #1
    Member
    Join Date
    Feb 2012
    Location
    Slovenia
    Posts
    65

    How to recieve notification by sms or on android phone

    Hello.
    After playing with configuration of hosts and services, I want to test notifications.
    I created a new contact and added it to admins contact group.
    in /usr/local/shinken/etc/templates.cfg I added
    notify-service-by-android-sms
    and notify-host-by-android-sms.

    Thats all I did.

    I get email notifications, but SMS or android (Is this one and the same thing?) is a no go

    I have been reading wiki, but it is not clear (or I have been looking in the wrong place) on how exactly to configure this thing.
    I mean, the parameters are defined, but what else is needed?
    In broker debug log I see Warning: No module named Android, but I don't know what that means.
    Is somwhere explained this in details?

  2. #2
    Senior Member
    Join Date
    Nov 2011
    Posts
    147

    Re: How to recieve notification by sms or on android phone

    This module is to use an android phone as a gateway to send sms.

    Search shinken wiki with the keyword android, and follow the instructions. ;D

  3. #3
    Member
    Join Date
    Feb 2012
    Location
    Slovenia
    Posts
    65

    Re: How to recieve notification by sms or on android phone

    Uf, sorry :-)
    Missed that.
    I will get on it tomorrow morning

  4. #4
    Member
    Join Date
    Feb 2012
    Location
    Slovenia
    Posts
    65

    Re: How to recieve notification by sms or on android phone

    It is tommorow
    Just kidding..

    http://www.shinken-monitoring.org/wiki/sms_with_android
    I got to the point :
    Install the Pyro lib on your phone
    I have pyro 3.9.1.1
    I downloaded the latest pyro (couldn't find the link for my version)
    Now I can't find the Pyro Library directory? Is the directory named lib or what? Or should I just copy entire content from pyro4-4.12 SDCARD/com.googlecode.pythonforandroid\extras\python?
    I am not a python programmer, but I think this should be stated a bit more clearly in wiki..
    Thanks for helping

  5. #5
    Junior Member
    Join Date
    Apr 2012
    Posts
    18

    Re: How to recieve notification by sms or on android phone

    You can find that folder in your shinken install directory called shinken itself. Just copy that directory to the python directory on your SDcard.

    Got other question.

    The reactionner with port 7769 is already in use by mail notifications. Is it posible to define another port for the reactionner-Android?


  6. #6
    Shinken project leader
    Join Date
    May 2011
    Location
    Bordeaux (France)
    Posts
    2,131

    Re: How to recieve notification by sms or on android phone

    If I'm not wrong, there will be no reactionner.ini in the Android. So you must change the bin/shinken-receiver file with the good value, and also the shinken-specific.cfg with the new one
    No direct support by personal message. Please open a thread so everyone can see the solution

  7. #7
    Junior Member
    Join Date
    Apr 2012
    Posts
    18

    Re: How to recieve notification by sms or on android phone

    [quote author=naparuba link=topic=316.msg1809#msg1809 date=1334069804]
    If I'm not wrong, there will be no reactionner.ini in the Android. So you must change the bin/shinken-receiver file with the good value, and also the shinken-specific.cfg with the new one
    [/quote]
    I don't understand. What must i change in that file because i don't see any port or setting.

  8. #8
    Shinken project leader
    Join Date
    May 2011
    Location
    Bordeaux (France)
    Posts
    2,131

    Re: How to recieve notification by sms or on android phone

    Oups sorry, the good file is the Class one, the shinken/daemons/reactionnerdaemon.py
    No direct support by personal message. Please open a thread so everyone can see the solution

  9. #9
    Junior Member
    Join Date
    Apr 2012
    Posts
    18

    Re: How to recieve notification by sms or on android phone

    [quote author=naparuba link=topic=316.msg1824#msg1824 date=1334133515]
    Oups sorry, the good file is the Class one, the shinken/daemons/reactionnerdaemon.py
    [/quote]
    thanks

    Will test it tomorrow when i'm in the datacentre

  10. #10
    Junior Member
    Join Date
    Apr 2012
    Posts
    18

    Re: How to recieve notification by sms or on android phone

    Is there a way to configure the android phone to communicate via the reactionner port without wifi ip but configured via a usb cable connection?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •