parent
c4a69191a3
commit
a2a96be8c9
|
@ -681,11 +681,17 @@
|
|||
req.addToHistory = false;
|
||||
} else {
|
||||
if (this.failureNotice === null) {
|
||||
var now = new Date();
|
||||
var padString = this.icinga.utils.padString;
|
||||
this.failureNotice = this.createNotice(
|
||||
'error',
|
||||
'The connection to the Icinga web server was lost at ' +
|
||||
this.icinga.utils.timeShort() +
|
||||
'.',
|
||||
'The connection to the Icinga web server was lost at '
|
||||
+ now.getFullYear()
|
||||
+ '-' + padString(now.getMonth() + 1, 0, 2)
|
||||
+ '-' + padString(now.getDate(), 0, 2)
|
||||
+ ' ' + padString(now.getHours(), 0, 2)
|
||||
+ ':' + padString(now.getMinutes(), 0, 2)
|
||||
+ '.',
|
||||
true
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue