5R1.0 Multi-Tenancy Acknowledgement Issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Envera IT
Posts: 159
Joined: Wed Jun 19, 2013 10:21 am

5R1.0 Multi-Tenancy Acknowledgement Issue

Post 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-->
I like graphs...
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: 5R1.0 Multi-Tenancy Acknowledgement Issue

Post 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
Envera IT
Posts: 159
Joined: Wed Jun 19, 2013 10:21 am

Re: 5R1.0 Multi-Tenancy Acknowledgement Issue

Post 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.
I like graphs...
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: 5R1.0 Multi-Tenancy Acknowledgement Issue

Post by tmcdonald »

If you go to Admin -> Manage Users, what permissions do the external peeps have?
Former Nagios employee
Envera IT
Posts: 159
Joined: Wed Jun 19, 2013 10:21 am

Re: 5R1.0 Multi-Tenancy Acknowledgement Issue

Post 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:".
I like graphs...
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: 5R1.0 Multi-Tenancy Acknowledgement Issue

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Envera IT
Posts: 159
Joined: Wed Jun 19, 2013 10:21 am

Re: 5R1.0 Multi-Tenancy Acknowledgement Issue

Post by Envera IT »

Updated to 5.2.0 and the issue I reported is now fixed. Thanks.
I like graphs...
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: 5R1.0 Multi-Tenancy Acknowledgement Issue

Post by rkennedy »

Good to hear updating worked, I'll close this ticket now.
Former Nagios Employee
Locked