Skip navigation
5053 Views 9 Replies Latest reply: Apr 20, 2012 1:33 AM by Shane Scott RSS
da shan Rank: White Belt 9 posts since
Mar 7, 2012
Currently Being Moderated

Mar 21, 2012 11:14 AM

how to get zenoss to send sms on critical events

Hi everybody,

 

I'm having a hard time to get my send-sms script to work. if i execute it on the commandline, everything works perfect. but when i try to send a message from zenoss (test-msg or based on a event), nothing happends. But in every case the correct messaged gets logged in the file. Where is my error?

 

I use gnokii to connect to a nokia mobile phone.

 

 

Here is my code on pastebin: http://pastebin.com/VFq674ar

 

 

Thx very much in advance!

 

Any help is welcome!

 

I'm using zenoss 3.2.1

  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009
    Currently Being Moderated
    1. Mar 19, 2012 4:45 PM (in response to da shan)
    Re: zenoss + sms, where is the error?

    da shan:

     

    Just a guess, but I'd verify that zenoss is in the sudoers file and might even suggest you throw a +s on that bin requireing sudo priv. I'd then verfy that it runs by hand as the zenoss user. Are you executing this script using an eventcommand?

     

    Best,

    --Shane

  • themactech Rank: Brown Belt 537 posts since
    Apr 13, 2009
    Currently Being Moderated
    4. Mar 21, 2012 12:01 PM (in response to da shan)
    Re: zenoss + sms, where is the error?

    I use email to send SMS, most services like AT&T have an email address that will send an SMS, in the case of AT&T it's <yourcellnumberhere>@mobile.mycingular.com, most other carriers offer the same function.

     

    So I am just sendind a second email alert out to that SMS email address for critical events.

     

    Manuel

  • themactech Rank: Brown Belt 537 posts since
    Apr 13, 2009
    Currently Being Moderated
    6. Mar 21, 2012 12:55 PM (in response to da shan)
    Re: zenoss + sms, where is the error?

    I do have a POTS line on a computer at the office, and USB modem connected, the computer triggers a call over the modem when certain events occur so I get a call on my cell phone.  But that is not deployed at our remote sites.

     

    I did setup a hartbeat monitoring system however.  The zenoss machine will get the health of all of it's daemons, encode that in an email and send it every couple of minutes.  Another computer at a different location receives the emails, decode it to get daemon status, and also alerts if no email is received.  This makes sure remote Zenoss servers are up and running and healthy.  Also indicates a failed network infrastructure.

     

    Manuel

  • bojan Rank: White Belt 12 posts since
    Oct 12, 2009
    Currently Being Moderated
    7. Mar 22, 2012 6:10 AM (in response to da shan)
    Re: zenoss + sms, where is the error?

    I use USB GSM modem and smstools (with postfix and procmail for alarm email from my other zenoss server) to send alarm SMS from zenoss.

     

    Bojan

  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009
    Currently Being Moderated
    9. Apr 20, 2012 1:33 AM (in response to da shan)
    Re: how to get zenoss to send sms on critical events

    da shan:

     

    Ah nice.

     

    --Shane

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points