I'm looking for a way of effectively using multiple contacts each with
multiple contact addresses.  I was hoping to do something like:

        define contact {
                servicegroups           important
                notification_command    by-email
                contact_groups          g
        }

        define serviceescalation {
                servicegroup            important
                notification_command    by-textmessage
                contact_groups          g
        }

        define serviceescalation {
                servicegroup            important
                notification_command    by-phone
                contact_groups          g
        }

        define command {
                name                    by-email
                command                 echo ... |mail -s ... "$CONTACTEMAIL$"
        }

        define command {
                name                    by-textmessage
                command                 echo ... |mail -s ...  
"$CONTACTADDRESS2$"
        }

        define command {
                name                    by-phone
                command                 echo ... 
|/usr/local/sbin/asterisk-callfile ... "$CONTACTADDRESS2$"
        }

However, service escalations don't accept any notification_command.

It's possible to get the desired behavior with multiple logical
contact definitions per person (perhaps using templates to avoid
duplicating their name, etc.) and creating a group for each
notification command, but I wanted to ask if anyone has a better way
of using multiple addresses? 

Thanks,
Justin

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Nagios-users mailing list
[email protected]
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

Reply via email to