Page 1 of 2

NNA Login Redirects to TurboVM??

Posted: Tue Nov 01, 2016 1:46 pm
by awilson
Hi. We are not able to log into our NNA instance. When entering http://ip.ip.ip.ip/nagiosna into the browser, it redirects to something called turbovm. Is that a tool built into NNA somewhere?

We get a 404 error. If I click the address it takes me to http://10.10.83.218/com.vmturbo.UI/UIMain.html and the webmaster email address is %5bno%20address%20given%5d

Any ideas?

Thanks
nna object not found.JPG

Re: NNA Login Redirects to TurboVM??

Posted: Tue Nov 01, 2016 2:13 pm
by bwallace
That is definitely abnormal and is not supposed to happen. Did you install NNA on a clean minimal OS ?

Nagios Network Analyzer is supported only on the
following Linux distributions:
•RHEL 6 32-bit and 64-bit and RHEL 7 (requires RHN registration)
•CentOS 6 32-bit and 64-bit and CentOS 7


....Nagios Enterprises highly recommends and will only support installing Nagios Network Analyzer on a newly installed,
“clean” system (a bare minimal install with nothing else installed or configured). Attempting to install Nagios Network Analyzer on a pre-existing system with other applications already installed can cause the Nagios Network Analyzer installation process to fail, critical system components and settings (e.g. database servers) to be modified in a way
that negatively affects other applications, and previously installed applications to be automatically upgraded or removed. While installing Network Analyzer on a system with other applications is possible, it is not recommended due to the possible interactions and complexity of multiple components that are required for Nagios Network Analyzer to function. If you choose to ignore these warnings,
you do so at your own risk

Re: NNA Login Redirects to TurboVM??

Posted: Tue Nov 01, 2016 2:13 pm
by rkennedy
Are you using a proxy of any sort? If I remember correctly, VM Turbo monitors VM's hosted through ESX, and shouldn't be anything related to Nagios.

I would verify all of the routes are indeed correct, and that it's reporting the right IP. From the console of NNA, can you run ip a and curl 127.0.0.1/nagiosna/ -v - post the output for us? This should help verify that it is actually displaying the web interface.

Re: NNA Login Redirects to TurboVM??

Posted: Thu Nov 03, 2016 12:50 pm
by awilson
There isn't a proxy between the user and the server.

Code: Select all

 ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
    link/ether 00:50:56:b8:6c:8c brd ff:ff:ff:ff:ff:ff
    inet 10.10.83.218/24 brd 10.10.83.255 scope global eth0
    inet6 fe80::250:56ff:feb8:6c8c/64 scope link
and

Code: Select all

$ curl 127.0.0.1/nagiosna/ -v
* About to connect() to 127.0.0.1 port 80 (#0)
*   Trying 127.0.0.1... connected
* Connected to 127.0.0.1 (127.0.0.1) port 80 (#0)
> GET /nagiosna/ HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.16.2.3 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: 127.0.0.1
> Accept: */*
>
< HTTP/1.1 302 Found
< Date: Thu, 03 Nov 2016 17:44:43 GMT
< Server: Apache/2.2.15 (Red Hat)
< X-Powered-By: PHP/5.3.3
< Set-Cookie: csrf_cna=cf1e5ee45b90df75a87db3b6eb94b03e; expires=Thu, 03-Nov-2016 19:44:43 GMT; path=/
< Set-Cookie: PHPSESSID=6he3rgcr9f12endcae6gfqqkr5; path=/
< Expires: Thu, 19 Nov 1981 08:52:00 GMT
< Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
< Pragma: no-cache
< Set-Cookie: na_session=a%3A5%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22181e82b329e1e13302bc83cdd250548b%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A9%3A%22127.0.0.1%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A112%3A%22curl%2F7.19.7+%28x86_64-redhat-linux-gnu%29+libcurl%2F7.19.7+NSS%2F3.16.2.3+Basic+ECC+zlib%2F1.2.3+libidn%2F1.18+libssh2%2F1.4.2%22%3Bs%3A13%3A%22last_activity%22%3Bi%3A1478195083%3Bs%3A9%3A%22user_data%22%3Bs%3A0%3A%22%22%3B%7D03dccf6bf05d8f1cc00c39eecb919a9d7d83eefe; expires=Fri, 04-Nov-2016 17:44:43 GMT; path=/
< Location: http://127.0.0.1/nagiosna/index.php/login
< Content-Length: 0
< Connection: close
< Content-Type: text/html; charset=UTF-8
<
* Closing connection #0
Thanks

Re: NNA Login Redirects to TurboVM??

Posted: Thu Nov 03, 2016 4:23 pm
by tgriep
Can you try a different Web Browser and see if you get the same issue when you try to login to the NNA server?

Re: NNA Login Redirects to TurboVM??

Posted: Thu Nov 03, 2016 4:59 pm
by awilson
We get the same response with Firefox and IE as well.
IE nna object not found.JPG
Firefox nna object not found.JPG

Re: NNA Login Redirects to TurboVM??

Posted: Fri Nov 04, 2016 8:46 am
by tgriep
Try using this URL to login to the NNA server for your web browser.

Code: Select all

http://10.10.83.218/nagiosna/index.php/login
If it still fails, run this in a shell on the NNA server and post the output here.

Code: Select all

curl http://10.10.83.218/nagiosna/index.php/login -v
ls -l /var/www/html/
Can you upload the following file from the NNA server?

Code: Select all

/etc/httpd/conf.d/nagiosna.conf

Re: NNA Login Redirects to TurboVM??

Posted: Mon Nov 14, 2016 5:46 pm
by awilson
Results:

Code: Select all

curl http://10.10.83.218/nagiosna/index.php/login -v
* About to connect() to 10.10.83.218 port 80 (#0)
*   Trying 10.10.83.218... connected
* Connected to 10.10.83.218 (10.10.83.218) port 80 (#0)
> GET /nagiosna/index.php/login HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.16.2.3 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: 10.10.83.218
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Mon, 14 Nov 2016 22:38:52 GMT
< Server: Apache/2.2.15 (Red Hat)
< X-Powered-By: PHP/5.3.3
< Set-Cookie: csrf_cna=a96bb6595efbec5c082bacc567bf6bed; expires=Tue, 15-Nov-2016 00:38:52 GMT; path=/
< Set-Cookie: PHPSESSID=6bfdqi1dq6q9h04ti1m208so22; path=/
< Expires: Thu, 19 Nov 1981 08:52:00 GMT
< Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
< Pragma: no-cache
< Set-Cookie: na_session=a%3A5%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22262caa41158a3ebc4c1acefcbd530359%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A12%3A%2210.10.83.218%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A112%3A%22curl%2F7.19.7+%28x86_64-redhat-linux-gnu%29+libcurl%2F7.19.7+NSS%2F3.16.2.3+Basic+ECC+zlib%2F1.2.3+libidn%2F1.18+libssh2%2F1.4.2%22%3Bs%3A13%3A%22last_activity%22%3Bi%3A1479163132%3Bs%3A9%3A%22user_data%22%3Bs%3A0%3A%22%22%3B%7D152991208a2bb9a4a490ac0f625659ad85f8bed6; expires=Tue, 15-Nov-2016 22:38:52 GMT; path=/
< Connection: close
< Transfer-Encoding: chunked
< Content-Type: text/html; charset=UTF-8
<
<!DOCTYPE html>
<html>
<head>
    <!-- Produced by Nagios. Copyyright (c) 2013-2016 Nagios Enterprises, LLC (www.nagios.com). All Rights Reserved. -->
    <title>Login • Nagios Network Analyzer</title>
    <link rel="icon" href="http://10.10.83.218/nagiosna/media/favicon.ico" type="image/ico">
    <link type="text/css" href="http://10.10.83.218/nagiosna/media/css/bootstrap-2.3.2.min.css" rel="stylesheet" /><link type="text/css" href="http://10.10.83.218/nagiosna/media/css/jquery-ui-1.10.3.custom.min.css" rel="stylesheet" /><link type="text/css" href="http://10.10.83.218/nagiosna/media/css/font-awesome.min.css" rel="stylesheet" /><link type="text/css" href="http://10.10.83.218/nagiosna/media/css/main.css" rel="stylesheet" />    <script type="text/javascript" src="http://10.10.83.218/nagiosna/media/js/jquery-1.10.1.min.js"></script><script type="text/javascript" src="http://10.10.83.218/nagiosna/media/js/jquery-ui-1.10.3.custom.min.js"></script><script type="text/javascript" src="http://10.10.83.218/nagiosna/media/js/jquery-ui-timepicker-addon.js"></script><script type="text/javascript" src="http://10.10.83.218/nagiosna/media/js/bootstrap.min.js"></script><script type="text/javascript" src="http://10.10.83.218/nagiosna/media/js/highcharts.js"></script><script type="text/javascript" src="http://10.10.83.218/nagiosna/media/js/highcharts-more.js"></script><script type="text/javascript" src="http://10.10.83.218/nagiosna/media/js/modules/exporting.js"></script><script type="text/javascript" src="http://10.10.83.218/nagiosna/media/js/helpers.js"></script><script type="text/javascript" src="http://10.10.83.218/nagiosna/media/js/d3.v3.min.js"></script>    <script type="text/javascript">
    Highcharts.setOptions({ global: { useUTC: false }});
    var site_url = "http://10.10.83.218/nagiosna/index.php";
    var base_url = "http://10.10.83.218/nagiosna/";
    $(document).ready(function() {
        $('#close_trial').click(function() {
            $.post(site_url + '/api/system/dismiss_trial', { 'csrf_tna': 'a96bb6595efbec5c082bacc567bf6bed' }, function(data) {
                // Dismissed
            });
        });

        $('#remove-modal-yes').click(function() {
            $('#remove-modal').modal('hide');

            var url;
            var returnurl;
            var vars;
            if (type == 'sid') {
                url = site_url + '/api/sources/delete';
                returnurl = site_url + '/sources';
                vars = { 'q[sid]': source_id, 'csrf_tna': 'a96bb6595efbec5c082bacc567bf6bed' }
            } else if (type == 'gid') {
                url = site_url + '/api/groups/delete';
                returnurl = site_url + '/groups';
                vars = { 'q[gid]': group_id, 'csrf_tna': 'a96bb6595efbec5c082bacc567bf6bed' }
            }

            $.post(url, vars, function(data) {
                if (data.error) {
                    alert(data.error);
                } else {
                    window.location.href = returnurl;
                }
            });
        });
    });

    function load_report_list() {
        $.post(site_url + '/api/reports/read', { 'csrf_tna': 'a96bb6595efbec5c082bacc567bf6bed' }, function(data) {
            if ($('input[name="loaded_id"]').val() == 0) { en = ' selected'; } else { en = ''; }
            var html = '<optgroup label="Saved Reports"></optgroup>';
             $.each(data, function(key, record) {
                if ($('input[name="loaded_id"]').val() == record.rid) { selected = ' selected'; } else { selected = ''; }
                if (record.editable == '1') { editable = ''; } else { editable = ' *'; }
                html += '<option value="' + record.rid + '"' + selected + '>' + record.name + editable + '</option>';
            });

            $('#report_list').html(html).trigger('change');
        });
    }

    // Load the list of queries
    function load_queries_list() {
        $('#query_desc_row').hide();
        $.post(site_url + '/api/queries/read', { 'csrf_tna': 'a96bb6595efbec5c082bacc567bf6bed' }, function(data) {
            QUERY_LIST = data;
            if (qid == -1) { en = ' selected'; } else { en = ''; }
            var html = '<option' + en + ' disabled></option><optgroup label="Saved Queries"></optgroup>';
            $.each(QUERY_LIST, function(key, record) {
                if (qid == record.qid) { selected = ' selected'; } else { selected = ''; }
                html += '<option value="' + record.qid + '"' + selected + '>' + record.name + '</option>';
            });
            $('#query_list').html(html);
        });
    }

    // Load a single query using global qid
    function load_query_using_qid() {
        $.post(site_url + '/api/queries/read', { 'q[qid]': qid, 'csrf_tna': 'a96bb6595efbec5c082bacc567bf6bed' }, function(query) {
            query = query[0];
            $('#rawquery').val(query.rawquery);
            set_time_range(query.begindate, query.enddate);
            $('#ag').val(query.aggregate_csv);
            loaded_name = query.name;
            $('#query_title').val(loaded_name);
            //$('#query_description').html(query.description);
            $('#loaded_query_container').show();
            $('#run_query').trigger('click');
        }, 'json');
        $('#load-modal').modal('hide');
    }
    </script>
</head>
<body>
<div id="wrapper">
    <div id="topbar">
        <div class="row-fluid">
            <div class="span3">
                <a href="http://10.10.83.218/nagiosna/"><img src="http://10.10.83.218/nagiosna/media/images/nnalogo_small.png" /></a>
            </div>
            <div class="span6" id="global-notice">
                            </div>
            <div class="span3  header-user-info">
                            </div>
        </div>
        <div class="row-fluid  header-navbar">
            <div class="span12">
            <div class="navbar navbar-inverse">
                <div class="navbar-inner">
                                        <ul class="nav">
                        <li class="active"><a href="http://10.10.83.218/nagiosna/index.php/login">Log In</a></li>
                    </ul>
                                    </div>
            </div>
            </div>
        </div>
    </div>
    <!-- End Header -->

    <!-- Content -->
    <div class="content">

<div class="container" style="margin: 20px auto; width: 1170px;">
    <div class="row">
        <div class="span4">
            <div class="well">
                <form action="http://10.10.83.218/nagiosna/index.php/login" method="post" accept-charset="utf-8" class="form-horizontal login"><div style="display:none">
<input type="hidden" name="csrf_tna" value="a96bb6595efbec5c082bacc567bf6bed" />
</div>                    <h2 class="login-header">Log In</h2>
                                        <fieldset>
                        <input type="text" name="username" value="" placeholder="Username"><br/>
                        <input type="password" name="password" placeholder="Password"><br/>
                        <label class="checkbox"><input type="checkbox" name="remember" value="1"> Keep me logged in</label>
                        <div class="row-fluid">
                            <div class="span4">
                            <button type="submit" class="btn btn-primary">Log In</button>
                            </div>
                            <div class="span8 login-forgot-password">
                                <a href="http://10.10.83.218/nagiosna/index.php/forgot_password">Forgot your password?</a>
                            </div>
                        </div>
                    </fieldset>
                </form>            </div>
        </div>
        <div class="span8">
            <img src="http://10.10.83.218/nagiosna/media/images/nna_splash.jpg" style="padding-bottom: 10px;" />
            <h4>About Nagios Network Analyzer</h4>
            <p>Nagios Network Analyzer is an enterprise-class NetFlow monitoring solution that provides organizations with insight into traffic patterns and bandwidth usage before problems affect critical business processes. For more information on Nagios Network Analyzer, visit the <a href="http://www.nagios.com/products/nagios-network-analyzer">Nagios Network Analyzer product page</a>.</p>
            <h4>Nagios Learning Opportunities</h4>
            <p>Learn about Nagios <a href="http://www.nagios.com/services/training">training</a> and <a href="http://www.nagios.com/services/certification">certification</a> programs.</p>
            <p>Want to learn about how other experts are utilizing Nagios? Do not miss your chance to attend the next <a href="http://go.nagios.com/nwcna">Nagios World Conference</a> held every year in St. Paul, Minnesota.</p>
            <h4>Contact Us</h4>
            <p>Have a question or technical problem? Contact us today:</p>
            <table>
                <tr>
                    <td>Support:</td>
                    <td><a href="http://support.nagios.com/forum/">Online Support Forum</a></td>
                </tr>
                <tr>
                    <td>Sales:</td>
                    <td>Phone: (651) 204-9102<br/>Fax: (651) 204-9103<br/>Email: [email protected]</td>
                </tr>
                <tr>
                    <td>Web</td>
                    <td><a href="http://www.nagios.com">www.nagios.com</a></td>
                </tr>
            </table>
        </div>
    </div>
</div>

    </div>
    <div class="push"></div>
</div>
<div id="footer">
    <div class="well">
        <div class="row-fluid" style="height: 15px;">
            <div class="span6">
                Nagios NA             </div>
            <div class="span6" style="text-align: right;">
                <a target="_new" href="http://www.nagios.com/products/nagios-network-analyzer">About</a>   |   <a target="_new" href="http://www.nagios.com/legal">Legal</a>   |   Copyright © 2013-2016 <a target="_new" href="http://www.nagios.com/">Nagios Enterprises, LLC</a>
            </div>
        </div>
    </div>
</div>

</body>
* Closing connection #0
</html>[awilson1@lussvpnna00 ~]$ ls -lZ /var/www/html/
-rw-------. root root unconfined_u:object_r:httpd_sys_content_t:s0 index.php
drwxr-xr-x. root root unconfined_u:object_r:httpd_sys_content_t:s0 nagiosna
[awilson1@lussvpnna00 ~]$

Re: NNA Login Redirects to TurboVM??

Posted: Mon Nov 14, 2016 5:54 pm
by rkennedy
From your computer, open up a command prompt, and type in telnet 10.10.83.218 80 then, enter any letter and hit enter, please show us a screenshot of what's returned.

If it shows the HTML for Nagios, then I would suspect there is a proxy or tunnel of some sort configured in your browser. If it shows a vmware turbo response, then I would suspect your entire connection has some sort of NAT / routing issue.

Let us know what the result is!

Re: NNA Login Redirects to TurboVM??

Posted: Tue Nov 15, 2016 3:01 pm
by awilson
The result:

Code: Select all

$ telnet 10.10.83.218 80
Trying 10.10.83.218...
Connected to 10.10.83.218.
Escape character is '^]'.
w
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Cannot process request!</title>
<link rev="made" href="mailto:%5bno%20address%20given%5d" />
<style type="text/css"><!--/*--><![CDATA[/*><!--*/
    body { color: #000000; background-color: #FFFFFF; }
    a:link { color: #0000CC; }
    p, address {margin-left: 3em;}
    span {font-size: smaller;}
/*]]>*/--></style>
</head>

<body>
<h1>Cannot process request!</h1>
<p>


    The server does not support the action requested by the browser.

</p>
<p>
If you think this is a server error, please contact
the <a href="mailto:%5bno%20address%20given%5d">webmaster</a>.

</p>

<h2>Error 501</h2>
<address>
  <a href="/">127.0.0.1</a><br />
  <span>Apache</span>
</address>
</body>
</html>

Connection closed by foreign host.
Thanks!