Page 2 of 2

Re: Mail only sent to nagiosadmin

Posted: Sat May 31, 2014 12:29 am
by adriang
Thanks for the answer.
Here is the log:

[root@monitor ~]# tail -30 /var/log/maillog
May 31 03:05:33 monitor postfix/pickup[9331]: 0CBF940328: uid=500 from=<nagios>
May 31 03:05:33 monitor postfix/cleanup[10060]: 0CBF940328: message-id=<20140531000533.0CBF940328@monitor.aol.coml>
May 31 03:05:33 monitor postfix/qmgr[27907]: 0CBF940328: from=<nagios@monitor.aol.com>, size=703, nrcpt=1 (queue active)
May 31 03:05:33 monitor postfix/smtp[10062]: 0CBF940328: to=<aol@me.com>, relay=1.2.3.4[1.2.3.4]:25, delay=0.07, delays=0.05/0/0.01/0.01, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 4E7C72ADCC4)
May 31 03:05:33 monitor postfix/qmgr[27907]: 0CBF940328: removed
May 31 04:15:31 monitor postfix/pickup[10146]: 2DEA740328: uid=500 from=<nagios>
May 31 04:15:31 monitor postfix/cleanup[10871]: 2DEA740328: message-id=<20140531011531.2DEA740328@monitor.aol.coml>
May 31 04:15:31 monitor postfix/qmgr[27907]: 2DEA740328: from=<nagios@monitor.aol.com>, size=703, nrcpt=1 (queue active)
May 31 04:15:31 monitor postfix/smtp[10873]: 2DEA740328: to=<aol@me.com>, relay=1.2.3.4[1.2.3.4]:25, delay=0.07, delays=0.05/0.01/0.01/0.01, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 702902ADCC3)
May 31 04:15:31 monitor postfix/qmgr[27907]: 2DEA740328: removed
May 31 05:15:31 monitor postfix/pickup[11188]: 50DBB40328: uid=500 from=<nagios>
May 31 05:15:31 monitor postfix/cleanup[11358]: 50DBB40328: message-id=<20140531021531.50DBB40328@monitor.aol.coml>
May 31 05:15:31 monitor postfix/qmgr[27907]: 50DBB40328: from=<nagios@monitor.aol.com>, size=703, nrcpt=1 (queue active)
May 31 05:15:31 monitor postfix/smtp[11360]: 50DBB40328: to=<aol@me.com>, relay=1.2.3.4[1.2.3.4]:25, delay=0.08, delays=0.03/0/0.01/0.04, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 8FA072ADCCE)
May 31 05:15:31 monitor postfix/qmgr[27907]: 50DBB40328: removed
May 31 06:15:31 monitor postfix/pickup[11188]: 69B0840328: uid=500 from=<nagios>
May 31 06:15:31 monitor postfix/cleanup[11845]: 69B0840328: message-id=<20140531031531.69B0840328@monitor.aol.coml>
May 31 06:15:31 monitor postfix/qmgr[27907]: 69B0840328: from=<nagios@monitor.aol.com>, size=703, nrcpt=1 (queue active)
May 31 06:15:31 monitor postfix/smtp[11847]: 69B0840328: to=<aol@me.com>, relay=1.2.3.4[1.2.3.4]:25, delay=0.06, delays=0.04/0/0/0.01, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as A92CD2ADCC0)
May 31 06:15:31 monitor postfix/qmgr[27907]: 69B0840328: removed
May 31 07:15:31 monitor postfix/pickup[11986]: 6FBE140328: uid=500 from=<nagios>
May 31 07:15:31 monitor postfix/cleanup[12333]: 6FBE140328: message-id=<20140531041531.6FBE140328@monitor.aol.coml>
May 31 07:15:31 monitor postfix/qmgr[27907]: 6FBE140328: from=<nagios@monitor.aol.com>, size=703, nrcpt=1 (queue active)
May 31 07:15:31 monitor postfix/smtp[12335]: 6FBE140328: to=<aol@me.com>, relay=1.2.3.4[1.2.3.4]:25, delay=0.06, delays=0.03/0/0.01/0.01, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as AF49C2ADCB5)
May 31 07:15:31 monitor postfix/qmgr[27907]: 6FBE140328: removed
May 31 08:15:31 monitor postfix/pickup[12785]: 76C8140328: uid=500 from=<nagios>
May 31 08:15:31 monitor postfix/cleanup[12821]: 76C8140328: message-id=<20140531051531.76C8140328@monitor.aol.coml>
May 31 08:15:31 monitor postfix/qmgr[27907]: 76C8140328: from=<nagios@monitor.aol.com>, size=703, nrcpt=1 (queue active)
May 31 08:15:31 monitor postfix/smtp[12823]: 76C8140328: to=<aol@me.com>, relay=1.2.3.4[1.2.3.4]:25, delay=0.06, delays=0.04/0/0.01/0.01, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as B4CD22ADCD6)
May 31 08:15:31 monitor postfix/qmgr[27907]: 76C8140328: removed
[root@monitor ~]#


Adrian

Re: Mail only sent to nagiosadmin

Posted: Sun Jun 01, 2014 7:10 am
by adriang
I did another check - I add a new contact and add him to the hosts:
"contacts adrian"

But he didn't get any mails too.
What can be the problem?

Thanks in advance :(

Adrian

Re: Mail only sent to nagiosadmin

Posted: Mon Jun 02, 2014 4:34 am
by adriang
Unbelievable, I change the hosts confing to:

define host{
use cust ; Inherit default values from a template
host_name ptc ; The name we're giving to this server
alias ptc ; A longer name for the server
address ptc.me.com ; IP address of Remote Linux host
contacts adrian,rachel
}

and again, the notification is sent to nagiosadmin mail, that is not the email fo adrian or rachel.

Any idea?

Thanks in advance

Re: Mail only sent to nagiosadmin

Posted: Mon Jun 02, 2014 8:20 am
by adriang
Well, a new user mistake, I didn't add the contacts to the service.cfg file.
Now it's all good.
:lol:
Adrian