Need a script to get Nagios to call on an analog phone

Posted on 2008-11-08
Last Modified: 2012-05-05
I am using Nagios to monitor a group of servers.  Because of the SLA promises made to get this contract we need to be able to get notifications that will wake us out of a dead sleep:(

What I would like to be able to do is have the Nagios server call the on-call person on their cell phones if there is a host or service down.  The server has an internal modem which I want to use rather than our IP phone server.  I don't have any skillz in Perl or Bash scripting, and am only passingly familiar with Linux as well.

Has anyone got a script I can use for this?  I can either hard code the number or, preferably use the Nagios system to call the number based on the on-call schedule.  This is relativley urgent hence the points involved.

Much appreciated.
Question by:freymish
    LVL 12

    Assisted Solution

    Are you looking for a way to deliver a text message to their phone, or a voice message?
    LVL 39

    Accepted Solution

    I don't know how you would play a message, but if you open the serial port associated with the modem, you should be able to send AT command to have it dial the cell phone.
    LVL 12

    Assisted Solution

    With a voice modem, you can certainly have it dial a number and play a message (Check the docs associated with vgetty on Linux), which could be synthesized with something like festival. Or it could just be a recorded "Something's wrong" message directing you to log in and see what's happening. Either way, with a voice modem it's not really that complex.

    You could also go with simple alphanumeric messages to a cell phone, through their cellphone provider.
    LVL 4

    Author Comment

    Basically it just needs to dial the number.  What I need is something that will wake my ass up:(  Oh the joys of the 24x7 respond in 10 minutes SLA!

    If the phone rings, I'm happy.  Voice messages would be icing on the cake.
    LVL 4

    Author Closing Comment

    Thanks.. On to a different questions

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
    I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now