<HTML>
<HEAD>
<TITLE>Re: Nagios Making Phone Calls - How ?</TITLE>
</HEAD>
<BODY>
<FONT SIZE="4"><FONT FACE="Verdana">I actually just completed setting this up. It’s pretty easy if you read the Docs on each piece and write some perl scripts (It was one of the first perl scripts I ever wrote).<BR>
<BR>
I used a notification (miscommands.cfg) to generate a text “message” and a “queue” entry. I check the queue using a perl script every couple of minutes. When I see something in the queue file, I use the text I generated from the notification and convert it to a WAV file using Festival’s TEXT2WAVE utility. This is then ran through some conversions (wavtopvf, pvfspeed, and pvftormd) to make it specific for the voice modem I’m using. Once I have the RMD file, I call the person listed in the queue and let them know they have an important message. If they press one, I play the message generated and remove them from the queue.<BR>
<BR>
All of the call scripting is in Perl (with some “system” functions) using the Modem::Vgetty module.<BR>
<BR>
To Summarize, you’ll need...<BR>
Festival (maybe with Festvox for some voices)<BR>
Vgetty configured (Comes with pvftormd, pvfspeed, and wavtopvf as well as VM)<BR>
Nagios (Obviously)<BR>
Some customized perl scripting and an Idea of what you want the finalized process to be<BR>
<BR>
The best reference I found to do the perl scripting was the “Mother of Perl” website which had a great example of calling someone. The rest was basically bits and pieces I pulled together through some research.<BR>
<BR>
If there is enough interest, I might post some of the scripting (although it is fairly rudimentary since I’m new to perl). I’m sure someone could better optimize how it works and I’d love the input to make it a viable solution for anyone. We actually are using it to replace our NOC monitoring service (which was horrid anyhow) and to replace What’s Up Gold (which hung the modem and prevented messages from being sent out).<BR>
<BR>
<BR>
From: Networks <networks@wi...>.rr.com> <BR>
<B>Re: Nagios Making Phone Calls - How ? </B> <BR>
2003-08-06 07:33 <BR>
<BR>
</FONT><FONT FACE="Courier TU">I have heard of people using festival and other programs to so this. <BR>
If no one knows, I'll try to figure it out on my own, and let you guys<BR>
know what I find. I'm sure others might be interested in doing this.<BR>
<BR>
Thanks,<BR>
<BR>
Josh<BR>
<BR>
On Tue, 2003-08-05 at 16:39, Networks wrote:<BR>
> I was wondering if anyone has configured Nagios to send alerts with<BR>
> phone calls through a modem? Any Help/Experience would be greatly<BR>
> appreciated. <BR>
> <BR>
> Thanks,<BR>
> <BR>
> Josh<BR>
> <BR>
> <BR>
> <BR>
> -------------------------------------------------------<BR>
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including<BR>
> Data Reports, E-commerce, Portals, and Forums are available now.<BR>
> Download today and enter to win an XBOX or Visual Studio .NET.<BR>
> <FONT COLOR="#003399">http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 </FONT>> _______________________________________________<BR>
> Nagios-users mailing list<BR>
> Nagios-users@li...<BR>
> <FONT COLOR="#003399">https://lists.sourceforge.net/lists/listinfo/nagios-users </FONT>> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. <BR>
> ::: Messages without supporting info will risk being sent to /dev/null </FONT></FONT>
</BODY>
</HTML>