About service contacts

Jorge Gil georgyboy at gmail.com
Wed Jul 28 10:07:36 CEST 2010


Dear,

I copy you a working example of my Nagios, just define two times the service
with different contacts -it will make it work different for warning
different administrators of different servers:

define service{
use generic-service
host_name www2
service_description HTTP
check_command check_http
is_volatile 0
check_period 24x7
max_check_attempts 2
normal_check_interval 5
retry_check_interval 5
contacts nagiosadmin,nagiosadmin2,nagiosadmin3,nagiosadmin4
notification_interval 0
notification_period 24x7
notification_options c,r,w,u,f
notifications_enabled 1
}

define service{
use generic-service
host_name www2
service_description HTTP
check_command check_http
is_volatile 0
check_period 24x7
max_check_attempts 2
normal_check_interval 5
retry_check_interval 5
contacts fernando,steria
notification_interval 0
notification_period 24x7
notification_options c,r,w,u,f
notifications_enabled 1
}

Kind regards,
Jorge

On Wed, Jul 28, 2010 at 9:51 AM, Mika Chu <ledondo2000 at gmail.com> wrote:

> Dear,
>
> I am a beginning user of nagios, and trying to find a convenient way
> to define different service contacts. For example this,
>
> define service{
>        name                    check_ssh
>        use                     generic-service
>        service_description     SSH
>        host_name               mail,file,backup
>        check_command           check_ssh
>        }
>
> if the mail server ssh has problem, I want to notify user A. If file
> server ssh has prolem, I want to notify user B, and etc.
>
> Please advice how to do that?
> Thanks a lot!
> --
> ---
> Mika Chu
>
>
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://ad.doubleclick.net/clk;226879339;13503038;l?
> http://clk.atdmt.com/CRS/go/247765532/direct/01/
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100728/37b501e3/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
-------------- next part --------------
_______________________________________________
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