serial notification of contacts by call
Mark Musone
mmusone at shatterit.com
Fri Jul 18 18:30:06 CEST 2003
A quick fix is to have nagios send email to a "callout" userid..
Then procmail or whatever mail filter you want to parse and vboxputty
Out..
The wonderful thing about mail programs is that they handle queueing and
serialization automagically..
You can even re-queue it if the phone is busy or fails for some reason!
Hope to help,
Mark
-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Schimpke,
Dr. Thomas / bhn
Sent: Friday, July 18, 2003 12:15 PM
To: Nagios User List (nagios-users at lists.sourceforge.net)
Subject: [Nagios-users] serial notification of contacts by call
Hi all,
I'd like to set up nagios, so that each member of a contactgroup gets a
call
on his mobile phone. I use vboxputty to do the work, which works OK. The
problem seems to be, that nagios tries to call all members of that
contact
group at the same time. From the nagios log file:
[1058538003] SERVICE NOTIFICATION: thomas_call_work;eulep01;P01/saparch
FS;CRITICAL;notify-by-call;DO IT
[1058538003] Warning: Attempting to execute the command "/usr/sbin/sudo
/usr/sbin/vboxputty -r 40 -t 40 -d /dev/ttyI0 -c 215xxx
[1058538003] SERVICE NOTIFICATION: rz_call_work;eulep01;P01/saparch
FS;CRITICAL;notify-by-call;DO IT
[1058538003] Warning: Attempting to execute the command "/usr/sbin/sudo
/usr/sbin/vboxputty -r 40 -t 40 -d /dev/ttyI0 -c 130xxx
[1058538003] SERVICE NOTIFICATION:
matthias_call_work;eulep01;P01/saparch
FS;CRITICAL;notify-by-call;DO IT
[1058538003] Warning: Attempting to execute the command "/usr/sbin/sudo
/usr/sbin/vboxputty -r 40 -t 40 -d /dev/ttyI0 -c 126xxx
[1058538003] SERVICE NOTIFICATION: thomas_call_home;eulep01;P01/saparch
FS;CRITICAL;direct-call-service;DO IT
[1058538033] SERVICE NOTIFICATION: holger_call_home;eulep01;P01/saparch
FS;CRITICAL;notify-by-call;DO IT
[1058538034] Warning: Attempting to execute the command "/usr/sbin/sudo
/usr/sbin/vboxputty -r 40 -t 40 -d /dev/ttyI0 -c 001xxxxxxx
etc.
I took a look at the source code and found, that for a notification
my_system() is called, which essentially forks() and executes the
command
(vboxgetty in this case). vboxgetty does not wait (to my knowledge), if
the
originator line is busy, but returns emmidiately with an error. So only
one
contact of the contactgroup gets notified.
Is there a way to tweak nagios so, that each contact is notified in turn
?
Things look bad..I know...
Thanks in advance,
Thomas
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.500 / Virus Database: 298 - Release Date: 7/10/2003
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.500 / Virus Database: 298 - Release Date: 7/10/2003
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list