How can I configure Zenoss to send an SMS or Voice alert
772
Has anyone successfully configured Zenoss to send an SMS or Voice alert? Googling only comes up with a service called TeamTILT for Zenoss. Is this the only alternative available? Has anyone solved this without using this service? Thanks.
#!/usr/bin/perl
my $title="Alert";
my $to=$ARGV[0];
$from= 'Zenoss';
$subject=$title;
open(MAIL, "|/usr/sbin/sendmail -t");
## Mail Header
print MAIL "To: $to\n";
print MAIL "From: $from\n";
print MAIL "Subject: $subject\n\n";
## Mail Body
foreach $line ( <STDIN> ) {
chomp( $line );
print MAIL "$line\n";
}
close(MAIL);
As long as you have sendmail configured then you should be seeing pages.
I was actually able to setup the dialer zenpack at one point to dial a 56K modem and deliver SMS that way, but only T-Mobile's numbers were still working for this method. We ended up running DSL over a dedicated POTS line for this purpose.
The easiest means is to simply send an e-mail to the provider's email-to-text gateway. Which, of course, requires a working internet connection :-).
Note: If you want the pager field to goto someone's SMS "email" like [email protected] you can do the followin.
Create folder $ZENHOME/scripts/ Create the script below. Page Command : $ZENHOME/scripts/mail.pl File: mail.pl
As long as you have sendmail configured then you should be seeing pages.
I was actually able to setup the dialer zenpack at one point to dial a 56K modem and deliver SMS that way, but only T-Mobile's numbers were still working for this method. We ended up running DSL over a dedicated POTS line for this purpose.
http://community.zenoss.org/docs/DOC-5819