My bad! That command is for icinga2. I have never used icinga 1.
Just use the following command to smoke out the culprit (oldcontact).
find / -type f -exec grep -Hn oldcontact "{}" ";"
You can send result to a text file or grep it.
Kind Regards,
Ivo Kidze
From: icinga-users [mailto:[email protected]] On Behalf Of
kanny goud
Sent: Monday, January 14, 2019 11:54 AM
To: Icinga User's Corner <[email protected]>
Subject: Re: [icinga-users] Notifications sending wrong contacts in icinga1.6
I am using icinga 1. 6
Does above command work in icinga 1. 6
On Mon, 14 Jan 2019, 10:11 pm Ivo Kidze
<[email protected]<mailto:[email protected]> wrote:
HI M.KANAKAIAH,
Can you run the following command?
icinga2 object list --type Notification --name * ULSD-sgpulsd-oracle01*
Check the results
user_groups =
user =
Wish you a wonderful day
Kind Regards,
Ivo Kidze
From: icinga-users
[mailto:[email protected]<mailto:[email protected]>]
On Behalf Of kanny goud
Sent: Monday, January 14, 2019 4:46 AM
To: Icinga User's Corner
<[email protected]<mailto:[email protected]>>
Subject: [icinga-users] Notifications sending wrong contacts in icinga1.6
HI Team,
we have few hosts in some locations and whenever hosts are down notifications
are sending wrong contacts and later sent to correct contacts
We have added new contacts and removed the old one but still first sent to old
contacts whenever host down. .
i have checked the contact file and template file and i didn't give the old
contacts information
Please suggest us where i can check the default contacts.
host defination:
define host{
use ulsd-prod-server-sgp
host_name ULSD-sgpulsd-oracle01
alias ULSD-sgpulsd-oracle01
address 165.204.218.46
hostgroups ulsd-servers-2nd-sgp
contact_groups
Compute-EBC-NonGrid-Unix-incident,TCS_DB_Admin,dl.ulsd_alerts_infra
}
logfile :
Jan 11 09:48:04 s_local@cybvmon01 icinga: HOST NOTIFICATION:
regional_helpdesk;ULSD-sgpulsd-oracle01;DOWN;host-notify-by-email;PING CRITICAL
- Packet loss = 100%
Jan 11 09:48:04 s_local@cybvmon01 nagios[10278]: nagios is running
notify.pl<https://urldefense.proofpoint.com/v2/url?u=http-3A__notify.pl&d=DwMFaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=dLhm7TMuuUAhZaaelXPoEPyMbTqxkar-G5Ayny5-yLE&m=dhlMujhvjZP1Eb4CCTMhUM7CKN8xi02KZR1d3TlUpnU&s=_pefiDlyIMir_3Z1AlqfhMW9YbOMhvpOOT5TuNLb-uM&e=>
--hostname ULSD-sgpulsd-oracle01 --hostalias ULSD-sgpulsd-oracle01
--hostaddress 165.204.21
Jan 11 09:48:04 s_local@cybvmon01 icinga: HOST NOTIFICATION:
wcharry;ULSD-sgpulsd-oracle01;DOWN;host-notify-by-email;PING CRITICAL - Packet
loss = 100%
Jan 11 09:48:04 s_local@cybvmon01 nagios[10286]: nagios is running
notify.pl<https://urldefense.proofpoint.com/v2/url?u=http-3A__notify.pl&d=DwMFaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=dLhm7TMuuUAhZaaelXPoEPyMbTqxkar-G5Ayny5-yLE&m=dhlMujhvjZP1Eb4CCTMhUM7CKN8xi02KZR1d3TlUpnU&s=_pefiDlyIMir_3Z1AlqfhMW9YbOMhvpOOT5TuNLb-uM&e=>
--hostname ULSD-sgpulsd-oracle01 --hostalias ULSD-sgpulsd-oracle01
--hostaddress 165.204.21
Jan 11 09:48:04 s_local@cybvmon01 icinga: HOST NOTIFICATION:
yeohjj;ULSD-sgpulsd-oracle01;DOWN;host-notify-by-email;PING CRITICAL - Packet
loss = 100%
Jan 11 09:48:04 s_local@cybvmon01 nagios[10294]: nagios is running
notify.pl<https://urldefense.proofpoint.com/v2/url?u=http-3A__notify.pl&d=DwMFaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=dLhm7TMuuUAhZaaelXPoEPyMbTqxkar-G5Ayny5-yLE&m=dhlMujhvjZP1Eb4CCTMhUM7CKN8xi02KZR1d3TlUpnU&s=_pefiDlyIMir_3Z1AlqfhMW9YbOMhvpOOT5TuNLb-uM&e=>
--hostname ULSD-sgpulsd-oracle01 --hostalias ULSD-sgpulsd-oracle01
--hostaddress 165.204.21
Jan 11 09:48:04 s_local@cybvmon01 icinga: HOST NOTIFICATION:
cheongkw;ULSD-sgpulsd-oracle01;DOWN;host-notify-by-email;PING CRITICAL - Packet
loss = 100%
Jan 11 09:48:04 s_local@cybvmon01 nagios[10302]: nagios is running
notify.pl<https://urldefense.proofpoint.com/v2/url?u=http-3A__notify.pl&d=DwMFaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=dLhm7TMuuUAhZaaelXPoEPyMbTqxkar-G5Ayny5-yLE&m=dhlMujhvjZP1Eb4CCTMhUM7CKN8xi02KZR1d3TlUpnU&s=_pefiDlyIMir_3Z1AlqfhMW9YbOMhvpOOT5TuNLb-uM&e=>
--hostname ULSD-sgpulsd-oracle01 --hostalias ULSD-sgpulsd-oracle01
--hostaddress 165.204.21
Jan 11 09:48:05 s_local@cybvmon01 icinga: HOST NOTIFICATION:
GIS_Taiwan;ULSD-sgpulsd-oracle01;DOWN;host-notify-by-email;PING CRITICAL -
Packet loss = 100%
Jan 11 09:48:05 s_local@cybvmon01 nagios[10310]: nagios is running
notify.pl<https://urldefense.proofpoint.com/v2/url?u=http-3A__notify.pl&d=DwMFaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=dLhm7TMuuUAhZaaelXPoEPyMbTqxkar-G5Ayny5-yLE&m=dhlMujhvjZP1Eb4CCTMhUM7CKN8xi02KZR1d3TlUpnU&s=_pefiDlyIMir_3Z1AlqfhMW9YbOMhvpOOT5TuNLb-uM&e=>
--hostname ULSD-sgpulsd-oracle01 --hostalias ULSD-sgpulsd-oracle01
--hostaddress 165.204.21
Jan 11 09:48:05 s_local@cybvmon01 icinga: HOST NOTIFICATION:
samsu;ULSD-sgpulsd-oracle01;DOWN;host-notify-by-email;PING CRITICAL - Packet
loss = 100%
Jan 11 09:48:05 s_local@cybvmon01 nagios[10318]: nagios is running
notify.pl<https://urldefense.proofpoint.com/v2/url?u=http-3A__notify.pl&d=DwMFaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=dLhm7TMuuUAhZaaelXPoEPyMbTqxkar-G5Ayny5-yLE&m=dhlMujhvjZP1Eb4CCTMhUM7CKN8xi02KZR1d3TlUpnU&s=_pefiDlyIMir_3Z1AlqfhMW9YbOMhvpOOT5TuNLb-uM&e=>
--hostname ULSD-sgpulsd-oracle01 --hostalias ULSD-sgpulsd-oracle01
--hostaddress 165.204.21
the above contacts not given in contact group. please check the definatiion
after two hours its sent correct one but it should send correct one first right:
Jan 11 10:39:02 s_local@cybvmon01 icinga: HOST NOTIFICATION:
Compute-EBC-NonGrid-Unix_incident;ULSD-sgpulsd-oracle01;DOWN;host-notify2-by-incident;PING
CRITICAL - Packe
Jan 11 10:39:02 s_local@cybvmon01 nagios[19730]: nagios is running
notify2.pl<https://urldefense.proofpoint.com/v2/url?u=http-3A__notify2.pl&d=DwMFaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=dLhm7TMuuUAhZaaelXPoEPyMbTqxkar-G5Ayny5-yLE&m=dhlMujhvjZP1Eb4CCTMhUM7CKN8xi02KZR1d3TlUpnU&s=dgcCbhTQC5FOfcTTyyyWzrG0xCoJ6uL-UHjFBI0nCjM&e=>
--hostname ULSD-sgpulsd-oracle01 --hostalias ULSD-sgpulsd-oracle01
--hostaddress 165.204.2
Jan 11 10:39:02 s_local@cybvmon01 nagios[19730]: opts{assignment} value is
Compute-EBC-NonGrid-Unix
Jan 11 10:39:12 s_local@cybvmon01 nagios[19730]: Ticket: INC0833463
Jan 11 10:39:12 s_local@cybvmon01 icinga: HOST NOTIFICATION:
dl.monitoring-tcs;ULSD-sgpulsd-oracle01;DOWN;host-notify-by-email;PING CRITICAL
- Packet loss = 100%
Jan 11 10:39:12 s_local@cybvmon01 nagios[19736]: nagios is running
notify.pl<https://urldefense.proofpoint.com/v2/url?u=http-3A__notify.pl&d=DwMFaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=dLhm7TMuuUAhZaaelXPoEPyMbTqxkar-G5Ayny5-yLE&m=dhlMujhvjZP1Eb4CCTMhUM7CKN8xi02KZR1d3TlUpnU&s=_pefiDlyIMir_3Z1AlqfhMW9YbOMhvpOOT5TuNLb-uM&e=>
--hostname ULSD-sgpulsd-oracle01 --hostalias ULSD-sgpulsd-oracle01
--hostaddress 165.204.21
Jan 11 10:39:12 s_local@cybvmon01 icinga: HOST NOTIFICATION:
dl.dba-admins;ULSD-sgpulsd-oracle01;DOWN;host-notify-by-email;PING CRITICAL -
Packet loss = 100%
Jan 11 10:39:12 s_local@cybvmon01 nagios[19744]: nagios is running
notify.pl<https://urldefense.proofpoint.com/v2/url?u=http-3A__notify.pl&d=DwMFaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=dLhm7TMuuUAhZaaelXPoEPyMbTqxkar-G5Ayny5-yLE&m=dhlMujhvjZP1Eb4CCTMhUM7CKN8xi02KZR1d3TlUpnU&s=_pefiDlyIMir_3Z1AlqfhMW9YbOMhvpOOT5TuNLb-uM&e=>
--hostname ULSD-sgpulsd-oracle01 --hostalias ULSD-sgpulsd-oracle01
--hostaddress 165.204.21
Jan 11 10:39:12 s_local@cybvmon01 icinga: HOST NOTIFICATION:
servicenowqa;ULSD-sgpulsd-oracle01;DOWN;host-notify-by-email;PING CRITICAL -
Packet loss = 100%
Jan 11 10:39:12 s_local@cybvmon01 nagios[19752]: nagios is running
notify.pl<https://urldefense.proofpoint.com/v2/url?u=http-3A__notify.pl&d=DwMFaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=dLhm7TMuuUAhZaaelXPoEPyMbTqxkar-G5Ayny5-yLE&m=dhlMujhvjZP1Eb4CCTMhUM7CKN8xi02KZR1d3TlUpnU&s=_pefiDlyIMir_3Z1AlqfhMW9YbOMhvpOOT5TuNLb-uM&e=>
--hostname ULSD-sgpulsd-oracle01 --hostalias ULSD-sgpulsd-oracle01
--hostaddress 165.204.21
Jan 11 10:39:12 s_local@cybvmon01 icinga: HOST NOTIFICATION:
servicenow;ULSD-sgpulsd-oracle01;DOWN;host-notify-by-email;PING CRITICAL -
Packet loss = 100%
Jan 11 10:39:12 s_local@cybvmon01 nagios[19760]: nagios is running
notify.pl<https://urldefense.proofpoint.com/v2/url?u=http-3A__notify.pl&d=DwMFaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=dLhm7TMuuUAhZaaelXPoEPyMbTqxkar-G5Ayny5-yLE&m=dhlMujhvjZP1Eb4CCTMhUM7CKN8xi02KZR1d3TlUpnU&s=_pefiDlyIMir_3Z1AlqfhMW9YbOMhvpOOT5TuNLb-uM&e=>
--hostname ULSD-sgpulsd-oracle01 --hostalias ULSD-sgpulsd-oracle01
--hostaddress 165.204.21
Jan 11 10:39:13 s_local@cybvmon01 icinga: HOST NOTIFICATION:
ULSDKDSOpsInfosys;ULSD-sgpulsd-oracle01;DOWN;host-notify-by-email;PING CRITICAL
- Packet loss = 100%
Jan 11 10:39:13 s_local@cybvmon01 nagios[19768]: nagios is running
notify.pl<https://urldefense.proofpoint.com/v2/url?u=http-3A__notify.pl&d=DwMFaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=dLhm7TMuuUAhZaaelXPoEPyMbTqxkar-G5Ayny5-yLE&m=dhlMujhvjZP1Eb4CCTMhUM7CKN8xi02KZR1d3TlUpnU&s=_pefiDlyIMir_3Z1AlqfhMW9YbOMhvpOOT5TuNLb-uM&e=>
--hostname ULSD-sgpulsd-oracle01 --hostalias ULSD-sgpulsd-oracle01
--hostaddress 165.204.21
Jan 11 10:39:13 s_local@cybvmon01 icinga: HOST NOTIFICATION:
dl.unix-admins;ULSD-sgpulsd-oracle01;DOWN;host-notify-by-email;PING CRITICAL -
Packet loss = 100%
Jan 11 10:39:13 s_local@cybvmon01 nagios[19776]: nagios is running
notify.pl<https://urldefense.proofpoint.com/v2/url?u=http-3A__notify.pl&d=DwMFaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=dLhm7TMuuUAhZaaelXPoEPyMbTqxkar-G5Ayny5-yLE&m=dhlMujhvjZP1Eb4CCTMhUM7CKN8xi02KZR1d3TlUpnU&s=_pefiDlyIMir_3Z1AlqfhMW9YbOMhvpOOT5TuNLb-uM&e=>
--hostname ULSD-sgpulsd-oracle01 --hostalias ULSD-sgpulsd-oracle01
--hostaddress 165.204.21
Jan 11 10:39:13 s_local@cybvmon01 icinga: HOST NOTIFICATION:
ITSD;ULSD-sgpulsd-oracle01;DOWN;host-notify-by-email;PING CRITICAL - Packet
loss = 100%
Jan 11 10:39:13 s_local@cybvmon01 nagios[19784]: nagios is running
notify.pl<https://urldefense.proofpoint.com/v2/url?u=http-3A__notify.pl&d=DwMFaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=dLhm7TMuuUAhZaaelXPoEPyMbTqxkar-G5Ayny5-yLE&m=dhlMujhvjZP1Eb4CCTMhUM7CKN8xi02KZR1d3TlUpnU&s=_pefiDlyIMir_3Z1AlqfhMW9YbOMhvpOOT5TuNLb-uM&e=>
--hostname ULSD-sgpulsd-oracle01 --hostalias ULSD-sgpulsd-oracle01
--hostaddress 165.204.21
Jan 11 10:39:13 s_local@cybvmon01 icinga: HOST NOTIFICATION:
dl.ulsd_alerts_infra;ULSD-sgpulsd-oracle01;DOWN;host-notify-by-email;PING
CRITICAL - Packet loss = 100%
Jan 11 10:39:13 s_local@cybvmon01 nagios[19792]: nagios is running
notify.pl<https://urldefense.proofpoint.com/v2/url?u=http-3A__notify.pl&d=DwMFaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=dLhm7TMuuUAhZaaelXPoEPyMbTqxkar-G5Ayny5-yLE&m=dhlMujhvjZP1Eb4CCTMhUM7CKN8xi02KZR1d3TlUpnU&s=_pefiDlyIMir_3Z1AlqfhMW9YbOMhvpOOT5TuNLb-uM&e=>
--hostname ULSD-sgpulsd-oracle01 --hostalias ULSD-sgpulsd-oracle01
--hostaddress 165.204.21
--
M.KANAKAIAH
9959491677
_______________________________________________
icinga-users mailing list
[email protected]<mailto:[email protected]>
https://lists.icinga.org/mailman/listinfo/icinga-users<https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.icinga.org_mailman_listinfo_icinga-2Dusers&d=DwMFaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=dLhm7TMuuUAhZaaelXPoEPyMbTqxkar-G5Ayny5-yLE&m=AtxQyJQOoalTik4tSvaGAq4e-QSYZGO11gFPsKFYu0w&s=pMtitco39PqceG9-rdjKwRr-zrDfsZBf7KICKN0EGDM&e=>
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users