Skip to content

Commit

Permalink
eventlogger support
Browse files Browse the repository at this point in the history
  • Loading branch information
matjaz99 committed Jan 30, 2023
1 parent 9d2a40c commit 12a6994
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<port>8080</port>
<port>7070</port>
<path>/alertmonitor</path>
</configuration>
</plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class EEvent {
private long timestamp = 0;
private String alarmName = "Alarm incident";
private int severity = 0;
private String severityString = "Indeterminate";
private String severityString = "indeterminate";
private String notificationType = "alarm";
private String sourceInfo = "";
private String additionalInfo = "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void processIncomingEvent(WebhookMessage m) {
e.setNodename(am.getAlarmSource());
e.setJob("eventlogger");
e.setTags("eventlogger, log");
e.setSeverity(am.getSeverityString());
e.setSeverity(am.getSeverityString().toLowerCase());
e.setPriority("low");
e.setGroup("unknown");
e.setEventType("5");
Expand Down

0 comments on commit 12a6994

Please sign in to comment.