contact email id reflects even after removal

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
sunnynani4849
Posts: 31
Joined: Fri Jan 22, 2016 1:04 am

contact email id reflects even after removal

Post by sunnynani4849 »

Hi ,

I have removed one contact email id from the contactgroup, after removal of the email id mails are being sent to the user even after the contact id removal.
I have searched all the files but couldnt find any email id in the configuration files.
Could some one help with this issue.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: contact email id reflects even after removal

Post by tmcdonald »

Have you made sure to restart the nagios service after making the changes? This needs to be done so the updated files can be re-read.
Former Nagios employee
sunnynani4849
Posts: 31
Joined: Fri Jan 22, 2016 1:04 am

Re: contact email id reflects even after removal

Post by sunnynani4849 »

Thanks Donald for the reply,

Even after restarting the nagios, the user is getting the alerts. I have checked all the cfg files but couldnt find the user email id. But i could see the user mail id in the maillog.
eltrasimaco
Posts: 75
Joined: Thu Aug 02, 2012 7:15 am

Re: contact email id reflects even after removal

Post by eltrasimaco »

remove the status.dat and caches and restart everything
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: contact email id reflects even after removal

Post by tmcdonald »

eltrasimaco wrote:remove the status.dat and caches and restart everything
If you do this, bear in mind it will remove any acknowledgements and comments you may have in place.

If you look in the .../var/objects.cache file, do you see the email address there?
Former Nagios employee
sunnynani4849
Posts: 31
Joined: Fri Jan 22, 2016 1:04 am

Re: contact email id reflects even after removal

Post by sunnynani4849 »

Thanks for reply donald.

I couldnt find the user name in the objects.cache file. but i could see the his contact in status.dat file.

I have removed objects.cache and status.dat file and restarted the nagios, still i could see the mail going to the user.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: contact email id reflects even after removal

Post by rkennedy »

Please post the objects.cache for us to review. What contact / email should not be receiving notificataions?

Are you using anything to manage your configuration files on top of Nagios Core?
Former Nagios Employee
sunnynani4849
Posts: 31
Joined: Fri Jan 22, 2016 1:04 am

Re: contact email id reflects even after removal

Post by sunnynani4849 »

Hi rkennedy

removed of the contact name from retention.dat and also deleted the objects.cache file and status.dat then restarted the nagios. now also i can the see contact name in status.dat file.

[root@sv008100 nagios]# cat status.dat | grep XXXX
contact_name=XXXX
You have mail in /var/spool/mail/root
[root@sv008100 nagios]# cat objects.cache | grep XXXX
[root@sv008100 nagios]# cat retention.dat | grep XXXX
[root@sv008100 nagios]#
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: contact email id reflects even after removal

Post by rkennedy »

Are you using anything to manage your configuration files on top of Nagios Core?
Please answer this.

Also, please post the full output of ps -ef. There may be multiple processes running
Former Nagios Employee
sunnynani4849
Posts: 31
Joined: Fri Jan 22, 2016 1:04 am

Re: contact email id reflects even after removal

Post by sunnynani4849 »

Hi rkennedy,

We are using check_mk on the nagios server. Please find the process output

Code: Select all

[root@sv008100 nagios]# ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0  2015 ?        01:23:55 init [3]
root         2     1  0  2015 ?        01:55:29 [migration/0]
root         3     1  0  2015 ?        00:02:35 [ksoftirqd/0]
root         4     1  0  2015 ?        00:00:00 [watchdog/0]
root         5     1  0  2015 ?        01:33:53 [migration/1]
root         6     1  0  2015 ?        00:04:19 [ksoftirqd/1]
root         7     1  0  2015 ?        00:00:00 [watchdog/1]
root         8     1  0  2015 ?        00:00:07 [events/0]
root         9     1  0  2015 ?        00:00:07 [events/1]
root        10     1  0  2015 ?        00:00:00 [khelper]
root        11     1  0  2015 ?        00:00:00 [kthread]
root        15    11  0  2015 ?        00:06:25 [kblockd/0]
root        16    11  0  2015 ?        00:07:44 [kblockd/1]
root        17    11  0  2015 ?        00:00:00 [kacpid]
root       178    11  0  2015 ?        00:00:00 [cqueue/0]
root       179    11  0  2015 ?        00:00:00 [cqueue/1]
root       182    11  0  2015 ?        00:00:00 [khubd]
root       184    11  0  2015 ?        00:00:00 [kseriod]
root       254    11  0  2015 ?        00:00:00 [khungtaskd]
root       255    11  0  2015 ?        01:29:18 [pdflush]
root       256    11  0  2015 ?        06:38:28 [pdflush]
root       257    11  0  2015 ?        00:09:37 [kswapd0]
root       258    11  0  2015 ?        00:00:00 [aio/0]
root       259    11  0  2015 ?        00:00:00 [aio/1]
nagios     377     1  0 14:00 ?        00:00:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg
nagios     378   377  0 14:00 ?        00:00:00 python /var/lib/check_mk/precompiled/sv004324-1
root       478    11  0  2015 ?        00:00:00 [kpsmoused]
root       523    11  0  2015 ?        00:00:03 [mpt_poll_0]
root       524    11  0  2015 ?        00:00:00 [mpt/0]
root       525    11  0  2015 ?        00:00:00 [scsi_eh_0]
root       529    11  0  2015 ?        00:00:00 [ata/0]
root       530    11  0  2015 ?        00:00:00 [ata/1]
root       531    11  0  2015 ?        00:00:00 [ata_aux]
root       538    11  0  2015 ?        00:00:00 [kstriped]
root       551    11  0  2015 ?        00:00:00 [ksnapd]
root       575    11  0  2015 ?        03:14:30 [kjournald]
postfix    598 10478  0 13:10 ?        00:00:00 showq -t unix -u
root       600    11  0  2015 ?        00:01:00 [kauditd]
root       633     1  0  2015 ?        00:00:00 /sbin/udevd -d
nagios    1145     1  0 14:00 ?        00:00:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg
nagios    1147  1145  0 14:00 ?        00:00:00 python /var/lib/check_mk/precompiled/sv004324-2
nagios    1174     1  0 14:00 ?        00:00:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg
nagios    1175  1174  0 14:00 ?        00:00:00 python /var/lib/check_mk/precompiled/sv004324-1
nagios    1317     1  0 14:00 ?        00:00:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg
nagios    1318  1317  0 14:00 ?        00:00:00 python /var/lib/check_mk/precompiled/sv001987
postfix   1910 10478  0 13:45 ?        00:00:00 cleanup -z -t unix -u
root      1923    11  0  2015 ?        00:00:00 [kmpathd/0]
root      1924    11  0  2015 ?        00:00:00 [kmpathd/1]
root      1925    11  0  2015 ?        00:00:00 [kmpath_handlerd]
root      1949    11  0  2015 ?        03:24:36 [kjournald]
root      1954    11  0  2015 ?        00:00:00 [kjournald]
root      2410    11  0  2015 ?        00:00:04 [vmmemctl]
postfix   2573 10478  0 13:36 ?        00:00:00 bounce -z -t unix -u
root      2615     1  0  2015 ?        00:24:50 /usr/sbin/vmtoolsd
nagios    2704     1  0 14:01 ?        00:00:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg
nagios    2705  2704  0 14:01 ?        00:00:00 /usr/lib/nagios/plugins/check_icmp 10.1.3.141 -w 3000.0 80  -c 5000.0 100  -n 1 -i 50ms
nagios    2707     1  0 14:01 ?        00:00:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg
nagios    2708  2707  0 14:01 ?        00:00:00 /usr/lib/nagios/plugins/check_icmp 10.1.4.57 -w 3000.0 80  -c 5000.0 100  -n 1 -i 50ms
nagios    2710     1  0 14:01 ?        00:00:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg
nagios    2711  2710  0 14:01 ?        00:00:00 /usr/lib/nagios/plugins/check_icmp 192.168.240.116 -w 3000.0 80  -c 5000.0 100  -n 1 -i 50ms
nagios    2713     1  0 14:01 ?        00:00:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg
nagios    2714  2713  0 14:01 ?        00:00:00 /usr/lib/nagios/plugins/check_icmp 192.168.240.66 -w 3000.0 80  -c 5000.0 100  -n 1 -i 50ms
nagios    2716     1  0 14:01 ?        00:00:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg
nagios    2717  2716  0 14:01 ?        00:00:00 /usr/lib/nagios/plugins/check_icmp 192.168.97.17 -w 3000.0 80  -c 5000.0 100  -n 1 -i 50ms
nagios    2719     1  0 14:01 ?        00:00:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg
nagios    2720  2719  0 14:01 ?        00:00:00 python /var/lib/check_mk/precompiled/sv004324-2
root      2766 25780  0 14:01 ?        00:00:00 /bin/bash /usr/bin/check_mk_agent
nagios    2818     1  0 14:01 ?        00:00:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg
nagios    2820  2818  0 14:01 ?        00:00:00 python /var/lib/check_mk/precompiled/sv004324-1
root      2901  2766  0 14:01 ?        00:00:00 /bin/bash /usr/bin/check_mk_agent
nagios    2910  1175  0 14:01 ?        00:00:00 sh -c snmpwalk -v1 -c 'public' -m '' -M '' -OQ -OU -On 10.220.5.66 .1.3.6.1.2.1.2.2.1.20 2>/dev/null
root      2911     1  0  2015 ?        00:08:33 auditd
root      2913  2911  0  2015 ?        00:03:02 /sbin/audispd
nagios    2915  2910  0 14:01 ?        00:00:00 snmpwalk -v1 -c        -m  -M  -OQ -OU -On 10.220.5.66 .1.3.6.1.2.1.2.2.1.20
nagios    2916  1318  0 14:01 ?        00:00:00 sh -c snmpwalk -v1 -c 'public' -m '' -M '' -OQ -OU -On 10.161.0.22 .1.3.6.1.2.1.2.2.1.11 2>/dev/null
nagios    2917  2916  0 14:01 ?        00:00:00 snmpwalk -v1 -c        -m  -M  -OQ -OU -On 10.161.0.22 .1.3.6.1.2.1.2.2.1.11
nagios    2933   378  0 14:01 ?        00:00:00 sh -c snmpwalk -v1 -c 'public' -m '' -M '' -OQ -OU -On 10.220.5.66 1.3.6.1.4.1.789.1.5.4.1.3 2>/dev/null
nagios    2934  2933  0 14:01 ?        00:00:00 snmpwalk -v1 -c        -m  -M  -OQ -OU -On 10.220.5.66 1.3.6.1.4.1.789.1.5.4.1.3
nagios    2936  2720  0 14:01 ?        00:00:00 sh -c snmpwalk -v1 -c 'public' -m '' -M '' -OQ -OU -On 10.220.5.67 .1.3.6.1.2.1.2.2.1.2 2>/dev/null
nagios    2937  2936  0 14:01 ?        00:00:00 snmpwalk -v1 -c        -m  -M  -OQ -OU -On 10.220.5.67 .1.3.6.1.2.1.2.2.1.2
root      2945     1  0  2015 ?        00:03:46 irqbalance
nagios    2951  1147  0 14:01 ?        00:00:00 sh -c snmpwalk -v1 -c 'public' -m '' -M '' -OQ -OU -On 10.220.5.67 .1.3.6.1.2.1.2.2.1.20 2>/dev/null
nagios    2952  2951  0 14:01 ?        00:00:00 snmpwalk -v1 -c        -m  -M  -OQ -OU -On 10.220.5.67 .1.3.6.1.2.1.2.2.1.20
nagios    2953  2820  0 14:01 ?        00:00:00 sh -c snmpwalk -v1 -c 'public' -m '' -M '' -OQ -OU -On 10.220.5.66 .1.3.6.1.2.1.2.2.1.2 2>/dev/null
nagios    2954  2953  0 14:01 ?        00:00:00 snmpwalk -v1 -c        -m  -M  -OQ -OU -On 10.220.5.66 .1.3.6.1.2.1.2.2.1.2
rpc       2965     1  0  2015 ?        00:00:00 portmap
root      2966  2901  0 14:01 ?        00:00:00 /bin/bash /usr/bin/check_mk_agent
root      2967  2966  0 14:01 ?        00:00:00 /usr/bin/perl -w /usr/lib/nagios/plugins/check_nagios_performance.pl -o ecol --host localhost
root      2969  2967  0 14:01 ?        00:00:00 /usr/bin/nagiostats -m -D ; -d NUMEXTCMDS1M
root      2970 27309  0 14:01 pts/0    00:00:00 ps -ef
root      2995    11  0  2015 ?        00:00:00 [rpciod/0]
root      2996    11  0  2015 ?        00:00:00 [rpciod/1]
root      3004     1  0  2015 ?        00:00:00 rpc.statd
root      3027     1  0  2015 ?        00:00:00 rpc.idmapd
dbus      3050     1  0  2015 ?        00:00:00 dbus-daemon --system
68        3085     1  0  2015 ?        00:00:51 hald
root      3086  3085  0  2015 ?        00:00:00 hald-runner
68        3096  3086  0  2015 ?        00:00:00 hald-addon-acpi: listening on acpi kernel interface /proc/acpi/event
68        3100  3086  0  2015 ?        00:00:00 hald-addon-keyboard: listening on /dev/input/event0
root      3109  3086  0  2015 ?        00:25:30 hald-addon-storage: polling /dev/hdc
root      3134     1  0  2015 ?        00:38:27 rsyslogd -m 0
root      3138     1  0  2015 ?        00:00:00 rklogd -x
root      3152     1  0  2015 ?        00:01:44 /usr/sbin/snmpd -Lsd -Lf /dev/null -p /var/run/snmpd.pid -a
root      3183     1  0  2015 ?        00:00:06 /usr/sbin/sshd
ntp       3235     1  0  2015 ?        00:03:20 ntpd -u ntp:ntp -p /var/run/ntpd.pid -g
root      3407     1  0  2015 ?        00:00:00 gpm -m /dev/input/mice -t exps2
root      3436     1  0  2015 ?        00:01:32 crond
xfs       3461     1  0  2015 ?        00:00:00 xfs -droppriv -daemon
root      3486     1  0  2015 ?        00:00:00 /usr/sbin/atd
root      3625     1  0  2015 ?        00:00:00 /usr/sbin/smartd -q never
root      3628     1  0  2015 tty1     00:00:00 /sbin/mingetty tty1
root      3629     1  0  2015 tty2     00:00:00 /sbin/mingetty tty2
root      3630     1  0  2015 tty3     00:00:00 /sbin/mingetty tty3
root      3635     1  0  2015 tty4     00:00:00 /sbin/mingetty tty4
root      3637     1  0  2015 tty5     00:00:00 /sbin/mingetty tty5
root      3639     1  0  2015 tty6     00:00:00 /sbin/mingetty tty6
postfix   6219 10478  0 13:46 ?        00:00:00 bounce -z -t unix -u
root      7268  3183  0 13:54 ?        00:00:00 sshd: root@pts/1
apache    7281 28823  0 Aug21 ?        00:00:04 /usr/sbin/httpd
apache    7282 28823  0 Aug21 ?        00:00:04 /usr/sbin/httpd
apache    7283 28823  0 Aug21 ?        00:00:03 /usr/sbin/httpd
apache    7284 28823  0 Aug21 ?        00:00:03 /usr/sbin/httpd
apache    7285 28823  0 Aug21 ?        00:00:04 /usr/sbin/httpd
apache    7286 28823  0 Aug21 ?        00:00:04 /usr/sbin/httpd
apache    7287 28823  0 Aug21 ?        00:00:04 /usr/sbin/httpd
apache    7288 28823  0 Aug21 ?        00:00:04 /usr/sbin/httpd
root      7845  7268  0 13:54 pts/1    00:00:00 -bash
postfix   7873 10478  0 13:46 ?        00:00:00 pickup -l -t fifo -u
root      9283     1  0  2015 ?        03:11:54 dsmc sched -optfile=dsm.opt_fs
root     10478     1  0 Aug16 ?        00:00:17 /usr/libexec/postfix/master
postfix  10481 10478  0 Aug16 ?        00:00:18 qmgr -l -t fifo -u
nagios   12030     1  1 12:19 ?        00:01:39 /usr/bin/nagios -d /etc/nagios/nagios.cfg
nagios   12069     1  2 May02 ?        3-00:26:40 /usr/bin/nagios -d /etc/nagios/nagios.cfg
nagios   12916     1  1 Jul27 ?        12:32:34 /usr/bin/nagios -d /etc/nagios/nagios.cfg
apache   14501 28823  0 Aug21 ?        00:00:03 /usr/sbin/httpd
apache   19048 28823  0 Aug21 ?        00:00:03 /usr/sbin/httpd
postfix  20171 10478  0 13:14 ?        00:00:00 local -t unix
nagios   25647     1  2 May18 ?        2-19:46:20 /usr/bin/nagios -d /etc/nagios/nagios.cfg
root     25780     1  0 Aug24 ?        00:00:02 xinetd -stayalive -pidfile /var/run/xinetd.pid
root     26878  3183  0 11:21 ?        00:00:00 sshd: root@pts/0
apache   27124 28823  0 Aug21 ?        00:00:04 /usr/sbin/httpd
root     27309 26878  0 11:21 pts/0    00:00:00 -bash
root     28823     1  0 Aug19 ?        00:00:00 /usr/sbin/httpd
postfix  30414 10478  0 12:51 ?        00:00:00 trivial-rewrite -n rewrite -t unix -u
apache   31340 28823  0 Aug22 ?        00:00:03 /usr/sbin/httpd
apache   31399 28823  0 Aug22 ?        00:00:03 /usr/sbin/httpd
apache   31400 28823  0 Aug22 ?        00:00:03 /usr/sbin/httpd
root     31654  7845  0 14:00 pts/1    00:00:00 ssh SV006668
You have mail in /var/spool/mail/root
[root@sv008100 nagios]#
Last edited by tmcdonald on Thu Aug 25, 2016 9:43 am, edited 1 time in total.
Reason: Please use [code][/code] tags around long output
Locked