The Ntopng
class provides information about global data (e.g., list of interfaces) and consts (e.g., alert types).
Constructs a new Ntopng
object.
username
: The ntopng username (leave empty if token authentication is used) (string).password
: The ntopng password (leave empty if token authentication is used) (string).auth_token
: The authentication token (leave empty if username/password authentication is used) (integer).url
: The default ntopng URL (e.g., http://localhost:3000) (string).
Returns the ntopng URL.
- Returns: The ntopng URL (string).
Issues a GET request.
url
: The URL for the GET request (string).params
: Parameters to include in the request (dictionary).- Returns: The response from the request (HTTP response object).
Issues a POST request.
url
: The URL for the POST request (string).params
: Parameters to include in the request (dictionary).- Returns: The response from the request (HTTP response object).
Enables debugging mode.
Issues a GET request and returns the response.
url
: The URL for the GET request (string).params
: Parameters to include in the request (dictionary).- Returns: The response from the request (dictionary).
Issues a POST request and returns the response.
url
: The URL for the POST request (string).params
: Parameters to include in the request (dictionary).- Returns: The response from the request (dictionary).
Returns all alert types.
- Returns: The list of alert types (array).
Returns all severities.
- Returns: The list of severities (array).
Returns an Interface
instance.
ifid
: The interface ID (integer).- Returns: The interface instance (
ntopng.Interface
).
Returns a Historical
handle for an interface.
ifid
: The interface ID (integer).- Returns: The historical handle (
ntopng.Historical
).
Returns all available interfaces.
- Returns: The list of interfaces (array).
Returns all ntopng interfaces for a given host.
host
: The host (string).- Returns: List of interfaces (array).