XI 2014R1.2 Ent Ed
RHEL 6.5 x64
Is there a way to control the creation of notification logs?
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
Notification Logs
Notification Logs
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
RHEL 6 & 7
rrdcached & ramdisk optimisation
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Notification Logs
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.
Re: Notification Logs
Ok. Where is this logs stored in the database?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.
Thanks
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
RHEL 6 & 7
rrdcached & ramdisk optimisation
Re: Notification Logs
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
Re: Notification Logs
Referring to the first post, in which table is entries that show up in this screen stored in the database?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.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
RHEL 6 & 7
rrdcached & ramdisk optimisation
Re: Notification Logs
The notifications are stored in the ndo nagios database table:
The nagios log entries from ndo are stored in the table:
Code: Select all
nagios.nagios_notificationsCode: Select all
nagios.nagios_logentriesFormer 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.
"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.
Re: Notification Logs
Thanks. Please close this thread.abrist wrote:The notifications are stored in the ndo nagios database table:The nagios log entries from ndo are stored in the table:Code: Select all
nagios.nagios_notificationsCode: Select all
nagios.nagios_logentries
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
RHEL 6 & 7
rrdcached & ramdisk optimisation