force_notification parameter not working

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
alex31
Posts: 1
Joined: Thu Apr 11, 2013 2:06 am

force_notification parameter not working

Post 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!
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: force_notification parameter not working

Post by abrist »

Same behavior over here. You may want to open up a bug with http://tracker.nagios.org
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.
Locked