OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Documentation and Translation (Moderator: fabian) »
  • Icinga2 - API User which information are there?
« previous next »
  • Print
Pages: [1]

Author Topic: Icinga2 - API User which information are there?  (Read 5370 times)

vikozo

  • Full Member
  • ***
  • Posts: 211
  • Karma: 5
    • View Profile
    • wombat.ch
Icinga2 - API User which information are there?
« on: August 11, 2018, 09:49:51 am »
Hello
i have been reading the documentation
https://docs.opnsense.org/development/how-tos/api.html#overview

but are ther more information how to check more things like
-traffic
- banned ip and contry from
- cpu
- load
- disk used
- disk SMART information
- status of virenscanner
and so on

have a nice day
vinc
Logged
apu2c4 / wle200nx / 240 Disk --> Firewall | FW-03
---
OPNsense 22.1.6-amd64
FreeBSD 13.0-STABLE
OpenSSL 1.1.1n 15 Mar 2022

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: Icinga2 - API User which information are there?
« Reply #1 on: August 11, 2018, 10:18:28 am »
Part of it probably via snmp?
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

fabian

  • Moderator
  • Hero Member
  • *****
  • Posts: 2769
  • Karma: 200
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Icinga2 - API User which information are there?
« Reply #2 on: August 11, 2018, 10:56:30 am »
Quote from: vikozo on August 11, 2018, 09:49:51 am
-traffic
does not work directly - you can query the data counters and calculate the difference if you want to get information about the current bytes / second.
Quote from: vikozo on August 11, 2018, 09:49:51 am
- banned ip and contry from
don't know if that works
Quote from: vikozo on August 11, 2018, 09:49:51 am
- cpu
should work via SNMP
Quote from: vikozo on August 11, 2018, 09:49:51 am
- load
very likely simmilar to CPU
Quote from: vikozo on August 11, 2018, 09:49:51 am
- disk used
May also work via SNMP, as an alternative, there is a call in the web interface for the dashboard which may be used.
Quote from: vikozo on August 11, 2018, 09:49:51 am
- disk SMART information
won't work. The SMART plugin does not have an API. Some information may be exposed via SNMP.
Quote from: vikozo on August 11, 2018, 09:49:51 am
- status of virenscanner
OPNsense API call to the plugins API /api/clamav/… .
Logged

vikozo

  • Full Member
  • ***
  • Posts: 211
  • Karma: 5
    • View Profile
    • wombat.ch
Re: Icinga2 - API User which information are there?
« Reply #3 on: August 12, 2018, 11:51:43 pm »
Hello
is there a list of the MIB Variable?
have a nice day
vinc
Logged
apu2c4 / wle200nx / 240 Disk --> Firewall | FW-03
---
OPNsense 22.1.6-amd64
FreeBSD 13.0-STABLE
OpenSSL 1.1.1n 15 Mar 2022

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: Icinga2 - API User which information are there?
« Reply #4 on: August 13, 2018, 08:00:39 am »
For starting you might do a snmwalk with .1 ... then you'll see all default registered OID's
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Documentation and Translation (Moderator: fabian) »
  • Icinga2 - API User which information are there?
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2