Page 1 of 3

Nagios email alerts.

Posted: Mon Feb 12, 2018 2:20 am
by Knack
hi
i have configured Nagios email notifications on my professional email Id rohit.rai@knackglobal.com from gmail.

but after 1 month email notifications are stopped automatically. can you give me any suggestion for this. first month its working fine. but exact after one month it stopped.

please reply

Re: Nagios email alerts.

Posted: Mon Feb 12, 2018 2:12 pm
by blackrino9
I'd start by looking at the mail log (/var/log/maillog) and see if there are any obvious errors there.

I have several instances of Nagios which are hosted in Azure and every once and a while the public IP address that is uses will end up on a blacklist which prevents it from sending email. When that happens, I can see in the log the mail server is rejecting the message and that I need to go work with Spamhaus to clear it up.

That might not be your issue, but it's bitten me in the rear more than once.

Re: Nagios email alerts.

Posted: Mon Feb 12, 2018 4:29 pm
by npolovenko
Great answer, @blackrino9!
@Knack, Can you share the nagios.log file and mail.log files with us? Preferably I'd like to see these logs from the day where some email notifications were supposed to come in.

Re: Nagios email alerts.

Posted: Mon Feb 19, 2018 9:16 am
by Knack
hi npolovenko

kindly check maillog-20180128 file below and pls update me, what can i do for start email notification again.
also please tell me can we change ping time for 1 minute ???

Code: Select all

Jan 22 20:54:49 in-nagios sendmail[17381]: w0MFOn5A017381: from=nagios, size=449, class=0, nrcpts=1, msgid=<201801221524.w0MFOn5A017381@in-nagios.knackbpo.com>, relay=nagios@localhost
Jan 22 20:54:49 in-nagios postfix/smtpd[17382]: connect from localhost[127.0.0.1]
Jan 22 20:54:49 in-nagios postfix/smtpd[17382]: E31E611114102: client=localhost[127.0.0.1]
Jan 22 20:54:49 in-nagios postfix/cleanup[17385]: E31E611114102: message-id=<201801221524.w0MFOn5A017381@in-nagios.knackbpo.com>
Jan 22 20:54:49 in-nagios postfix/qmgr[16356]: E31E611114102: from=<nagios@in-nagios.knackbpo.com>, size=936, nrcpt=1 (queue active)
Jan 22 20:54:49 in-nagios sendmail[17381]: w0MFOn5A017381: to=support@knackglobal.com, ctladdr=nagios (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30449, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as E31E611114102)
Jan 22 20:54:50 in-nagios postfix/smtpd[17382]: disconnect from localhost[127.0.0.1]
Jan 22 20:54:52 in-nagios postfix/smtp[17386]: E31E611114102: to=<support@knackglobal.com>, relay=aspmx.l.google.com[74.125.24.26]:25, delay=2.2, delays=0.07/0.01/1.5/0.55, dsn=2.0.0, status=sent (250 2.0.0 OK 1516634682 g26si14019978pge.457 - gsmtp)
Jan 22 20:54:52 in-nagios postfix/qmgr[16356]: E31E611114102: removed
Jan 25 02:41:20 in-nagios sendmail[18845]: w0OLBKiJ018845: from=nagios, size=450, class=0, nrcpts=1, msgid=<201801242111.w0OLBKiJ018845@in-nagios.knackbpo.com>, relay=nagios@localhost
Jan 25 02:41:20 in-nagios postfix/smtpd[18846]: connect from localhost[127.0.0.1]
Jan 25 02:41:20 in-nagios postfix/smtpd[18846]: F0F3711114105: client=localhost[127.0.0.1]
Jan 25 02:41:21 in-nagios postfix/cleanup[18849]: F0F3711114105: message-id=<201801242111.w0OLBKiJ018845@in-nagios.knackbpo.com>
Jan 25 02:41:21 in-nagios postfix/qmgr[16356]: F0F3711114105: from=<nagios@in-nagios.knackbpo.com>, size=937, nrcpt=1 (queue active)
Jan 25 02:41:21 in-nagios sendmail[18845]: w0OLBKiJ018845: to=support@knackglobal.com, ctladdr=nagios (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30450, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as F0F3711114105)
Jan 25 02:41:21 in-nagios postfix/smtpd[18846]: disconnect from localhost[127.0.0.1]
Jan 25 02:41:22 in-nagios postfix/smtp[18850]: connect to aspmx.l.google.com[2404:6800:4003:c00::1a]:25: Network is unreachable
Jan 25 02:41:23 in-nagios postfix/smtp[18850]: F0F3711114105: to=<support@knackglobal.com>, relay=aspmx.l.google.com[74.125.24.26]:25, delay=2.4, delays=0.07/0.01/1.6/0.69, dsn=2.0.0, status=sent (250 2.0.0 OK 1516828272 v12-v6si762029plz.436 - gsmtp)
Jan 25 02:41:23 in-nagios postfix/qmgr[16356]: F0F3711114105: removed
Jan 25 02:46:33 in-nagios sendmail[19169]: w0OLGXEw019169: from=nagios, size=449, class=0, nrcpts=1, msgid=<201801242116.w0OLGXEw019169@in-nagios.knackbpo.com>, relay=nagios@localhost
Jan 25 02:46:33 in-nagios postfix/smtpd[19170]: connect from localhost[127.0.0.1]
Jan 25 02:46:33 in-nagios postfix/smtpd[19170]: C329411114105: client=localhost[127.0.0.1]
Jan 25 02:46:33 in-nagios postfix/cleanup[19173]: C329411114105: message-id=<201801242116.w0OLGXEw019169@in-nagios.knackbpo.com>
Jan 25 02:46:33 in-nagios postfix/qmgr[16356]: C329411114105: from=<nagios@in-nagios.knackbpo.com>, size=936, nrcpt=1 (queue active)
Jan 25 02:46:33 in-nagios sendmail[19169]: w0OLGXEw019169: to=support@knackglobal.com, ctladdr=nagios (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30449, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as C329411114105)
Jan 25 02:46:33 in-nagios postfix/smtpd[19170]: disconnect from localhost[127.0.0.1]
Jan 25 02:46:34 in-nagios postfix/smtp[19174]: connect to aspmx.l.google.com[2404:6800:4003:c01::1b]:25: Network is unreachable
Jan 25 02:46:36 in-nagios postfix/smtp[19174]: C329411114105: to=<support@knackglobal.com>, relay=aspmx.l.google.com[74.125.200.27]:25, delay=2.2, delays=0.08/0.01/1.6/0.56, dsn=2.0.0, status=sent (250 2.0.0 OK 1516828585 d13si588404pgu.579 - gsmtp)
Jan 25 02:46:36 in-nagios postfix/qmgr[16356]: C329411114105: removed
Jan 27 02:28:49 in-nagios sendmail[30920]: w0QKwml1030920: from=nagios, size=449, class=0, nrcpts=1, msgid=<201801262058.w0QKwml1030920@in-nagios.knackbpo.com>, relay=nagios@localhost
Jan 27 02:28:49 in-nagios postfix/smtpd[30921]: connect from localhost[127.0.0.1]
Jan 27 02:28:49 in-nagios postfix/smtpd[30921]: 1CA2511114103: client=localhost[127.0.0.1]
Jan 27 02:28:49 in-nagios postfix/cleanup[30924]: 1CA2511114103: message-id=<201801262058.w0QKwml1030920@in-nagios.knackbpo.com>
Jan 27 02:28:49 in-nagios postfix/qmgr[16356]: 1CA2511114103: from=<nagios@in-nagios.knackbpo.com>, size=936, nrcpt=1 (queue active)
Jan 27 02:28:49 in-nagios sendmail[30920]: w0QKwml1030920: to=support@knackglobal.com, ctladdr=nagios (1000/1000), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30449, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 1CA2511114103)
Jan 27 02:28:49 in-nagios postfix/smtpd[30921]: disconnect from localhost[127.0.0.1]
Jan 27 02:28:50 in-nagios postfix/smtp[30925]: 1CA2511114103: to=<support@knackglobal.com>, relay=aspmx.l.google.com[74.125.24.27]:25, delay=1.3, delays=0.07/0.01/0.62/0.59, dsn=2.0.0, status=sent (250 2.0.0 OK 1517000318 s9-v6si4113503plr.778 - gsmtp)
Jan 27 02:28:50 in-nagios postfix/qmgr[16356]: 1CA2511114103: removed
Jan 27 02:54:05 in-nagios sendmail[32462]: w0QLO4mV032462: from=nagios, size=448, class=0, nrcpts=1, msgid=<201801262124.w0QLO4mV032462@in-nagios.knackbpo.com>, relay=nagios@localhost
Jan 27 02:54:05 in-nagios postfix/smtpd[32463]: connect from localhost[127.0.0.1]
Jan 27 02:54:05 in-nagios postfix/smtpd[32463]: 27EC811114103: client=localhost[127.0.0.1]
Jan 27 02:54:05 in-nagios postfix/cleanup[32466]: 27EC811114103: message-id=<201801262124.w0QLO4mV032462@in-nagios.knackbpo.com>
Jan 27 02:54:05 in-nagios postfix/qmgr[16356]: 27EC811114103: from=<nagios@in-nagios.knackbpo.com>, size=935, nrcpt=1 (queue active)
Jan 27 02:54:05 in-nagios sendmail[32462]: w0QLO4mV032462: to=support@knackglobal.com, ctladdr=nagios (1000/1000), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30448, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 27EC811114103)
Jan 27 02:54:05 in-nagios postfix/smtpd[32463]: disconnect from localhost[127.0.0.1]
Jan 27 02:54:07 in-nagios postfix/smtp[32467]: 27EC811114103: to=<support@knackglobal.com>, relay=aspmx.l.google.com[74.125.130.27]:25, delay=2.3, delays=0.07/0.01/1.6/0.59, dsn=2.0.0, status=sent (250 2.0.0 OK 1517001835 q188si3498147pga.444 - gsmtp)
Jan 27 02:54:07 in-nagios postfix/qmgr[16356]: 27EC811114103: removed

Re: Nagios email alerts.

Posted: Mon Feb 19, 2018 9:21 am
by Knack
hi
i have created nagios on our local ip where i connecte to more than 100 hosts.
can i change my local ip?

Re: Nagios email alerts.

Posted: Mon Feb 19, 2018 9:30 am
by Knack
hi
kindly check logs of 3 feb 2018

Code: Select all

nagios postfix/qmgr[16356]: 678E311114106: from=<nagios@in-nagios.knackbpo.com>, size=928, nrcpt=1 (queue active)
Feb  3 08:49:32 in-nagios sendmail[17750]: w133JWEA017750: to=support@knackglobal.com, ctladdr=nagios (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30442, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 678E311114106)
Feb  3 08:49:32 in-nagios postfix/smtpd[17751]: disconnect from localhost[127.0.0.1]
Feb  3 08:49:33 in-nagios postfix/smtp[17755]: 678E311114106: to=<support@knackglobal.com>, relay=aspmx.l.google.com[74.125.24.27]:25, delay=1.5, delays=0.07/0.01/0.8/0.6, dsn=2.0.0, status=sent (250 2.0.0 OK 1517627959 c8-v6si1484786pli.779 - gsmtp)
Feb  3 08:49:33 in-nagios postfix/qmgr[16356]: 678E311114106: removed
Feb  3 09:22:32 in-nagios sendmail[19789]: w133qWin019789: from=nagios, size=450, class=0, nrcpts=1, msgid=<201802030352.w133qWin019789@in-nagios.knackbpo.com>, relay=nagios@localhost
Feb  3 09:22:32 in-nagios postfix/smtpd[19792]: connect from localhost[127.0.0.1]
Feb  3 09:22:32 in-nagios postfix/smtpd[19792]: 6F37D11114106: client=localhost[127.0.0.1]
Feb  3 09:22:32 in-nagios postfix/cleanup[19795]: 6F37D11114106: message-id=<201802030352.w133qWin019789@in-nagios.knackbpo.com>
Feb  3 09:22:32 in-nagios sendmail[19789]: w133qWin019789: to=support@knackglobal.com, ctladdr=nagios (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30450, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 6F37D11114106)
Feb  3 09:22:32 in-nagios postfix/qmgr[16356]: 6F37D11114106: from=<nagios@in-nagios.knackbpo.com>, size=936, nrcpt=1 (queue active)
Feb  3 09:22:32 in-nagios postfix/smtpd[19792]: disconnect from localhost[127.0.0.1]
Feb  3 09:22:33 in-nagios postfix/smtp[19796]: 6F37D11114106: to=<support@knackglobal.com>, relay=aspmx.l.google.com[74.125.24.27]:25, delay=1.3, delays=0.08/0.01/0.6/0.64, dsn=2.0.0, status=sent (250 2.0.0 OK 1517629939 f9-v6si2977532pln.211 - gsmtp)
Feb  3 09:22:33 in-nagios postfix/qmgr[16356]: 6F37D11114106: removed
Feb  3 09:55:32 in-nagios sendmail[21876]: w134PW3f021876: from=nagios, size=450, class=0, nrcpts=1, msgid=<201802030425.w134PW3f021876@in-nagios.knackbpo.com>, relay=nagios@localhost
Feb  3 09:55:32 in-nagios postfix/smtpd[21877]: connect from localhost[127.0.0.1]
Feb  3 09:55:32 in-nagios postfix/smtpd[21877]: B514111114106: client=localhost[127.0.0.1]
Feb  3 09:55:32 in-nagios postfix/cleanup[21880]: B514111114106: message-id=<201802030425.w134PW3f021876@in-nagios.knackbpo.com>
Feb  3 09:55:32 in-nagios sendmail[21876]: w134PW3f021876: to=support@knackglobal.com, ctladdr=nagios (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30450, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as B514111114106)
Feb  3 09:55:32 in-nagios postfix/qmgr[16356]: B514111114106: from=<nagios@in-nagios.knackbpo.com>, size=936, nrcpt=1 (queue active)
Feb  3 09:55:32 in-nagios postfix/smtpd[21877]: disconnect from localhost[127.0.0.1]
Feb  3 09:55:34 in-nagios postfix/smtp[21881]: B514111114106: to=<support@knackglobal.com>, relay=aspmx.l.google.com[74.125.24.26]:25, delay=1.4, delays=0.08/0.01/0.63/0.66, dsn=2.0.0, status=sent (250 2.0.0 OK 1517631919 t5-v6si832878ply.489 - gsmtp)
Feb  3 09:55:34 in-nagios postfix/qmgr[16356]: B514111114106: removed
Feb  3 10:28:32 in-nagios sendmail[23978]: w134wWxT023978: from=nagios, size=450, class=0, nrcpts=1, msgid=<201802030458.w134wWxT023978@in-nagios.knackbpo.com>, relay=nagios@localhost
Feb  3 10:28:32 in-nagios postfix/smtpd[23979]: connect from localhost[127.0.0.1]
Feb  3 10:28:32 in-nagios postfix/smtpd[23979]: 959D811114106: client=localhost[127.0.0.1]
Feb  3 10:28:32 in-nagios postfix/cleanup[23982]: 959D811114106: message-id=<201802030458.w134wWxT023978@in-nagios.knackbpo.com>
Feb  3 10:28:32 in-nagios postfix/qmgr[16356]: 959D811114106: from=<nagios@in-nagios.knackbpo.com>, size=936, nrcpt=1 (queue active)
Feb  3 10:28:32 in-nagios sendmail[23978]: w134wWxT023978: to=support@knackglobal.com, ctladdr=nagios (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30450, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 959D811114106)
Feb  3 10:28:32 in-nagios postfix/smtp[23983]: connect to aspmx.l.google.com[2404:6800:4008:c07::1a]:25: Network is unreachable
Feb  3 10:28:32 in-nagios postfix/smtpd[23979]: disconnect from localhost[127.0.0.1]
Feb  3 10:28:34 in-nagios postfix/smtp[23983]: 959D811114106: to=<support@knackglobal.com>, relay=aspmx.l.google.com[64.233.189.26]:25, delay=1.4, delays=0.08/0.01/0.7/0.66, dsn=2.0.0, status=sent (250 2.0.0 OK 1517633899 v1-v6si564319ply.829 - gsmtp)
Feb  3 10:28:34 in-nagios postfix/qmgr[16356]: 959D811114106: removed
Feb  3 11:01:32 in-nagios sendmail[25993]: w135VWO7025993: from=nagios, size=450, class=0, nrcpts=1, msgid=<201802030531.w135VWO7025993@in-nagios.knackbpo.com>, relay=nagios@localhost
Feb  3 11:01:32 in-nagios postfix/smtpd[25994]: connect from localhost[127.0.0.1]
Feb  3 11:01:32 in-nagios postfix/smtpd[25994]: 8679711114106: client=localhost[127.0.0.1]
Feb  3 11:01:32 in-nagios postfix/cleanup[25997]: 8679711114106: message-id=<201802030531.w135VWO7025993@in-nagios.knackbpo.com>
Feb  3 11:01:32 in-nagios postfix/qmgr[16356]: 8679711114106: from=<nagios@in-nagios.knackbpo.com>, size=936, nrcpt=1 (queue active)
Feb  3 11:01:32 in-nagios sendmail[25993]: w135VWO7025993: to=support@knackglobal.com, ctladdr=nagios (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30450, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 8679711114106)
Feb  3 11:01:32 in-nagios postfix/smtpd[25994]: disconnect from localhost[127.0.0.1]
Feb  3 11:01:33 in-nagios postfix/smtp[25998]: 8679711114106: to=<support@knackglobal.com>, relay=aspmx.l.google.com[74.125.24.27]:25, delay=1.3, delays=0.07/0.01/0.63/0.59, dsn=2.0.0, status=sent (250 2.0.0 OK 1517635879 d10-v6si1114158plm.539 - gsmtp)
Feb  3 11:01:33 in-nagios postfix/qmgr[16356]: 8679711114106: removed
Feb  3 11:34:32 in-nagios sendmail[28022]: w1364WZp028022: from=nagios, size=450, class=0, nrcpts=1, msgid=<201802030604.w1364WZp028022@in-nagios.knackbpo.com>, relay=nagios@localhost
Feb  3 11:34:32 in-nagios postfix/smtpd[28026]: connect from localhost[127.0.0.1]
Feb  3 11:34:32 in-nagios postfix/smtpd[28026]: 91BF411114106: client=localhost[127.0.0.1]
Feb  3 11:34:32 in-nagios postfix/cleanup[28029]: 91BF411114106: message-id=<201802030604.w1364WZp028022@in-nagios.knackbpo.com>
Feb  3 11:34:32 in-nagios postfix/qmgr[16356]: 91BF411114106: from=<nagios@in-nagios.knackbpo.com>, size=936, nrcpt=1 (queue active)
Feb  3 11:34:32 in-nagios sendmail[28022]: w1364WZp028022: to=support@knackglobal.com, ctladdr=nagios (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30450, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 91BF411114106)
Feb  3 11:34:32 in-nagios postfix/smtp[28030]: connect to aspmx.l.google.com[2404:6800:4003:c00::1a]:25: Network is unreachable
Feb  3 11:34:32 in-nagios postfix/smtpd[28026]: disconnect from localhost[127.0.0.1]
Feb  3 11:34:33 in-nagios postfix/smtp[28030]: 91BF411114106: to=<support@knackglobal.com>, relay=aspmx.l.google.com[74.125.130.27]:25, delay=1.4, delays=0.08/0.01/0.63/0.68, dsn=2.0.0, status=sent (250 2.0.0 OK 1517637859 u91-v6si1034984plb.5 - gsmtp)
Feb  3 11:34:33 in-nagios postfix/qmgr[16356]: 91BF411114106: removed
Feb  3 12:07:32 in-nagios sendmail[30045]: w136bWH6030045: from=nagios, size=450, class=0, nrcpts=1, msgid=<201802030637.w136bWH6030045@in-nagios.knackbpo.com>, relay=nagios@localhost
Feb  3 12:07:32 in-nagios postfix/smtpd[30046]: connect from localhost[127.0.0.1]
Feb  3 12:07:32 in-nagios postfix/smtpd[30046]: D96DA11114106: client=localhost[127.0.0.1]
Feb  3 12:07:32 in-nagios postfix/cleanup[30049]: D96DA11114106: message-id=<201802030637.w136bWH6030045@in-nagios.knackbpo.com>
Feb  3 12:07:32 in-nagios postfix/qmgr[16356]: D96DA11114106: from=<nagios@in-nagios.knackbpo.com>, size=936, nrcpt=1 (queue active)
Feb  3 12:07:32 in-nagios sendmail[30045]: w136bWH6030045: to=support@knackglobal.com, ctladdr=nagios (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30450, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as D96DA11114106)
Feb  3 12:07:32 in-nagios postfix/smtp[30050]: connect to aspmx.l.google.com[2404:6800:4003:c03::1a]:25: Network is unreachable
Feb  3 12:07:32 in-nagios postfix/smtpd[30046]: disconnect from localhost[127.0.0.1]
Feb  3 12:07:34 in-nagios postfix/smtp[30050]: D96DA11114106: to=<support@knackglobal.com>, relay=aspmx.l.google.com[74.125.24.26]:25, delay=1.3, delays=0.08/0.01/0.61/0.58, dsn=2.0.0, status=sent (250 2.0.0 OK 1517639839 y34-v6si3207729plb.403 - gsmtp)
Feb  3 12:07:34 in-nagios postfix/qmgr[16356]: D96DA11114106: removed
Feb  3 12:40:32 in-nagios sendmail[32059]: w137AWZQ032059: from=nagios, size=450, class=0, nrcpts=1, msgid=<201802030710.w137AWZQ032059@in-nagios.knackbpo.com>, relay=nagios@localhost
Feb  3 12:40:32 in-nagios postfix/smtpd[32060]: connect from localhost[127.0.0.1]
Feb  3 12:40:32 in-nagios postfix/smtpd[32060]: 9FAA411114106: client=localhost[127.0.0.1]
Feb  3 12:40:32 in-nagios postfix/cleanup[32063]: 9FAA411114106: message-id=<201802030710.w137AWZQ032059@in-nagios.knackbpo.com>
Feb  3 12:40:32 in-nagios sendmail[32059]: w137AWZQ032059: to=support@knackglobal.com, ctladdr=nagios (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30450, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 9FAA411114106)
Feb  3 12:40:32 in-nagios postfix/qmgr[16356]: 9FAA411114106: from=<nagios@in-nagios.knackbpo.com>, size=936, nrcpt=1 (queue active)
Feb  3 12:40:32 in-nagios postfix/smtp[32064]: connect to aspmx.l.google.com[2404:6800:4003:c00::1a]:25: Network is unreachable
Feb  3 12:40:32 in-nagios postfix/smtpd[32060]: disconnect from localhost[127.0.0.1]
Feb  3 12:40:34 in-nagios postfix/smtp[32064]: 9FAA411114106: to=<support@knackglobal.com>, relay=aspmx.l.google.com[108.177.97.26]:25, delay=1.6, delays=0.07/0.01/0.71/0.83, dsn=2.0.0, status=sent (250 2.0.0 OK 1517641819 s19-v6si3231878plp.116 - gsmtp)
Feb  3 12:40:34 in-nagios postfix/qmgr[16356]: 9FAA411114106: removed
Feb  3 13:13:32 in-nagios sendmail[1714]: w137hWL0001714: from=nagios, size=450, class=0, nrcpts=1, msgid=<201802030743.w137hWL0001714@in-nagios.knackbpo.com>, relay=nagios@localhost
Feb  3 13:13:32 in-nagios postfix/smtpd[1715]: connect from localhost[127.0.0.1]
Feb  3 13:13:32 in-nagios postfix/smtpd[1715]: A4A8C11114106: client=localhost[127.0.0.1]
Feb  3 13:13:32 in-nagios postfix/cleanup[1718]: A4A8C11114106: message-id=<201802030743.w137hWL0001714@in-nagios.knackbpo.com>
Feb  3 13:13:32 in-nagios postfix/qmgr[16356]: A4A8C11114106: from=<nagios@in-nagios.knackbpo.com>, size=936, nrcpt=1 (queue active)
Feb  3 13:13:32 in-nagios sendmail[1714]: w137hWL0001714: to=support@knackglobal.com, ctladdr=nagios (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30450, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as A4A8C11114106)
Feb  3 13:13:32 in-nagios postfix/smtpd[1715]: disconnect from localhost[127.0.0.1]
Feb  3 13:13:34 in-nagios postfix/smtp[1719]: A4A8C11114106: to=<support@knackglobal.com>, relay=aspmx.l.google.com[74.125.130.27]:25, delay=1.7, delays=0.07/0.01/0.71/0.89, dsn=2.0.0, status=sent (250 2.0.0 OK 1517643799 w29si3264219pfa.121 - gsmtp)
Feb  3 13:13:34 in-nagios postfix/qmgr[16356]: A4A8C11114106: removed
Feb  3 13:46:32 in-nagios sendmail[3731]: w138GWHl003731: from=nagios, size=450, class=0, nrcpts=1, msgid=<201802030816.w138GWHl003731@in-nagios.knackbpo.com>, relay=nagios@localhost
Feb  3 13:46:32 in-nagios postfix/smtpd[3732]: connect from localhost[127.0.0.1]
Feb  3 13:46:32 in-nagios postfix/smtpd[3732]: ADA0111114106: client=localhost[127.0.0.1]
Feb  3 13:46:32 in-nagios postfix/cleanup[3735]: ADA0111114106: message-id=<201802030816.w138GWHl003731@in-nagios.knackbpo.com>
Feb  3 13:46:32 in-nagios postfix/qmgr[16356]: ADA0111114106: from=<nagios@in-nagios.knackbpo.com>, size=936, nrcpt=1 (queue active)
Feb  3 13:46:32 in-nagios sendmail[3731]: w138GWHl003731: to=support@knackglobal.com, ctladdr=nagios (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30450, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as ADA0111114106)
Feb  3 13:46:32 in-nagios postfix/smtpd[3732]: disconnect from localhost[127.0.0.1]
Feb  3 13:46:33 in-nagios postfix/smtp[3736]: connect to aspmx.l.google.com[2404:6800:4003:c00::1b]:25: Network is unreachable
Feb  3 13:46:35 in-nagios postfix/smtp[3736]: ADA0111114106: to=<support@knackglobal.com>, relay=aspmx.l.google.com[74.125.200.26]:25, delay=2.4, delays=0.08/0.01/1.4/0.89, dsn=2.0.0, status=sent (250 2.0.0 OK 1517645780 j124si2658557pgc.692 - gsmtp)
Feb  3 13:46:35 in-nagios postfix/qmgr[16356]: ADA0111114106: removed
Feb  3 14:19:32 in-nagios sendmail[5736]: w138nWaY005736: from=nagios, size=450, class=0, nrcpts=1, msgid=<201802030849.w138nWaY005736@in-nagios.knackbpo.com>, relay=nagios@localhost
Feb  3 14:19:33 in-nagios postfix/smtpd[5740]: connect from localhost[127.0.0.1]
Feb  3 14:19:33 in-nagios postfix/smtpd[5740]: 0806B11114106: client=localhost[127.0.0.1]
Feb  3 14:19:33 in-nagios postfix/cleanup[5743]: 0806B11114106: message-id=<201802030849.w138nWaY005736@in-nagios.knackbpo.com>
Feb  3 14:19:33 in-nagios postfix/qmgr[16356]: 0806B11114106: from=<nagios@in-nagios.knackbpo.com>, size=936, nrcpt=1 (queue active)
Feb  3 14:19:33 in-nagios sendmail[5736]: w138nWaY005736: to=support@knackglobal.com, ctladdr=nagios (1000/1000), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30450, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 0806B11114106)
Feb  3 14:19:33 in-nagios postfix/smtpd[5740]: disconnect from localhost[127.0.0.1]
Feb  3 14:19:33 in-nagios postfix/smtp[5744]: connect to aspmx.l.google.com[2404:6800:4008:c04::1a]:25: Network is unreachable
Feb  3 14:19:35 in-nagios postfix/smtp[5744]: 0806B11114106: to=<support@knackglobal.com>, relay=aspmx.l.google.com[64.233.189.26]:25, delay=2.3, delays=0.07/0.01/1.4/0.8, dsn=2.0.0, status=sent (250 2.0.0 OK 1517647760 f35-v6si3394878plh.424 - gsmtp)
Feb  3 14:19:35 in-nagios postfix/qmgr[16356]: 0806B11114106: removed
Feb  3 14:52:32 in-nagios sendmail[7727]: w139MWL3007727: from=nagios, size=450, class=0, nrcpts=1, msgid=<201802030922.w139MWL3007727@in-nagios.knackbpo.com>, relay=nagios@localhost
Feb  3 14:52:32 in-nagios postfix/smtpd[7728]: connect from localhost[127.0.0.1]
Feb  3 14:52:32 in-nagios postfix/smtpd[7728]: C7CEE11114106: client=localhost[127.0.0.1]
Feb  3 14:52:32 in-nagios postfix/cleanup[7731]: C7CEE11114106: message-id=<201802030922.w139MWL3007727@in-nagios.knackbpo.com>
Feb  3 14:52:32 in-nagios postfix/qmgr[16356]: C7CEE11114106: from=<nagios@in-nagios.knackbpo.com>, size=936, nrcpt=1 (queue active)
Feb  3 14:52:32 in-nagios sendmail[7727]: w139MWL3007727: to=support@knackglobal.com, ctladdr=nagios (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30450, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as C7CEE11114106)
Feb  3 14:52:32 in-nagios postfix/smtpd[7728]: disconnect from localhost[127.0.0.1]
Feb  3 14:52:33 in-nagios postfix/smtp[7732]: connect to aspmx.l.google.com[2404:6800:4003:c02::1a]:25: Network is unreachable
Feb  3 14:52:35 in-nagios postfix/smtp[7732]: C7CEE11114106: to=<support@knackglobal.com>, relay=aspmx.l.google.com[74.125.68.26]:25, delay=2.4, delays=0.08/0.01/1.5/0.84, dsn=2.0.0, status=sent (250 2.0.0 OK 1517649740 v10-v6si1206546plo.820 - gsmtp)
Feb  3 14:52:35 in-nagios postfix/qmgr[16356]: C7CEE11114106: removed
Feb  3 15:25:32 in-nagios sendmail[9745]: w139tWvg009745: from=nagios, size=450, class=0, nrcpts=1, msgid=<201802030955.w139tWvg009745@in-nagios.knackbpo.com>, relay=nagios@localhost
Feb  3 15:25:32 in-nagios postfix/smtpd[9746]: connect from localhost[127.0.0.1]
Feb  3 15:25:32 in-nagios postfix/smtpd[9746]: CF14D11114106: client=localhost[127.0.0.1]
Feb  3 15:25:32 in-nagios postfix/cleanup[9749]: CF14D11114106: message-id=<201802030955.w139tWvg009745@in-nagios.knackbpo.com>
Feb  3 15:25:32 in-nagios postfix/qmgr[16356]: CF14D11114106: from=<nagios@in-nagios.knackbpo.com>, size=936, nrcpt=1 (queue active)
Feb  3 15:25:32 in-nagios sendmail[9745]: w139tWvg009745: to=support@knackglobal.com, ctladdr=nagios (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30450, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as CF14D11114106)
Feb  3 15:25:32 in-nagios postfix/smtpd[9746]: disconnect from localhost[127.0.0.1]
Feb  3 15:25:34 in-nagios postfix/smtp[9750]: CF14D11114106: to=<support@knackglobal.com>, relay=aspmx.l.google.com[74.125.200.27]:25, delay=1.6, delays=0.08/0.01/0.59/0.89, dsn=2.0.0, status=sent (250 2.0.0 OK 1517651719 x3-v6si3508824plr.586 - gsmtp)
Feb  3 15:25:34 in-nagios postfix/qmgr[16356]: CF14D11114106: removed
Feb  3 15:58:32 in-nagios sendmail[11721]: w13ASWew011721: from=nagios, size=450, class=0, nrcpts=1, msgid=<201802031028.w13ASWew011721@in-nagios.knackbpo.com>, relay=nagios@localhost
Feb  3 15:58:32 in-nagios postfix/smtpd[11724]: connect from localhost[127.0.0.1]
Feb  3 15:58:32 in-nagios postfix/smtpd[11724]: D6A7411114106: client=localhost[127.0.0.1]
Feb  3 15:58:32 in-nagios postfix/cleanup[11727]: D6A7411114106: message-id=<201802031028.w13ASWew011721@in-nagios.knackbpo.com>
Feb  3 15:58:32 in-nagios sendmail[11721]: w13ASWew011721: to=support@knackglobal.com, ctladdr=nagios (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30450, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as D6A7411114106)
Feb  3 15:58:32 in-nagios postfix/qmgr[16356]: D6A7411114106: from=<nagios@in-nagios.knackbpo.com>, size=936, nrcpt=1 (queue active)
Feb  3 15:58:32 in-nagios postfix/smtp[11728]: connect to aspmx.l.google.com[2404:6800:4003:c03::1a]:25: Network is unreachable
Feb  3 15:58:32 in-nagios postfix/smtpd[11724]: disconnect from localhost[127.0.0.1]
Feb  3 15:58:34 in-nagios postfix/smtp[11728]: D6A7411114106: to=<support@knackglobal.com>, relay=aspmx.l.google.com[74.125.24.27]:25, delay=1.5, delays=0.08/0.01/0.84/0.59, dsn=2.0.0, status=sent (250 2.0.0 OK 1517653699 98-v6si904680pla.756 - gsmtp)
Feb  3 15:58:34 in-nagios postfix/qmgr[16356]: D6A7411114106: removed
Feb  3 16:31:33 in-nagios sendmail[13757]: w13B1WtJ013757: from=nagios, size=450, class=0, nrcpts=1, msgid=<201802031101.w13B1WtJ013757@in-nagios.knackbpo.com>, relay=nagios@localhost
Feb  3 16:31:33 in-nagios postfix/smtpd[13758]: connect from localhost[127.0.0.1]
Feb  3 16:31:33 in-nagios postfix/smtpd[13758]: 36D4311114106: client=localhost[127.0.0.1]
Feb  3 16:31:33 in-nagios postfix/cleanup[13761]: 36D4311114106: message-id=<201802031101.w13B1WtJ013757@in-nagios.knackbpo.com>
Feb  3 16:31:33 in-nagios postfix/qmgr[16356]: 36D4311114106: from=<nagios@in-nagios.knackbpo.com>, size=936, nrcpt=1 (queue active)
Feb  3 16:31:33 in-nagios sendmail[13757]: w13B1WtJ013757: to=support@knackglobal.com, ctladdr=nagios (1000/1000), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30450, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 36D4311114106)
Feb  3 16:31:33 in-nagios postfix/smtpd[13758]: disconnect from localhost[127.0.0.1]
Feb  3 16:31:37 in-nagios postfix/smtp[13762]: 36D4311114106: to=<support@knackglobal.com>, relay=aspmx.l.google.com[74.125.24.26]:25, delay=3.8, delays=0.07/0.01/3/0.71, dsn=2.0.0, status=sent (250 2.0.0 OK 1517655682 j17si768095pgv.685 - gsmtp)
Feb  3 16:31:37 in-nagios postfix/qmgr[16356]: 36D4311114106: removed
Feb  3 17:04:33 in-nagios sendmail[15746]: w13BYW8J015746: from=nagios, size=450, class=0, nrcpts=1, msgid=<201802031134.w13BYW8J015746@in-nagios.knackbpo.com>, relay=nagios@localhost
Feb  3 17:04:33 in-nagios postfix/smtpd[15749]: connect from localhost[127.0.0.1]
Feb  3 17:04:33 in-nagios postfix/smtpd[15749]: 4222111114106: client=localhost[127.0.0.1]
Feb  3 17:04:33 in-nagios postfix/cleanup[15752]: 4222111114106: message-id=<201802031134.w13BYW8J015746@in-nagios.knackbpo.com>
Feb  3 17:04:33 in-nagios postfix/qmgr[16356]: 4222111114106: from=<nagios@in-nagios.knackbpo.com>, size=936, nrcpt=1 (queue active)
Feb  3 17:04:33 in-nagios sendmail[15746]: w13BYW8J015746: to=support@knackglobal.com, ctladdr=nagios (1000/1000), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30450, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 4222111114106)
Feb  3 17:04:33 in-nagios postfix/smtpd[15749]: disconnect from localhost[127.0.0.1]
Feb  3 17:04:34 in-nagios postfix/smtp[15753]: 4222111114106: to=<support@knackglobal.com>, relay=aspmx.l.google.com[74.125.200.26]:25, delay=1.3, delays=0.07/0.01/0.6/0.65, dsn=2.0.0, status=sent (250 2.0.0 OK 1517657659 w24-v6si1502781plq.75 - gsmtp)
Feb  3 17:04:34 in-nagios postfix/qmgr[16356]: 4222111114106: removed

Re: Nagios email alerts.

Posted: Mon Feb 19, 2018 1:45 pm
by Knack
hi

kindly check nagios.log file

[1519065197] wproc: Successfully registered manager as @wproc with query handler
[1519065197] wproc: Registry request: name=Core Worker 1781;pid=1781
[1519065197] wproc: Registry request: name=Core Worker 1786;pid=1786
[1519065197] wproc: Registry request: name=Core Worker 1783;pid=1783
[1519065197] wproc: Registry request: name=Core Worker 1785;pid=1785
[1519065197] wproc: Registry request: name=Core Worker 1782;pid=1782
[1519065197] wproc: Registry request: name=Core Worker 1784;pid=1784
[1519065197] WARNING: The normal_check_interval attribute is deprecated and will be removed in future versions. Please use check_interval instead.
[1519065197] WARNING: The retry_check_interval attribute is deprecated and will be removed in future versions. Please use retry_interval instead.
[1519065197] WARNING: The normal_check_interval attribute is deprecated and will be removed in future versions. Please use check_interval instead.
[1519065197] WARNING: The retry_check_interval attribute is deprecated and will be removed in future versions. Please use retry_interval instead.
[1519065197] Successfully launched command file worker with pid 1787
[1519065233] wproc: Core Worker 1781: job 1 (pid=1800) timed out. Killing it
[1519065233] wproc: CHECK job 1 from worker Core Worker 1781 timed out after 30.01s
[1519065233] wproc: host=Voice IP MVOIP; service=(null);
[1519065233] wproc: early_timeout=1; exited_ok=0; wait_status=0; error_code=62;
[1519065233] wproc: stdout line 01: PING CRITICAL - Packet loss = 100%|rta=5000.000000ms;3000.000000;5000.000000;0.000000 pl=100%;80;100;0
[1519065233] Warning: Check of host 'Voice IP MVOIP' timed out after 30.01 seconds
[1519065233] HOST ALERT: Voice IP MVOIP;DOWN;SOFT;1;(Host check timed out after 30.01 seconds)
[1519065233] wproc: Core Worker 1781: job 1 (pid=1800): Dormant child reaped
[1519065323] wproc: Core Worker 1786: job 8 (pid=1899) timed out. Killing it
[1519065324] wproc: CHECK job 8 from worker Core Worker 1786 timed out after 31.01s
[1519065324] wproc: host=Voice IP MVOIP; service=(null);
[1519065324] wproc: early_timeout=1; exited_ok=0; wait_status=0; error_code=62;
[1519065324] wproc: stdout line 01: PING CRITICAL - Packet loss = 100%|rta=5000.000000ms;3000.000000;5000.000000;0.000000 pl=100%;80;100;0
[1519065324] Warning: Check of host 'Voice IP MVOIP' timed out after 31.01 seconds
[1519065324] HOST ALERT: Voice IP MVOIP;DOWN;HARD;2;(Host check timed out after 31.01 seconds)
[1519065324] HOST NOTIFICATION: nagiosadmin;Voice IP MVOIP;DOWN;notify-host-by-email;(Host check timed out after 31.01 seconds)
[1519065324] wproc: Core Worker 1786: job 8 (pid=1899): Dormant child reaped
[1519065324] wproc: NOTIFY job 10 from worker Core Worker 1784 is a non-check helper but exited with return code 127
[1519065324] wproc: host=Voice IP MVOIP; service=(none); contact=nagiosadmin
[1519065324] wproc: early_timeout=0; exited_ok=1; wait_status=32512; error_code=0;
[1519065324] wproc: stderr line 01: /bin/sh: /usr/bin/mail: No such file or directory
[1519065324] wproc: stderr line 02: /usr/bin/printf: write error: Broken pipe
[1519065654] wproc: Core Worker 1785: job 35 (pid=2473) timed out. Killing it
[1519065655] wproc: CHECK job 35 from worker Core Worker 1785 timed out after 31.01s
[1519065655] wproc: host=Voice IP MVOIP; service=(null);
[1519065655] wproc: early_timeout=1; exited_ok=0; wait_status=0; error_code=62;
[1519065655] Warning: Check of host 'Voice IP MVOIP' timed out after 31.01 seconds
[1519065655] wproc: Core Worker 1785: job 35 (pid=2473): Dormant child reaped
[root@in-nagios var]# tail -f nagios.log
[1519065324] wproc: host=Voice IP MVOIP; service=(none); contact=nagiosadmin
[1519065324] wproc: early_timeout=0; exited_ok=1; wait_status=32512; error_code=0;
[1519065324] wproc: stderr line 01: /bin/sh: /usr/bin/mail: No such file or directory
[1519065324] wproc: stderr line 02: /usr/bin/printf: write error: Broken pipe
[1519065654] wproc: Core Worker 1785: job 35 (pid=2473) timed out. Killing it
[1519065655] wproc: CHECK job 35 from worker Core Worker 1785 timed out after 31.01s
[1519065655] wproc: host=Voice IP MVOIP; service=(null);
[1519065655] wproc: early_timeout=1; exited_ok=0; wait_status=0; error_code=62;
[1519065655] Warning: Check of host 'Voice IP MVOIP' timed out after 31.01 seconds
[1519065655] wproc: Core Worker 1785: job 35 (pid=2473): Dormant child reaped

Re: Nagios email alerts.

Posted: Mon Feb 19, 2018 1:47 pm
by Knack
hi
its a request, it saves my job.
i beg you please help me

Re: Nagios email alerts.

Posted: Mon Feb 19, 2018 5:36 pm
by npolovenko
Hi, @Knack. I can only see one notification today in your nagios.log file. And how comes the latest entry in the mail log is from the third of February? Are there any entries in the mail log file after the third of Feb?
Can you run these commands and let me know the output:

Code: Select all

cat /etc/passwd
cat /etc/group
Also, please show your mailing command definition and your service check/host check definition. I want to make sure that the notification settings were set up correctly.

Re: Nagios email alerts.

Posted: Tue Feb 20, 2018 10:12 am
by Knack
hi kindly check passwd and group files.

[root@in-nagios ~]# cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
systemd-bus-proxy:x:999:998:systemd Bus Proxy:/:/sbin/nologin
systemd-network:x:192:192:systemd Network Management:/:/sbin/nologin
dbus:x:81:81:System message bus:/:/sbin/nologin
polkitd:x:998:997:User for polkitd:/:/sbin/nologin
tss:x:59:59:Account used by the trousers package to sandbox the tcsd daemon:/dev/null:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
postfix:x:89:89::/var/spool/postfix:/sbin/nologin
chrony:x:997:995::/var/lib/chrony:/sbin/nologin
apache:x:48:48:Apache:/usr/share/httpd:/sbin/nologin
mysql:x:27:27:MariaDB Server:/var/lib/mysql:/sbin/nologin
nagios:x:1000:1000::/home/nagios:/bin/bash
saslauth:x:996:76:Saslauthd user:/run/saslauthd:/sbin/nologin
mailnull:x:47:47::/var/spool/mqueue:/sbin/nologin
smmsp:x:51:51::/var/spool/mqueue:/sbin/nologin


[root@in-nagios ~]# cat /etc/group
root:x:0:
bin:x:1:
daemon:x:2:
sys:x:3:
adm:x:4:
tty:x:5:
disk:x:6:
lp:x:7:
mem:x:8:
kmem:x:9:
wheel:x:10:
cdrom:x:11:
mail:x:12:postfix
man:x:15:
dialout:x:18:
floppy:x:19:
games:x:20:
tape:x:30:
video:x:39:
ftp:x:50:
lock:x:54:
audio:x:63:
nobody:x:99:
users:x:100:
utmp:x:22:
utempter:x:35:
input:x:999:
systemd-journal:x:190:
systemd-bus-proxy:x:998:
systemd-network:x:192:
dbus:x:81:
polkitd:x:997:
ssh_keys:x:996:
dip:x:40:
tss:x:59:
sshd:x:74:
postdrop:x:90:
postfix:x:89:
chrony:x:995:
apache:x:48:
mysql:x:27:
nagios:x:1000:
nagcmd:x:1001:nagios,apache
saslauth:x:76:
mailnull:x:47:
smmsp:x:51: