VMware Cloud Community
akshayshinde
Contributor
Contributor
Jump to solution

vROps is not showing appropriate creation time for Alerts

If we create an instance at xx:yy time-stamp it will take few cycles to fetch and display in UI.

The alerts generated in Storage-box between the instance creation time(in vROps) and initial poling time will displayed with same creation time on vROps.

We have programmed to map Alert-Notified Timestamp from Storage-box to vROps Alert creation time.

But vROps is displaying Alert creation time as the time when the Alert created on vROps server.

Please find below code snippet.

private void postAlert(final Alert alert, final AdapterBase adapterInstance) {

     final Param vcopsAlertParam = new Param(resourceConfig, alert.getNotifiedTimestamp(), alert.getMessage() + " and the source of this alert is " + alert.getSource());

     VropsAlertsFactory.createAlert(vcopsAlertParam, adapterInstance, logger);

     ...

}

public static void createAlert(final Param alertsParam, AdapterBase adapterInstance, org.apache.log4j.Logger logger) {

     createAlertOrNotificationEvent(adapterInstance, alertsParam.getResourceConfig(), alertsParam.getDate(),

     alertsParam.getMessage(), true, logger);

}

Still the timestamp of the alert in vROps will be displayed when the alert has been generated in  vROps

1 Solution

Accepted Solutions
sxnxr
Commander
Commander
Jump to solution

Vrops will always show you the alert time that vrops discovered the alert not when the device it is monitoring discovers it. vrops poles every 5 mins so you could have a 5 min difference. If you have a 30 min delay in your alert that difference will be different.

vrops alerts when its symptions are met. they are only met during vrops collection times.

View solution in original post

1 Reply
sxnxr
Commander
Commander
Jump to solution

Vrops will always show you the alert time that vrops discovered the alert not when the device it is monitoring discovers it. vrops poles every 5 mins so you could have a 5 min difference. If you have a 30 min delay in your alert that difference will be different.

vrops alerts when its symptions are met. they are only met during vrops collection times.