Incidents assiging to wrong group

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
udaykumar
Posts: 66
Joined: Thu Jan 11, 2018 12:55 am

Incidents assiging to wrong group

Post by udaykumar »

Hi Team,

Nagios auto incidents are getting assigned to wrong id.
we have integrated to snow and incidents are getting assigned on basis of hostgroups.

if ( grep( /^Unix$/, @hostgroups ) ) {
$incident->{'assignment_group'} = 'Unix';
} elsif ( grep( /^Storage$/, @hostgroups ) ) {
$incident->{'assignment_group'} = 'Storage';
} elsif ( grep( /^OpenVMS$/, @hostgroups ) ) {
$incident->{'assignment_group'} = 'Unix';
} elsif ( grep( /^DataDomain$/, @hostgroups ) ) {
$incident->{'assignment_group'} = 'Backup';
} elsif ( grep( /^Tape Library$/, @hostgroups ) ) {
$incident->{'assignment_group'} = 'Backup';
} elsif ( grep( /^Brocade$/, @hostgroups ) ) {
$incident->{'assignment_group'} = 'Storage';
} elsif ( grep( /^DELL TP4000$/, @hostgroups ) ) {
$incident->{'assignment_group'} = 'Backup';
} elsif ( grep( /^HP 3PAR$/, @hostgroups ) ) {
$incident->{'assignment_group'} = 'Storage';
} elsif ( grep( /^netscaler$/, @hostgroups ) ) {
$incident->{'assignment_group'} = 'NetScaler';
} else {
$incident->{'assignment_group'} = 'IMOC L1.5';
}
my $SN = ServiceNow->new($CONFIG);

The incidents are assigning to new group service desk which is not at all defined in script.

can you let s know where the issue might be . either nagios or some other log.
please let us know if u want me share any other details
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Incidents assiging to wrong group

Post by scottwilkerson »

This snippet of code isn't enough for us to know how your customization works.

Can you post the whole thing and if it isn't a component how it is being called from Nagios?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked