comments only show some of the acknowledgements

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
User avatar
jssingh
Posts: 110
Joined: Mon Apr 29, 2013 4:55 pm

comments only show some of the acknowledgements

Post by jssingh »

I wanted to see historical information on system acknowledgements. I'm using Nagios Core 4.08 and I clicked on the "Comments" link under System and it shows me some of the acknowledgements. However, if I look in nagios.log I see more. Is there a reason that only some of them would show up?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: comments only show some of the acknowledgements

Post by abrist »

Acknowledgements are removed (unless stickied) once the problem state recovers.
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.
User avatar
jssingh
Posts: 110
Joined: Mon Apr 29, 2013 4:55 pm

Re: comments only show some of the acknowledgements

Post by jssingh »

I just want to make sure I understand. I expect the comment to go away when I look at that particular service. But you're saying, if it is not sticky, then it will not show up in any sort of history either?

I'm asking because I need the sticky bit to be turned off to get the functionality I need (I even turned it off as default), but management wants to have a historical record of who acknowledged what and when (and why), and I was hoping there was something in place, so I don't have to write something that combs through the logs. If you have any ideas, let me know.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: comments only show some of the acknowledgements

Post by jdalrymple »

In my environment I can still view service acknowledgements in the "Notifications" area (assuming there was a notification) even after the service has returned to OK - this is irrespective of sticky or persistent.

You're not seeing the same behaviour?
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: comments only show some of the acknowledgements

Post by eloyd »

I love hunting down old, still open posts. :-)

If you haven't figured something out yet, I offer you http://everwatch.global/nagios/nlog.zip. It's a perl script that checks nagios logs and archives for lots of things. So you don't have to reinvent the wheel. You can look for:

Code: Select all

nlog -f YYYY-MM-DD -t YYYY-MM-DD -a NOTIFICATION | grep ACKNOWLEDGEMENT | awk -F\; '{print $2, $3, $NF}'
This would print out something like (host service ack_message):

Code: Select all

svip-d01.localdomain Memory this is a test
svip-d01.localdomain Memory asdf
svip-d01.localdomain Memory Acknowledgement via Alert Email
svip-d01.localdomain Memory Acknowledgement via Alert Email
From ack's during that date range. Lots of other possibilities with my little nlog Nagios log processor.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
User avatar
jssingh
Posts: 110
Joined: Mon Apr 29, 2013 4:55 pm

Re: comments only show some of the acknowledgements

Post by jssingh »

Oh wow, I forgot about this. :)

Thanks for the log processor!!
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: comments only show some of the acknowledgements

Post by eloyd »

I only share with those I like. :lol:
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: comments only show some of the acknowledgements

Post by tgriep »

Thanks eloyd for the information.
jssingh, is is alright to close and lock this post?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
jssingh
Posts: 110
Joined: Mon Apr 29, 2013 4:55 pm

Re: comments only show some of the acknowledgements

Post by jssingh »

yes, thanks.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: comments only show some of the acknowledgements

Post by mcapra »

Locking this up!
Former Nagios employee
https://www.mcapra.com/
Locked