We have been experimenting with the Java SDK and have been trying to figure out how to send an alarm. From the code below, we believe we are sending the alarm correctly but it never shows up in the alarm console in Infastructure Manager. Any help would be greatly appreciated.
NimUserLogin.login("USERNAME", "PASSWORD", "HOSTNAME");
NimAlarm alarm = new NimAlarm(NimAlarm.NIML_WARNING, "Alarm generated from Java");
String id= alarm.send();
// Change the alarm to critical and send again
// Clear previous critical alarm
D, severity=5, message==Alarm generated from Java, subsystem=null, suppressionid=null, source=null