DEL_ALL_SVC_COMMENTS not always working?

Jörg Berning joerg.berning at softwareag.com
Wed Feb 22 11:50:10 CET 2006


First,
I have to correct myself,
"Trying to reproduce the problem under Nagios 1.3(AIX 5.2) did not work, Nagios 
worked perfectly"
in my first posting in this thread is wrong, I tried to to reproduce it under 
Nagios 1.2(AIX 5.2), which did work. So Nagios 1.3 did not get tested with this 
problem.

But I think I'm getting closer to the problem.
This night five service checks(under the same host-entry) got processed like 
this:
The comments got entered in the following sequence(via ADD_SVC_COMMENT):
#1
#2
#3
#4
#5
Until now everything is working fine.

Now the service-checks ended in the following sequence and should have been 
removed via DEL_ALL_SVC_COMMENTS:
#2
#5
#4
#1
#3

But only the comments for service-checks
#2
#5
got removed(in this sequence).

The comments for
#4
#1
#3
are still in var/comments.dat and are not deletable, neither via 
DEL_ALL_SVC_COMMENTS nor the webinterface("Delete all comments").
Deleting them via the trashcan-icon(with the comment-id) works.

It looks like some kind of end-of-comment-list-pointer is moved in the list of 
comments:
Comment #2 gets deleted, the pointer in the list of comments gets moved to 
entry #2
Comment #5 gets deleted, the pointer in the list of comments gets moved to 
entry #5, which is the last in the list
Now comment #4 should get deleted, but does not, because the end-of-comment-
list-pointer is further down the list, so the comment can't get deleted.
Same with comment #1 and #3, both are above the end-of-comment-list-pointer.

If somebody could please confirm this behavior(following my previous posting) 
or the opposite...
After a confirmation I would post it to the developement list.
Thank you for your time,
Jörg Berning





-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list