Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Birdseye time format
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
Look for Version in /usr/local/nagiosxi/html/includes/components/birdseye/CHANGES.TXT
In Order to have Birdseye in NagiosXI Display 24h Format instead of 12h Change the Following Block in /usr/local/nagiosxi/html/includes/components/birdseye/includes/main.js
_________________________________before:
function update_clock() {
var time = new Date();
var hours = time.getHours();
var minutes = time.getMinutes();
var seconds = time.getSeconds();
minutes = ( minutes < 10 ? "0" : "" ) + minutes;
seconds = ( seconds < 10 ? "0" : "" ) + seconds;
var post = ( hours < 12 ) ? "AM" : "PM";
hours = ( hours > 12) ? hours - 12 : hours;
hours = ( hours == 0 ) ? 12 : hours;
var str = hours + ":" + minutes + ":" + seconds + " " + post;
$('#clock').html(str);
}
__________________________________after:
function update_clock() {
var time = new Date();
var hours = time.getHours();
var minutes = time.getMinutes();
var seconds = time.getSeconds();
minutes = ( minutes < 10 ? "0" : "" ) + minutes;
seconds = ( seconds < 10 ? "0" : "" ) + seconds;
hours = ( hours < 10 ? "0" : "" ) + hours;
// var post = ( hours < 12 ) ? "AM" : "PM";
// hours = ( hours > 12) ? hours - 12 : hours;
// hours = ( hours == 0 ) ? 12 : hours;
var str = hours + ":" + minutes + ":" + seconds //+ " " + post;
$('#clock').html(str);
}
_________________________________before:
function update_clock() {
var time = new Date();
var hours = time.getHours();
var minutes = time.getMinutes();
var seconds = time.getSeconds();
minutes = ( minutes < 10 ? "0" : "" ) + minutes;
seconds = ( seconds < 10 ? "0" : "" ) + seconds;
var post = ( hours < 12 ) ? "AM" : "PM";
hours = ( hours > 12) ? hours - 12 : hours;
hours = ( hours == 0 ) ? 12 : hours;
var str = hours + ":" + minutes + ":" + seconds + " " + post;
$('#clock').html(str);
}
__________________________________after:
function update_clock() {
var time = new Date();
var hours = time.getHours();
var minutes = time.getMinutes();
var seconds = time.getSeconds();
minutes = ( minutes < 10 ? "0" : "" ) + minutes;
seconds = ( seconds < 10 ? "0" : "" ) + seconds;
hours = ( hours < 10 ? "0" : "" ) + hours;
// var post = ( hours < 12 ) ? "AM" : "PM";
// hours = ( hours > 12) ? hours - 12 : hours;
// hours = ( hours == 0 ) ? 12 : hours;
var str = hours + ":" + minutes + ":" + seconds //+ " " + post;
$('#clock').html(str);
}
Reviews (0)
Be the first to review this listing!