Page 1 of 1

5R1.0 Multi-Tenancy Acknowledgement Issue

Posted: Sun Oct 04, 2015 4:20 pm
by Envera IT
I've got multi-tenancy setup, basically some people can only see a subset of all hosts, and another set of users can see all hosts. After the upgrade to 5R1.0 my external only peeps can't acknowledge issues via the "Host Status Detail" - "Quick Actions" menu. The option exists, but nothing happens when clicking the link. They can however use the Mass Acknowledge feature to acknowledge issues.

Here's the frame source (chrome). Nothing on the Page Source stood out and I'm one to many G&T's in to read through the frame source. If nothing stands out here let me know what else to look at. Again, no issues prior to the upgrade.

Code: Select all

  <h2>Acknowledge Problem <i class="fa fa-question-circle fa-14 pop" style="margin-left: 5px;" data-title="Acknowledge Problem" data-content="This command is used to acknowledge a host problem. When a host problem is acknowledged, future notifications about problems are temporarily disabled until the host changes from its current state. If you want acknowledgement to disable notifications until the host recovers, check the Sticky Acknowledgement checkbox. Contacts for this host will receive a notification about the acknowledgement, so they are aware that someone is working on the problem. Additionally, a comment will also be added to the host. Make sure to enter your name and fill in a brief description of what you are doing in the comment field. If you would like the host comment to remain once the acknowledgement is removed, check the Persistent Comment checkbox. If you do not want an acknowledgement notification sent out to the appropriate contacts, uncheck the Send Notification checkbox."></i></h2>
        <input type="hidden" class="cmd-type" value="">
        <table class="table table-condensed table-no-border table-auto-width">
            <tr>
                <td>Host Name <i class="fa fa-asterisk fa-req tt-bind" title="Required"></i></td>
                <td><input type="text" class="form-control req" readonly value="iREALLYlikegraphs-CC"></td>
            </tr>
            <tr>
                <td></td>
                <td class="checkbox">
                    <label>
                        <input type="checkbox" id="sticky_ack" value="1" CHECKED> Sticky Acknowledgement                    </label>
                    <i class="fa fa-question-circle fa-14 pop" style="margin-left: 5px;" data-title="Sticky Acknowledgement" data-content="If you want acknowledgement to disable notifications until the host recovers, check the Sticky Acknowledgement checkbox."></i>
                </td>
            </tr>
            <tr>
                <td></td>
                <td class="checkbox">
                    <label>
                        <input type="checkbox" id="send_notification" value="1" CHECKED> Send Notification                    </label>
                    <i class="fa fa-question-circle fa-14 pop" style="margin-left: 5px;" data-title="Send Notification" data-content="If you do not want an acknowledgement notification sent out to the appropriate contacts, uncheck the Send Notification checkbox."></i>
                </td>
            </tr>
            <tr>
                <td></td>
                <td class="checkbox">
                    <label>
                        <input type="checkbox" id="persistent" value="1" > Persistent Comment                    </label>
                    <i class="fa fa-question-circle fa-14 pop" style="margin-left: 5px;" data-title="Persistent Comment" data-content="Make sure to enter your name and fill in a brief description of what you are doing in the comment field. If you would like the host comment to remain once the acknowledgement is removed, check the Persistent Comment checkbox."></i>
                </td>
            </tr>
            <tr>
                <td>Author <i class="fa fa-asterisk fa-req tt-bind" title="Required"></i></td>
                <td><input type="text" class="form-control com_author req" readonly value="Friedrich Nietzsche"></td>
            </tr>
            <tr>
                <td>Comment <i class="fa fa-asterisk fa-req tt-bind" title="Required"></i></td>
                <td><input type="text" class="form-control com_data" style="width: 360px;" value="Problem has been acknowledged"></td>
            </tr>
        </table>
        <button type="button" class="btn btn-sm btn-primary submit-add-ack">Submit</button>
        <button type="button" class="btn btn-sm btn-default cancel">Cancel</button>
    </div>

    <div style="float: left;">
        <div class="infotable_title">Quick Actions</div>
        <table class="table table-condensed table-striped table-bordered table-no-margin">
            <thead>
            </thead>
            <tbody>
            <tr>
                <td>
                    <!-- dynamic entries-->
                    <ul class="quickactions dynamic">
                                                
    <div class="host_state_quick_actions" id="host_state_quick_actions_glicfb">
    <li><a class="cmdlink" data-modal="add-ack" data-cmd-type="33"><img src="https://nagios.ilikegraphs.local/nagiosxi/images/ack_add.png">Acknowledge this problem</a></li><li><div class="commandimage"><a href="#" onClick='submit_command(16,{"host_name":"iREALLYlikegraphs-CC","cmd":25})'><img src="https://nagios.ilikegraphs.local/nagiosxi/images/nonotifications.png" alt="Disable notifications" title="Disable notifications"></a></div><div class="commandtext"><a href="#"  onClick='submit_command(16,{"host_name":"iREALLYlikegraphs-CC","cmd":25})'>Disable notifications</a></div></li><li><div class="commandimage"><a href="#" onClick='submit_command(16,{"host_name":"iREALLYlikegraphs-CC","cmd":98,"start_time":1443992661})'><img src="https://nagios.ilikegraphs.local/nagiosxi/images/arrow_refresh.png" alt="Force an immediate check" title="Force an immediate check"></a></div><div class="commandtext"><a href="#"  onClick='submit_command(16,{"host_name":"iREALLYlikegraphs-CC","cmd":98,"start_time":1443992661})'>Force an immediate check</a></div></li><li><div class="commandimage"><a href="#" onClick='window.open("https://nagios.ilikegraphs.local/nagiosxi/includes/components/pingaction/ping.php?host=23.31.183.193&cmd=go","pingaction","status=0,toolbar=0,height=300,width=600")'><img src="https://nagios.ilikegraphs.local/nagiosxi/includes/components/pingaction/images/ping.png" alt="Ping this host" title="Ping this host"></a></div><div class="commandtext"><a href="#"  onClick='window.open("https://nagios.ilikegraphs.local/nagiosxi/includes/components/pingaction/ping.php?host=23.31.183.193&cmd=go","pingaction","status=0,toolbar=0,height=300,width=600")'>Ping this host</a></div></li><li><div class="commandimage"><a href="#" onclick="window.open('https://nagios.ilikegraphs.local/nagiosxi/includes/components/rdp/gordp.php?confirm=1&hostid=444&address=23.31.183.193','rdp','width=540,height=400,menubar=no,status=no,toolbar=no,scrollbars=no,resizable=yes');"><img src="https://nagios.ilikegraphs.local/nagiosxi/includes/components/rdp/images/rdp.png" alt="Connect to iREALLYlikegraphs-CC" title="Connect to iREALLYlikegraphs-CC"></a></div><div class="commandtext"><a href="#" onclick="window.open('https://nagios.ilikegraphs.local/nagiosxi/includes/components/rdp/gordp.php?confirm=1&hostid=444&address=23.31.183.193','rdp','width=540,height=400,menubar=no,status=no,toolbar=no,scrollbars=no,resizable=yes');">Connect to iREALLYlikegraphs-CC</a></div></li><li><div class="commandimage"><a href="#" onClick='window.open("https://nagios.ilikegraphs.local/nagiosxi/includes/components/tracerouteaction/traceroute.php?host=23.31.183.193&cmd=go","tracerouteaction","status=0,toolbar=0,height=300,width=700,scrollbars=yes")'><img src="https://nagios.ilikegraphs.local/nagiosxi/includes/components/tracerouteaction/images/traceroute.png" alt="Traceroute to this host" title="Traceroute to this host"></a></div><div class="commandtext"><a href="#"  onClick='window.open("https://nagios.ilikegraphs.local/nagiosxi/includes/components/tracerouteaction/traceroute.php?host=23.31.183.193&cmd=go","tracerouteaction","status=0,toolbar=0,height=300,width=700,scrollbars=yes")'>Traceroute to this host</a></div></li>
    </div><!--host_state_quick_actions-->
    <script type="text/javascript">
    $(document).ready(function(){
            
        $("#host_state_quick_actions_glicfb").everyTime(10*1000, "timer-host_state_quick_actions_glicfb", function(i) {
        var optsarr = {
            "func": "get_host_status_quick_actions_html",
            "args": {"hostname" : "iREALLYlikegraphs-CC", "host_id" : "444", "display" : "simple"}
            }
        var opts=array2json(optsarr);
        get_ajax_data_innerHTML("getxicoreajax",opts,true,this);
        });
        
    });
    </script>
                                </ul>

                    <!-- other entries-->
                </td>
            </tr>
            </tbody>
        </table>
    </div>

    <div class="clear"></div>

    <div style="float: left; margin-top: 15px;"><!--comments-->
                
    <div class="host_comments" id="host_comments_nk2f42">
    <div class="infotable_title">Acknowledgements and Comments</div>No comments or acknowledgements.
    </div><!--service_host-->
    <script type="text/javascript">
    $(document).ready(function(){
            
        $("#host_comments_nk2f42").everyTime(10*1000, "timer-host_comments_nk2f42", function(i) {
        var optsarr = {
            "func": "get_host_comments_html",
            "args": {"hostname" : "iREALLYlikegraphs-CC", "host_id" : "444", "display" : "simple"}
            }
        var opts=array2json(optsarr);
        get_ajax_data_innerHTML("getxicoreajax",opts,true,this);
        });
        
    });
    </script>
                </div>
    <!--comments-->

Re: 5R1.0 Multi-Tenancy Acknowledgement Issue

Posted: Mon Oct 05, 2015 5:51 am
by jdalrymple
Can you do a couple things:

1) Create a new "external peep" type user just for testing and see if a newly created user experiences the same behavior

2) Grab the output of /var/log/httpd/error_log from the action

Re: 5R1.0 Multi-Tenancy Acknowledgement Issue

Posted: Mon Oct 05, 2015 1:09 pm
by Envera IT
jdalrymple wrote:Can you do a couple things:

1) Create a new "external peep" type user just for testing and see if a newly created user experiences the same behavior

2) Grab the output of /var/log/httpd/error_log from the action

Created a new "external peep" and set them up exactly like the others. The new user/contact is not able to acknowledge issues via the Host Detail view. Nothing happens when I click on the acknowledge link, no logs created in /var/log/httpd/error_log, no actions on the webpage itself, the acknowledge link appears to be completely non-functioning for these users.

Re: 5R1.0 Multi-Tenancy Acknowledgement Issue

Posted: Tue Oct 06, 2015 10:17 am
by tmcdonald
If you go to Admin -> Manage Users, what permissions do the external peeps have?

Re: 5R1.0 Multi-Tenancy Acknowledgement Issue

Posted: Tue Oct 06, 2015 12:22 pm
by Envera IT
tmcdonald wrote:If you go to Admin -> Manage Users, what permissions do the external peeps have?
They are set as Users and the only checkbox they have is "Can control all hosts and services:".

Re: 5R1.0 Multi-Tenancy Acknowledgement Issue

Posted: Tue Oct 06, 2015 1:02 pm
by jomann
This seems to be a bug in the code that allows the popup for acknowledging hosts/services to be shown. It's being fixed right now and will be in the bug fix release this week.

Re: 5R1.0 Multi-Tenancy Acknowledgement Issue

Posted: Tue Oct 13, 2015 9:38 am
by Envera IT
Updated to 5.2.0 and the issue I reported is now fixed. Thanks.

Re: 5R1.0 Multi-Tenancy Acknowledgement Issue

Posted: Tue Oct 13, 2015 2:07 pm
by rkennedy
Good to hear updating worked, I'll close this ticket now.