Documentation contents

SNMP traps, syslog and logs

Receive traps and syslog from devices, turn them into alerts with rules, and search them.

Applies to Adekio 1.1 · 2 min read

Receive

Menu Events > Reception tab: tick Receive traps (UDP port 162, accepted communities) and/or Receive syslog (UDP port 514), then point the devices to the server’s address. On Linux, the service is allowed to use these ports; on Windows, open them in the firewall.

Collectors receive too: each collector listens on the same ports and forwards the events of its network. The tab shows the listening state (a port held by another program is reported) and the counters.

Trial from a Linux workstation:

logger -n <server> -P 514 -d "Interface Gi0/1 changed state to down"

With MIBs loaded, traps are named ("upsOnBattery" instead of a string of digits): see Advanced SNMP.

Turn into alerts

The Rules tab handles each event; the first rule that matches decides. Examples:

  • Ignore syslog of severity "Info and worse" containing "DHCP";
  • Open a critical alert on "changed state to down", cleared by "changed state to up";
  • a warning alert on trap 1.3.6.1.6.3.1.1.5.5 (authentication failure), cleared after 30 quiet minutes.

These alerts appear in Alerts and trigger notifications like any other. An item’s page shows its latest events.

Search the logs

The Log tab lists the events of the visible items, with a histogram per half hour over 24 hours. The search accepts:

Syntax Meaning
word1 word2 all words present
"exact phrase" the phrase as is
-word the word absent
field:value a field read in the message: srcip:10.1.2.3 action:deny (firewalls), code:LINK-3-UPDOWN (Cisco), source, app, kind

The Top values panel counts the values of a field over 24 hours; a click adds the filter. Saved views keeps a search.

Where logs are kept

The log is kept outside the database: one file per day in the data folder, in compressed blocks (about 42 bytes per message; 1,000 messages per second make about 3.6 GB per day). Retention is set in the Reception tab. The database only keeps the events that opened an alert.

Was this page helpful?

Report a problem on this page
↑↓ pour naviguer Entrée pour ouvrir Échap pour fermer