mirror of
https://github.com/nttgin/BGPalerter.git
synced 2024-05-19 06:50:08 +00:00
improved ta malfunction alert it
This commit is contained in:
@@ -87,7 +87,7 @@ export default class MonitorROAS extends Monitor {
|
|||||||
if (percentage > this.toleranceDeletedRoasTA) {
|
if (percentage > this.toleranceDeletedRoasTA) {
|
||||||
const message = `Possible TA malfunction or incomplete VRP file: ${percentage.toFixed(2)}% of the ROAs disappeared from ${ta}`;
|
const message = `Possible TA malfunction or incomplete VRP file: ${percentage.toFixed(2)}% of the ROAs disappeared from ${ta}`;
|
||||||
|
|
||||||
this.publishAlert(`disappeared-${ta}-${percentage}`, // The hash will prevent alert duplications in case multiple ASes/prefixes are involved
|
this.publishAlert(`disappeared-${ta}-${parseInt(percentage)}`,
|
||||||
ta,
|
ta,
|
||||||
{group: "default"},
|
{group: "default"},
|
||||||
message,
|
message,
|
||||||
@@ -122,7 +122,7 @@ export default class MonitorROAS extends Monitor {
|
|||||||
const metadata = this.rpki.getMetadata();
|
const metadata = this.rpki.getMetadata();
|
||||||
const message = `Possible TA malfunction or incomplete VRP file: ${percentage.toFixed(2)}% of the ROAs are expiring in ${ta}`;
|
const message = `Possible TA malfunction or incomplete VRP file: ${percentage.toFixed(2)}% of the ROAs are expiring in ${ta}`;
|
||||||
|
|
||||||
this.publishAlert(`expiring-${ta}`, // The hash will prevent alert duplications in case multiple ASes/prefixes are involved
|
this.publishAlert(`expiring-${ta}-${parseInt(percentage)}`,
|
||||||
ta,
|
ta,
|
||||||
{group: "default"},
|
{group: "default"},
|
||||||
message,
|
message,
|
||||||
|
@@ -51,8 +51,8 @@ describe("RPKI monitoring external", function() {
|
|||||||
it("ROA diff and expiration - external connector", function (done) {
|
it("ROA diff and expiration - external connector", function (done) {
|
||||||
|
|
||||||
const expectedData = {
|
const expectedData = {
|
||||||
"disappeared-ripe-60.00": {
|
"disappeared-ripe-60": {
|
||||||
id: 'disappeared-ripe-60.00',
|
id: 'disappeared-ripe-60',
|
||||||
truncated: false,
|
truncated: false,
|
||||||
origin: 'roa-monitor',
|
origin: 'roa-monitor',
|
||||||
affected: 'ripe',
|
affected: 'ripe',
|
||||||
@@ -64,8 +64,8 @@ describe("RPKI monitoring external", function() {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"expiring-ripe": {
|
"expiring-ripe-50": {
|
||||||
id: 'expiring-ripe',
|
id: 'expiring-ripe-50',
|
||||||
truncated: false,
|
truncated: false,
|
||||||
origin: 'roa-monitor',
|
origin: 'roa-monitor',
|
||||||
affected: 'ripe',
|
affected: 'ripe',
|
||||||
|
Reference in New Issue
Block a user