Page 1 of 1

Notification Logs

Posted: Mon Jul 14, 2014 11:05 pm
by rajasegar
XI 2014R1.2 Ent Ed
RHEL 6.5 x64

Is there a way to control the creation of notification logs?
15-07-2014 12-04-24 PM.png
I have my own handler for sending emails & sms where depending on certain conditions will decide if it is necessary to send out notifications.

It works fine but the notification logs has entries for it even though I did not send out the actual notification.
Please advice.

Thanks

Re: Notification Logs

Posted: Tue Jul 15, 2014 12:34 pm
by sreinhardt
Unfortunately no, considering that this logic is handled outside the scope of nagios logic, we would only know that your script was called, not whether or not it sent a notification. You could have your script create an additional log file if you wanted but that would be outside of cores logging ability or scope.

Re: Notification Logs

Posted: Wed Jul 16, 2014 1:16 am
by rajasegar
sreinhardt wrote:Unfortunately no, considering that this logic is handled outside the scope of nagios logic, we would only know that your script was called, not whether or not it sent a notification. You could have your script create an additional log file if you wanted but that would be outside of cores logging ability or scope.
Ok. Where is this logs stored in the database?

Thanks

Re: Notification Logs

Posted: Wed Jul 16, 2014 2:09 pm
by tmcdonald
Which log are you referring to? sreinhardt had suggested that your custom script do its own logging, so that log would be wherever you put it.

Re: Notification Logs

Posted: Wed Jul 16, 2014 6:12 pm
by rajasegar
tmcdonald wrote:Which log are you referring to? sreinhardt had suggested that your custom script do its own logging, so that log would be wherever you put it.
Referring to the first post, in which table is entries that show up in this screen stored in the database?

Re: Notification Logs

Posted: Thu Jul 17, 2014 12:59 pm
by abrist
The notifications are stored in the ndo nagios database table:

Code: Select all

nagios.nagios_notifications
The nagios log entries from ndo are stored in the table:

Code: Select all

nagios.nagios_logentries

Re: Notification Logs

Posted: Thu Jul 17, 2014 6:01 pm
by rajasegar
abrist wrote:The notifications are stored in the ndo nagios database table:

Code: Select all

nagios.nagios_notifications
The nagios log entries from ndo are stored in the table:

Code: Select all

nagios.nagios_logentries
Thanks. Please close this thread.