Syslog alerts aren’t currently exposed via the API, but it wouldn’t be difficult to add.

 

It’s important to note that syslog alerts aren’t states, they’re events. You can’t really set a device status based on a syslog alert.

 

You could perhaps indicate that an alert had been generated within x amount of time, but  that seems a bit hit and miss too, depending upon what syslog alerts are being generated.

 

Adam.

 

 

From: observium <observium-bounces@observium.org> On Behalf Of Vasiliy Moroz via observium
Sent: 10 May 2021 00:41
To: observium@observium.org
Cc: Vasiliy Moroz <rf400rt@gmail.com>
Subject: [Observium] API, get syslog alarms list by device id

 

Dear Observium community, I usе Observium and the more I use it more I love it :) I use the Observium syslog interface for pushing to Observium syslog alerts.
For now, I am developing customer personal web service where they could see their telecom services on the map with nodes states like ok, critical. There are on the map presented only part of the telco network their services go through. By API I get nodes' location and state so can show it on the map with nodes connections from my customer database.

Except for alarms Observium gets by syslog integration.  Is there any way to get syslog alerts by API and device id? I could analyze syslog alerts and set proper node status by syslog alerts if they are accessible. As I know it is impossible.