2017-05-19 22:22:40 +02:00
|
|
|
<?php
|
|
|
|
include_once(dirname(__FILE__).'/includes/utils.inc.php');
|
|
|
|
|
2019-08-03 18:28:19 +02:00
|
|
|
$this_version = '4.4.4';
|
2019-04-18 17:09:18 +02:00
|
|
|
$this_year = '2019';
|
2017-05-19 22:22:40 +02:00
|
|
|
?>
|
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
|
|
|
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
2017-05-19 23:37:19 +02:00
|
|
|
|
2017-05-19 22:22:40 +02:00
|
|
|
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />
|
|
|
|
<title>Nagios Core</title>
|
2017-05-19 23:37:19 +02:00
|
|
|
<link rel="stylesheet" type="text/css" href="stylesheets/common.css?<?php echo $this_version; ?>" />
|
|
|
|
<link rel="stylesheet" type="text/css" href="stylesheets/nag_funcs.css?<?php echo $this_version; ?>" />
|
2019-04-18 17:09:18 +02:00
|
|
|
<script type="text/javascript" src="js/jquery-1.12.4.min.js"></script>
|
2017-05-19 23:37:19 +02:00
|
|
|
<script type="text/javascript" src="js/nag_funcs.js"></script>
|
2017-05-19 22:22:40 +02:00
|
|
|
|
|
|
|
<script type='text/javascript'>
|
2019-04-18 17:09:18 +02:00
|
|
|
var cookie;
|
|
|
|
<?php if ($cfg["enable_page_tour"]) { ?>
|
|
|
|
var vbox;
|
|
|
|
var vBoxId = "main";
|
|
|
|
var vboxText = "<a href=https://www.nagios.com/tours target=_blank> " +
|
|
|
|
"Click here to watch the entire Nagios Core 4 Tour!</a>";
|
|
|
|
<?php } ?>
|
2017-05-19 23:37:19 +02:00
|
|
|
$(document).ready(function() {
|
2019-08-03 18:28:19 +02:00
|
|
|
var user = "<?php echo htmlspecialchars($_SERVER['REMOTE_USER']); ?>";
|
2017-05-19 23:37:19 +02:00
|
|
|
|
2019-04-18 17:09:18 +02:00
|
|
|
<?php if ($cfg["enable_page_tour"]) { ?>
|
|
|
|
vBoxId += ";" + user;
|
|
|
|
vbox = new vidbox({pos:'lr',vidurl:'https://www.youtube.com/embed/2hVBAet-XpY',
|
|
|
|
text:vboxText,vidid:vBoxId});
|
|
|
|
<?php } ?>
|
2017-05-19 23:37:19 +02:00
|
|
|
loadRemoteFeed( // Our top banner splash.
|
|
|
|
'#splashbox0-contents', 'corebanner', 1,
|
|
|
|
'', processBannerItem, ''
|
|
|
|
);
|
|
|
|
|
|
|
|
loadRemoteFeed( // "Latest News"
|
|
|
|
'#splashbox4-contents', 'frontpage', 3,
|
|
|
|
'<ul>', processNewsItem, '<li><a href="https://www.nagios.org/news" target="_blank">More news...</a></li></ul>'
|
|
|
|
);
|
|
|
|
|
|
|
|
loadRemoteFeed( // "Don't Miss..."
|
|
|
|
'#splashbox5-contents', 'corepromo', 3,
|
|
|
|
'<ul>', processPromoItem, '</ul>'
|
|
|
|
);
|
|
|
|
|
|
|
|
getCoreStatus();
|
|
|
|
});
|
|
|
|
|
|
|
|
// Fetch an RSS feed and format HTML for the first n items.
|
|
|
|
function loadRemoteFeed(id, name, n, prefix, formatter, suffix) {
|
|
|
|
$.ajax({
|
|
|
|
type: 'GET',
|
|
|
|
url: 'https://www.nagios.org/backend/feeds/' + name + '/',
|
|
|
|
crossDomain: true,
|
|
|
|
success: function(d, status, jqXHR) {
|
|
|
|
// We should have Internet access, set the playlist HTML.
|
|
|
|
initializePlaylist();
|
|
|
|
|
|
|
|
var text = ''; // Start with empty text by default.
|
|
|
|
|
|
|
|
$(d).find('channel').find('item').each(function(index) {
|
|
|
|
var itemText = formatter($(this)); // Format the item's HTML.
|
|
|
|
if (itemText) text += itemText; // Append if non-empty.
|
|
|
|
return index+1 < n; // Only process n items.
|
|
|
|
});
|
|
|
|
|
|
|
|
// Only set the HTML if we have item text.
|
|
|
|
if (text) $(id).html(prefix + text + suffix);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function processBannerItem(item) {
|
|
|
|
return item.find('description').text();
|
|
|
|
}
|
|
|
|
|
|
|
|
function processNewsItem(item) {
|
|
|
|
var link = item.find('link').text();
|
|
|
|
var title = item.find('title').text();
|
|
|
|
return link && title
|
|
|
|
? '<li><a href="' + link + '" target="_blank">' + title + '</a></li>'
|
|
|
|
: '';
|
|
|
|
}
|
|
|
|
|
|
|
|
function processPromoItem(item) {
|
|
|
|
var description = item.find('description').text();
|
|
|
|
return description
|
|
|
|
? '<li>' + description + '</li>'
|
|
|
|
: '';
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Set our playlist HTML when we know we have Internet access.
|
|
|
|
var playlistInitialized = false;
|
|
|
|
function initializePlaylist() {
|
|
|
|
if (!playlistInitialized) {
|
|
|
|
playlistInitialized = true;
|
|
|
|
$('#splashbox3')
|
|
|
|
.addClass('splashbox3-full')
|
|
|
|
.removeClass('splashbox3-empty')
|
|
|
|
.html('<iframe width="100%" height="100%" src="//www.youtube.com/embed/videoseries?list=PLN-ryIrpC_mCUW1DFwZpxpAk00i60lSkE&iv_load_policy=3&rel=0" frameborder="0" allowfullscreen></iframe>');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Get the daemon status JSON.
|
|
|
|
function getCoreStatus() {
|
|
|
|
setCoreStatusHTML('passiveonly', 'Checking process status...');
|
|
|
|
|
|
|
|
$.get('<?php echo $cfg["cgi_base_url"];?>/statusjson.cgi?query=programstatus', function(d) {
|
|
|
|
d = d && d.data && d.data.programstatus || false;
|
|
|
|
if (d && d.nagios_pid) {
|
|
|
|
var pid = d.nagios_pid;
|
|
|
|
var daemon = d.daemon_mode ? 'Daemon' : 'Process';
|
|
|
|
setCoreStatusHTML('enabled', daemon + ' running with PID ' + pid);
|
|
|
|
} else {
|
|
|
|
setCoreStatusHTML('disabled', 'Not running');
|
|
|
|
}
|
|
|
|
}).fail(function() {
|
|
|
|
setCoreStatusHTML('disabled', 'Unable to get process status');
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function setCoreStatusHTML(image, text) {
|
|
|
|
$('#core-status').html('<img src="images/' + image + '.gif" /> ' + text);
|
|
|
|
}
|
2017-05-19 22:22:40 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
|
|
<body id="splashpage">
|
|
|
|
|
|
|
|
|
|
|
|
<div id="mainbrandsplash">
|
2017-05-19 23:37:19 +02:00
|
|
|
<div id="mainlogo"><a href="https://www.nagios.org/" target="_blank"><img src="images/logofullsize.png" border="0" alt="Nagios" title="Nagios"></a></div>
|
|
|
|
<div><span id="core-status"></span></div>
|
2017-05-19 22:22:40 +02:00
|
|
|
</div>
|
|
|
|
|
2017-05-19 23:37:19 +02:00
|
|
|
|
2017-05-19 22:22:40 +02:00
|
|
|
<div id="currentversioninfo">
|
2017-05-19 23:37:19 +02:00
|
|
|
<div class="product">Nagios<sup><span style="font-size: small;">®</span></sup> Core<sup><span style="font-size: small;">™</span></sup></div>
|
|
|
|
<div class="version">Version <?php echo $this_version; ?></div>
|
2019-08-03 18:28:19 +02:00
|
|
|
<div class="releasedate">July 29, 2019</div>
|
2017-05-19 23:37:19 +02:00
|
|
|
<div class="checkforupdates"><a href="https://www.nagios.org/checkforupdates/?version=<?php echo $this_version; ?>&product=nagioscore" target="_blank">Check for updates</a></div>
|
2017-05-19 22:22:40 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="updateversioninfo">
|
|
|
|
<?php
|
2017-05-19 23:37:19 +02:00
|
|
|
$updateinfo = get_update_information();
|
|
|
|
if (!$updateinfo['update_checks_enabled']) {
|
2017-05-19 22:22:40 +02:00
|
|
|
?>
|
|
|
|
<div class="updatechecksdisabled">
|
2017-05-19 23:37:19 +02:00
|
|
|
<div class="warningmessage">Warning: Automatic Update Checks are Disabled!</div>
|
|
|
|
<div class="submessage">Disabling update checks presents a possible security risk. Visit <a href="https://www.nagios.org/" target="_blank">nagios.org</a> to check for updates manually or enable update checks in your Nagios config file.</a></div>
|
2017-05-19 22:22:40 +02:00
|
|
|
</div>
|
|
|
|
<?php
|
2017-05-19 23:37:19 +02:00
|
|
|
} else if (
|
|
|
|
$updateinfo['update_available'] && $this_version < $updateinfo['update_version']
|
|
|
|
) {
|
2017-05-19 22:22:40 +02:00
|
|
|
?>
|
|
|
|
<div class="updateavailable">
|
2017-05-19 23:37:19 +02:00
|
|
|
<div class="updatemessage">A new version of Nagios Core is available!</div>
|
|
|
|
<div class="submessage">Visit <a href="https://www.nagios.org/download/" target="_blank">nagios.org</a> to download Nagios <?php echo $updateinfo['update_version'];?>.</div>
|
2017-05-19 22:22:40 +02:00
|
|
|
</div>
|
|
|
|
<?php
|
2017-05-19 23:37:19 +02:00
|
|
|
}
|
2017-05-19 22:22:40 +02:00
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2017-05-19 23:37:19 +02:00
|
|
|
<div id='splashrow0'>
|
|
|
|
<div id="splashbox0" class="splashbox-media"><!-- info banner feed -->
|
|
|
|
<div id="splashbox0-contents"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-05-19 22:22:40 +02:00
|
|
|
|
|
|
|
<div id="splashboxes">
|
2017-05-19 23:37:19 +02:00
|
|
|
|
|
|
|
<div id='splashrow1'>
|
|
|
|
|
|
|
|
<div id="splashbox1" class="splashbox splashbox-clear">
|
2017-05-19 22:22:40 +02:00
|
|
|
<h2>Get Started</h2>
|
|
|
|
<ul>
|
2017-05-19 23:37:19 +02:00
|
|
|
<li><a href="https://go.nagios.com/nagioscore/startmonitoring" target="_blank">Start monitoring your infrastructure</a></li>
|
|
|
|
<li><a href="https://go.nagios.com/nagioscore/changelook" target="_blank">Change the look and feel of Nagios</a></li>
|
|
|
|
<li><a href="https://go.nagios.com/nagioscore/extend" target="_blank">Extend Nagios with hundreds of addons</a></li>
|
|
|
|
<!--<li><a href="https://go.nagios.com/nagioscore/docs" target="_blank">Read the Nagios documentation</a></li>-->
|
|
|
|
<li><a href="https://go.nagios.com/nagioscore/support" target="_blank">Get support</a></li>
|
|
|
|
<li><a href="https://go.nagios.com/nagioscore/training" target="_blank">Get training</a></li>
|
|
|
|
<li><a href="https://go.nagios.com/nagioscore/certification" target="_blank">Get certified</a></li>
|
2017-05-19 22:22:40 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
2017-05-19 23:37:19 +02:00
|
|
|
<div id="splashbox2" class="splashbox">
|
2017-05-19 22:22:40 +02:00
|
|
|
<h2>Quick Links</h2>
|
|
|
|
<ul>
|
2017-05-19 23:37:19 +02:00
|
|
|
<li><a href="https://library.nagios.com" target="_blank">Nagios Library</a> (tutorials and docs)</li>
|
|
|
|
<li><a href="https://labs.nagios.com" target="_blank">Nagios Labs</a> (development blog)</li>
|
|
|
|
<li><a href="https://exchange.nagios.org" target="_blank">Nagios Exchange</a> (plugins and addons)</li>
|
|
|
|
<li><a href="https://support.nagios.com" target="_blank">Nagios Support</a> (tech support)</li>
|
|
|
|
<li><a href="https://www.nagios.com" target="_blank">Nagios.com</a> (company)</li>
|
|
|
|
<li><a href="https://www.nagios.org" target="_blank">Nagios.org</a> (project)</li>
|
2017-05-19 22:22:40 +02:00
|
|
|
</ul>
|
2017-05-19 23:37:19 +02:00
|
|
|
</div>
|
2017-05-19 22:22:40 +02:00
|
|
|
|
2017-05-19 23:37:19 +02:00
|
|
|
<div id="splashbox3" class="splashbox3-empty"><!-- youtube playlist -->
|
2017-05-19 22:22:40 +02:00
|
|
|
</div>
|
|
|
|
|
2017-05-19 23:37:19 +02:00
|
|
|
</div><!-- end splashrow1 -->
|
2019-04-18 17:09:18 +02:00
|
|
|
|
2017-05-19 23:37:19 +02:00
|
|
|
<div id="splashrow2">
|
2017-05-19 22:22:40 +02:00
|
|
|
|
2017-05-19 23:37:19 +02:00
|
|
|
<div id="splashbox4" class="splashbox splashbox-clear"><!-- latest news feed -->
|
|
|
|
<h2>Latest News</h2>
|
|
|
|
<div id="splashbox4-contents">
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-05-19 22:22:40 +02:00
|
|
|
|
2017-05-19 23:37:19 +02:00
|
|
|
<div id="splashbox5" class="splashbox"><!-- core promo feed -->
|
|
|
|
<h2>Don't Miss...</h2>
|
|
|
|
<div id="splashbox5-contents">
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-05-19 22:22:40 +02:00
|
|
|
|
2017-05-19 23:37:19 +02:00
|
|
|
</div><!-- end splashrow2 -->
|
|
|
|
|
|
|
|
</div><!-- end splashboxes-->
|
|
|
|
|
|
|
|
|
|
|
|
<div id="mainfooter">
|
|
|
|
<div id="maincopy">
|
|
|
|
Copyright © 2010-<?php echo $this_year; ?> Nagios Core Development Team and Community Contributors. Copyright © 1999-2009 Ethan Galstad. See the THANKS file for more information on contributors.
|
|
|
|
</div>
|
|
|
|
<div CLASS="disclaimer">
|
|
|
|
Nagios Core is licensed under the GNU General Public License and is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. Nagios, Nagios Core and the Nagios logo are trademarks, servicemarks, registered trademarks or registered servicemarks owned by Nagios Enterprises, LLC. Use of the Nagios marks is governed by the <A href="https://www.nagios.com/legal/trademarks/">trademark use restrictions</a>.
|
|
|
|
</div>
|
|
|
|
<div class="logos">
|
|
|
|
<a href="https://www.nagios.org/" target="_blank"><img src="images/weblogo1.png" width="102" height="47" border="0" style="padding: 0 40px 0 40px;" title="Nagios.org" /></a>
|
|
|
|
<a href="http://sourceforge.net/projects/nagios" target="_blank"><img src="images/sflogo.png" width="88" height="31" border="0" alt="SourceForge.net Logo" /></a>
|
|
|
|
</div>
|
2019-04-18 17:09:18 +02:00
|
|
|
</div>
|
2017-05-19 22:22:40 +02:00
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|