I noticed that acknowledgements submitted through Nagios' WAP interface
are set as persistent.  However, they're not set that way by default if
you use the regular web interface.  The command description box reads
like the option is not selected by default.

 

I'm not a C programmer, but I dug around anyway.  The lines in
statuswml.c containing <postfield name='persistent' value=''/> show up
that way if I look at the WAP page's source and it looks like that gets
submitted to cmd.cgi.  If I look at cmd.c, persistent_comment gets
initialized to false.  Then it looks like the comparison in lines
458-459 reset it to true somehow if cmd.cgi was called by WAP.

 

Incidentally, it looks like cmd.c line 984 is missing an angle bracket
("<INPUT TYPE='checkbox' NAME='persistent' %s") if you compare it to
line 958 ("<INPUT TYPE='checkbox' NAME='persistent' %s>")

 

I'm running Nagios 3.2.3 compiled from source on a 64-bit CentOS 5.5
box.

 


Nothing in this message is intended to make or accept an offer or to form a 
contract, except that an attachment that is an image of a contract bearing the 
signature of an officer of our company may be or become a contract. This 
message (including any attachments) is intended only for the use of the 
individual or entity to whom it is addressed. It may contain information that 
is non-public, proprietary, privileged, confidential, and exempt from 
disclosure under applicable law or may constitute as attorney work product. If 
you are not the intended recipient, we hereby notify you that any use, 
dissemination, distribution, or copying of this message is strictly prohibited. 
If you have received this message in error, please notify us immediately by 
telephone and delete this message immediately.

Thank you.
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Nagios-users mailing list
Nagios-users@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

Reply via email to