Page 1 of 1

force_notification parameter not working

Posted: Thu Apr 11, 2013 7:44 am
by alex31
Hello everyone!

Yesterday I ran into a problem with the web interface and I am not sure yet if it's a bug or a feature ;)

I need to access the Send custom service notification link and I need the Force or Broadcast checkboxes to be already selected.



The address I am typing looks like this:

http://<IP address>/nagios/cgi-bin/cmd.cgi?cmd_typ=160&host=HOST1&service=SERVICE1&force_notification

Similar for Broadcast:

http://<IP address>/nagios/cgi-bin/cmd.cgi?cmd_typ=160&host=HOST1&service=SERVICE1&broadcast_notification


Apparently, when you add the force_notification or broadcast_notification parameters at the end of the link, the checkboxes should be selected, but they are not.
I tried to see if other fields can be populated in the same manner and I used the com_data parameter. The comment field was successfully filled in, so the problem is persistent on the checkboxes.
If you manually select the checkbox, everything is ok, but I need to provide a link that already has that checkbox selected.

I tried to select/deselect other checkboxes on another page, the Re-schedule the next check of this service, and everything is working as expected:

http://<IP address>/nagios/cgi-bin/cmd.cgi?cmd_typ=7&host=HOST1&service=SERVICE1&force_check

I tested on different systems with different Nagios versions (3.4.4, 3.4.3 and 3.0.6.) and I am getting the same behaviour.
The OS is Centos 6.2.

Am I doing something wrong or this is a bug?
Is there a way to have Nagios select the Force notification checkbox by default when you access that link?


Thank you so much and keep on the good work!

Re: force_notification parameter not working

Posted: Mon Apr 15, 2013 2:31 pm
by abrist
Same behavior over here. You may want to open up a bug with http://tracker.nagios.org