1
0
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:
Massimo Candela
2023-05-15 13:53:46 -06:00
parent af1fa0249a
commit e39a8f3ded
2 changed files with 6 additions and 6 deletions

View File

@@ -87,7 +87,7 @@ export default class MonitorROAS extends Monitor {
if (percentage > this.toleranceDeletedRoasTA) {
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,
{group: "default"},
message,
@@ -122,7 +122,7 @@ export default class MonitorROAS extends Monitor {
const metadata = this.rpki.getMetadata();
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,
{group: "default"},
message,

View File

@@ -51,8 +51,8 @@ describe("RPKI monitoring external", function() {
it("ROA diff and expiration - external connector", function (done) {
const expectedData = {
"disappeared-ripe-60.00": {
id: 'disappeared-ripe-60.00',
"disappeared-ripe-60": {
id: 'disappeared-ripe-60',
truncated: false,
origin: 'roa-monitor',
affected: 'ripe',
@@ -64,8 +64,8 @@ describe("RPKI monitoring external", function() {
}
]
},
"expiring-ripe": {
id: 'expiring-ripe',
"expiring-ripe-50": {
id: 'expiring-ripe-50',
truncated: false,
origin: 'roa-monitor',
affected: 'ripe',