DEL_ALL_SVC_COMMENTS not always working?
Berning, Joerg
Joerg.Berning at softwareag.com
Mon Feb 20 18:44:38 CET 2006
Your help in troubleshooting the following is really appreciated:
Configuration is as follows:
Nagios 2.0(02/07/2006) under Red Hat ES4(2.6.9-22.0.2.ELsmp)
Trying to reproduce the problem under Nagios 1.3(AIX 5.2) did not work, Nagios worked perfectly, the problem is only reproducible under 2.0.
To reproduce the problem(via Nagios web-interface):
choose any host via "Service Detail" with at least two services and do the following
select your first choice of service and scoll down to the link saying "Add a new comment"
select this link and enter(i.e.) "#1" in the Comment-field, click commit
select your second choice of service(remember, on the same host), scroll down to the add-a-new-comment-link
select that and enter(i.e.) "#2" in the Comment-field, click commit
check via "Service Detail" that both services got a comment-bubble(or your var/comments.dat)
now select your !second! choice of service again, scroll down and click on the "Delete all comments"-link, do NOT click on the "Delete this comment"-icon(the trash-icon)
select Commit
check via "Service Detail" that the comment is deleted(no comment-bubble visible)
then select your !first! choice of service, scroll down and click on the "Delete all comments"-link, do NOT click on the "Delete this comment"-icon(the trash-icon)
select Commit
check via "Service Detail" that the comment was NOT deleted.
I also did the above in a script(via ADD_SVC_COMMENT and DEL_ALL_SVC_COMMENTS), same problem.
If I choose the trash-icon aside the comment and the comment-id is used for the deletion, that's working.
When doing a hexedit var/comments.dat the entry for service#2 looks fine, like the one for service#1.
The entries in the Event Log also look the same, for both services.
After restarting Nagios via "Process Info/Restart the Nagios process" a click on the "Delete all comments"-link works as expected, the comment is removed.
I also tried ./configure with --enable-DEBUGALL, but the only messages I'm getting are in the appache error log, saying "malformed header from script.", and apache isn't able to serve the http-pages...
If somebody could confirm the above, please, to make sure it's not my local mistake?
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&kid3432&bid#0486&dat1642
_______________________________________________
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