Notification Logs

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Notification Logs

Post 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
You do not have the required permissions to view the files attached to this post.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Notification Logs

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Notification Logs

Post 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
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Notification Logs

Post 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.
Former Nagios employee
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Notification Logs

Post 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?
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Notification Logs

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Notification Logs

Post 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.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
Locked