Real time Alerts monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Rupender
Posts: 43
Joined: Fri Aug 16, 2013 4:07 am

Real time Alerts monitoring

Post by Rupender »

Hi All,


Is this possible to monitor the Real time Alerts which are sent to User's email id.
User avatar
GldRush98
Posts: 259
Joined: Wed May 25, 2011 10:51 am
Location: Springfield, IL
Contact:

Re: Real time Alerts monitoring

Post by GldRush98 »

You may want to clarify what you mean by monitor them.
On the service or host though you can click the "View Service Notifications" icon (looks like a little cell phone) and this will show you all the notifications that have been sent out for that service or host in your defined time period.
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Real time Alerts monitoring

Post by lmiltchev »

Rupender, did GldRush98 answer your question?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Rupender
Posts: 43
Joined: Fri Aug 16, 2013 4:07 am

Re: Real time Alerts monitoring

Post by Rupender »

Actually i just want to monitor all Alerts which are sent to User's or Contact's Email id.

Is this possible with below command:

tailf /var/log/maillog
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Real time Alerts monitoring

Post by slansing »

Sure, you could tail and grep for the email address, or something unique to the contact.
Rupender
Posts: 43
Joined: Fri Aug 16, 2013 4:07 am

Re: Real time Alerts monitoring

Post by Rupender »

When i traced the Sendmail log as well as Nagios log which is
NAGIOS LOG

#cat /usr/local/nagios/var/archives/nagios-09-01-2013-00.log |grep RADshare 27
#cat /usr/local/nagios/var/archives/nagios-09-01-2013-00.log |grep 172.25.24.27 Outpout is nothing

SENDMAIL LOG

Sep 1 20:47:47 localusarad sendmail[28874]: r820llQi028874:
ocalhost.localdomain>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
ler=relay, pri=31354, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (r820llQi028874 Message accepted for delivery)
lrivertech.com. [169.131.130.19], dsn=2.0.0, stat=Sent (Ok: queued as AD2CE12C065)
-f
alhost.localdomain>, relay=nagios@localhost
Sep 1 21:52:37 localusarad sendmail[16003]: r821qbtb016003:
ocalhost.localdomain>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
ler=relay, pri=31354, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (r821qbtb016003 Message accepted for delivery)
lrivertech.com. [169.131.130.19], dsn=2.0.0, stat=Sent (Ok: queued as F3FF512C065)
f
lhost.localdomain>, relay=nagios@localhost
Sep 1 22:52:46 localusarad sendmail[1599]: r822qkmG001599:
calhost.localdomain>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
er=relay, pri=31354, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (r822qkmG001599 Message accepted for delivery)
rivertech.com. [169.131.130.19], dsn=2.0.0, stat=Sent (Ok: queued as 4F39F12C065)

but i am surprised how this Alert come at Date/Time: 2013-09-01 21:59:36 while in mail log there is no any mail dilevered:

To: <[email protected]>
Subject: PROBLEM Host Alert - RADshare 27 is DOWN
Reply-To: Nagios XI <[email protected]>

***** Nagios XI Alert *****

Notification Type: PROBLEM
Host: RADshare 27
State: DOWN
Address: 172.25.24.27
Info: CRITICAL - 172.25.24.27: rta nan, lost 100%
Date/Time: 2013-09-01 21:59:36

Nagios URL: http://169.131.130.107/nagiosxi/

How this Alerts sent while there is no existence of this Alerts in Sendmail log, Is this possible email sent without Sendmail MTA?


Please help me as soon as possible.
Thanks
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Real time Alerts monitoring

Post by slansing »

Okay you are running into notification problems now too? Do you have anything closer to "Spet 1, 21:59:36" in your mail log?
Rupender
Posts: 43
Joined: Fri Aug 16, 2013 4:07 am

Re: Real time Alerts monitoring

Post by Rupender »

No, that is only whatever i post before...


Can anyone confirm me that Is this possible email is sent without Sendmail MTA?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Real time Alerts monitoring

Post by lmiltchev »

What is the mail method that you are using - Sendmail or SMTP?

Code: Select all

Admin->Manage Email Settings
Be sure to check out our Knowledgebase for helpful articles and solutions!
Rupender
Posts: 43
Joined: Fri Aug 16, 2013 4:07 am

Re: Real time Alerts monitoring

Post by Rupender »

Definitely Sendmail..
Locked