Icinga2 - API User which information are there?

Started by vikozo, August 11, 2018, 09:49:51 AM

Previous topic - Next topic
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
apu2c4 / wle200nx / 240 Disk --> Firewall | FW-03
---
OPNsense 22.1.6-amd64
FreeBSD 13.0-STABLE
OpenSSL 1.1.1n 15 Mar 2022


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/... .

Hello
is there a list of the MIB Variable?
have a nice day
vinc
apu2c4 / wle200nx / 240 Disk --> Firewall | FW-03
---
OPNsense 22.1.6-amd64
FreeBSD 13.0-STABLE
OpenSSL 1.1.1n 15 Mar 2022

For starting you might do a snmwalk with .1 ... then you'll see all default registered OID's