Quantcast
Channel: THWACK: All Content - Orion SDK
Viewing all articles
Browse latest Browse all 2677

Why are my Orion.Alerts StartTime and EndTime dates showing years 1899?

$
0
0

Hey all,

 

I am looking into creating a query in order to get all of the Alerts (eventually from a given Date/Time) for Nodes, Interfaces, etc. and am assuming that the Orion.Alerts table is the correct one to pull said information from. So, I created this query;

 

SELECT TOP 100 Name, Enabled, Description, StartTime, EndTime, DOW, NetObjects, Trigger, Reset, Sustained, LogFile, LogMessage FROM Orion.Alerts ORDER BY StartTime ASC

 

..in order to take a peek and see what I see in this table. Imagine my surprise when I saw this sample of the 16 records this query returned.

 

<e>
  <DOW>2,3,4,5,6,7,1,</DOW>
  <Description></Description>
  <Enabled>true</Enabled>
    <EndTime>1899-12-30T23:59:59</EndTime>
  <LogFile></LogFile>
  <LogMessage></LogMessage>
  <Name>Edge Bandwidth higher than 50% used to SCOM</Name>
  <NetObjects>,22163,22164,22173,24016,23143,14633,14648,14671,14675,15826,15844,</NetObjects>
  <Reset>&lt; 50</Reset>
    <StartTime>1899-12-30T00:00:00</StartTime>
  <Sustained>0</Sustained>
  <Trigger>> 50</Trigger>
</e>

 

1899?!?!?

 

The thing is, if I'm on the Orion web front end, and I go to the Alerts (Home > Alerts) page, all the dates are perfectly normal looking.

 

e.g.
  TIME OF ALERT  ALERT NAME                 ALERT TYPE NETWORK OBJECT ...
  2/5/2014 3:04 PM Alert me when any hardware component goes into a warning or critical state Advanced Te1/1 Receive Power Sensor  
  2/5/2014 3:43 AM Alert me when a neighbor goes down           Advanced 10.187.148.18  
  2/5/2014 2:13 AM Alert me when any hardware component goes into a warning or critical state Advanced subslot 0/2 transceiver 0 Tx Power Sensor

 

Is this some known bug, or.. ?


Signed,
Confused in Seattle 

(Scott Fraley)


Viewing all articles
Browse latest Browse all 2677

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>