Mass change of message recipients (contactgroups)

Support requests, bug reports, questions etc.

Mass change of message recipients (contactgroups)

Postby wunderhorn » Fri Oct 04, 2013 11:33

Hi there,

First I want to say as a new member Hello and thank you for the brilliant NConf once.

I have a problem: I would like to take out certain contact groups from the backup checks. Since we have configured several hundred checks, I do not want to do this manually. ;-)

We have at our Nagios checks whether the daily backup was successful, several contactgroups stored. Thus, the recipient will also receive an email and a text message.
Now we would like to remove the SMS groups from these checks. Does anyone know a way to do this via a select in the database? Up to now, i didnt find a possibility to do this in NConf using the GUI.

In the services.cfg is looks like this:

define service {
service_description TSM Client Backup Statistics server1
check_command check_tsm_clientbackup!server1
host_name server1
check_period tsm_daily_0830-1030
notification_period tsm_daily_0830-1030
contact_groups +admins,contactgrp_email_windows_day,contactgrp_sms_windows_day
use afi-tsm-service-daily
}

define service {
service_description TSM Client Backup Statistics dbserver2
check_command check_tsm_clientbackup!dbserver2
host_name dbserver2
check_period tsm_daily_0830-1030
notification_period tsm_daily_0830-1030
contact_groups +admins,contactgrp_email_db_day,contactgrp_sms_db_day
use afi-tsm-service-daily
}

After the Mutation ist should look like:

define service {
service_description TSM Client Backup Statistics server1
check_command check_tsm_clientbackup!server1
host_name server1
check_period tsm_daily_0830-1030
notification_period tsm_daily_0830-1030
contact_groups +admins,contactgrp_email_windows_day
use afi-tsm-service-daily
}

define service {
service_description TSM Client Backup Statistics dbserver2
check_command check_tsm_clientbackup!dbserver2
host_name dbserver2
check_period tsm_daily_0830-1030
notification_period tsm_daily_0830-1030
contact_groups +admins,contactgrp_email_db_day
use afi-tsm-service-daily
}

I've looked up the database documentation. But a mass mutation here was beyond my possibilities. Does anyone have an idea how to solve it?

Best regards
Christian
wunderhorn
starter
starter
 
Posts: 3
Joined: Wed Oct 02, 2013 10:08

Mass change of message recipients contactgroups

Postby MichaelPi » Tue Dec 23, 2014 01:51

maxbounty mass import how to ?


it has the import file but does not have affiliate network .

can somene help me setup affiliate network for maxbounty please ?

thanks
MichaelPi
starter
starter
 
Posts: 4
Joined: Wed Dec 10, 2014 03:50


Return to Support (NConf 1.3.0)

Who is online

Users browsing this forum: No registered users and 2 guests

cron