Hi all my first post :)
We have Nagios 2.0b4 up and running and no problems there.
But i have now added som service checks which should only be reported to
certian people. (i.e contact group)
I have defined three contact_groups and 5 contacts in my setup
The problem is that with this perticular service_check i get reports to
all the 5 contacts and not the contact group that i have spesified both
under
host_settings , service_settings and under contact group settings.
Am i missing something that over rides my settings ???
I have attached settings from my files.
I have anonymized IP values and names,email's
Best regards
Gabrielli
define timeperiod{
timeperiod_name time_resepsjon
alias Working hours, mon - fri 07:00 to 17:00
monday 08:00-16:00
tuesday 08:00-16:00
wednesday 08:00-16:00
thursday 08:00-16:00
friday 08:00-16:00
}
define contact{
contact_name jga24x7
alias Gabrielli 24x7
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,r
service_notification_commands notify-by-sms
host_notification_commands host-notify-by-sms
email [EMAIL PROTECTED]
}
define contact{
contact_name tsk24x7
alias Skare 24x7
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,r
service_notification_commands notify-by-sms
host_notification_commands host-notify-by-sms
email [EMAIL PROTECTED]
}
define contact{
contact_name jga-wrk
alias Gabrielli 07-17
service_notification_period workhrs
host_notification_period workhrs
service_notification_options w,u,c,r
host_notification_options d,r
service_notification_commands notify-by-email
host_notification_commands host-notify-by-email
email [EMAIL PROTECTED]
}
define contact{
contact_name tsk-wrk
alias Skare 07-17
service_notification_period workhrs
host_notification_period workhrs
service_notification_options w,u,c,r
host_notification_options d,r
service_notification_commands notify-by-email
host_notification_commands host-notify-by-email
email [EMAIL PROTECTED]
}
define contact{
contact_name deskjet-wrk
alias Resepsjon 07-17
service_notification_period time_resepsjon
host_notification_period time_resepsjon
service_notification_options w,u,c,r
host_notification_options d,r
service_notification_commands notify-by-email
host_notification_commands host-notify-by-email
email [EMAIL PROTECTED]
}
define contactgroup{
contactgroup_name eltel-24x7
alias Nagios Alert Members
members jga24x7,tsk24x7
}
define contactgroup{
contactgroup_name eltel-wrk
alias Nagios Daytime Members
members jga-wrk,tsk-wrk
}
define contactgroup{
contactgroup_name toner-wrk
alias HP deskjet refil contact group
members deskjet-wrk
}
#CHECK TONER LEVEL OF HP JETDIRECT
define service{
use generic-service ; Name of service
template to use
hostgroup_name Deskjet
service_description Check HP Deskjet Toner Level
is_volatile 0
check_period time_resepsjon
max_check_attempts 3
normal_check_interval 1
retry_check_interval 1
contact_groups toner-wrk
notification_interval 1440
notification_period time_resepsjon
notifications_enabled 1
notification_options w,u,c,r
check_command check_hptoner
}
define hostgroup{
hostgroup_name Deskjet
alias JetDirect Toner Level
members HPCLJ3700,HPLJ4MW
}
define host{
use generic-host ; Name of host template to use
host_name HPCLJ3700
alias Printer ved INCA 3etg.
address xxx.xxx.xxx.xxx
check_command check-host-alive
parents xxxxxxxxxx
max_check_attempts 10
notification_interval 120
notification_period time_resepsjon
notification_options d,r
contact_groups toner-wrk
}
define host{
use generic-host ; Name of host template to use
host_name HPLJ4MW
alias Printer ved Materiallager 3etg.
address xxx.xxx.xxx.xxx
check_command check-host-alive
parents xxxxxxxxxx
max_check_attempts 10
notification_interval 120
notification_period time_resepsjon
notification_options d,r
contact_groups toner-wrk
}