OPNsense Forum

English Forums => Documentation and Translation => Topic started by: vikozo on August 11, 2018, 09:49:51 am

Title: Icinga2 - API User which information are there?
Post by: vikozo 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
Title: Re: Icinga2 - API User which information are there?
Post by: mimugmail on August 11, 2018, 10:18:28 am
Part of it probably via snmp?
Title: Re: Icinga2 - API User which information are there?
Post by: fabian on August 11, 2018, 10:56:30 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.
- banned ip and contry from
don't know if that works
- cpu
should work via SNMP
- load
very likely simmilar to CPU
- 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.
- disk SMART information
won't work. The SMART plugin does not have an API. Some information may be exposed via SNMP.
- status of virenscanner
OPNsense API call to the plugins API /api/clamav/… .
Title: Re: Icinga2 - API User which information are there?
Post by: vikozo on August 12, 2018, 11:51:43 pm
Hello
is there a list of the MIB Variable?
have a nice day
vinc
Title: Re: Icinga2 - API User which information are there?
Post by: mimugmail 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