Skip to content

Linode monitoring plugin

Article last updated: 2026-12-02.

What it does

The Linode monitoring plugin reads the account balance and the Linode instances of a Linode account through the Linode API v4, and creates one Pandora FMS agent for the account and one agent per instance. Each run writes the account agent with the balance modules and one instance agent with the status, location, type, CPU and network statistics.

The plugin is a standalone agent generator. It writes the .data files directly into --data_dir; it does not use Tentacle and does not print module XML for an agent to collect.

Prepare

Compatibility

Scope State Evidence
Linode API v4 reachable from the plugin host Required The plugin requests api.linode.com/v4/account and /v4/linode/instances
A Linode personal access token with read permission Required The token is sent in the Authorization header
Python 3 and the requests library Required when running from source The script imports requests
Write access to the Pandora FMS data folder Required The plugin writes the agent documents there
Pandora FMS NG 784 and later Not validated No release-specific validation record exists

Requirements

  1. A Linode account with at least one instance.
  2. A Linode API token with read access to the account and the instances.
  3. Network access from the plugin host to api.linode.com over HTTPS.
  4. A writable data folder, usually /var/spool/pandora/data_in.

Install the plugin

Copy pandora_linode (or pandora_linode.py when running from source) to the host that will run it. The packaged binary includes Python and requests.

Configure

Run the plugin with the API token:

./pandora_linode -t <API_TOKEN>
Option Required Default Description
-t, --token Yes — Linode API token.
-g, --group No Linode Agent group.
--data_dir No /var/spool/pandora/data_in/ Folder for the agent documents.

Example:

./pandora_linode -t '<API_TOKEN>' -g Linode --data_dir /var/spool/pandora/data_in/

The plugin creates:

  • Linode_Account_<euuid> with the account balance.
  • Linode_<region>_<id> for each instance, with the instance address, status, location, type, CPU and network statistics.

The token is a credential. Keep it out of shell history when possible and restrict access to the host.

Verify

Run the plugin and check the data folder:

./pandora_linode -t '<API_TOKEN>' --data_dir /tmp/linode_test
ls -l /tmp/linode_test

A successful run writes one .data file for the account and one per instance, then prints 1. If the account request fails, the plugin prints 0 and an error message.

Check the API directly with the same token:

curl -s -H "Authorization: Bearer <API_TOKEN>" https://api.linode.com/v4/account

Understand the results

Account agent

Linode_Account_<euuid> contains:

Module Meaning
Account Balance Account balance in US dollars.
Account Balance Uninvoiced: Estimated invoice in US dollars. The colon is part of the module name.

Instance agents

Linode_<region>_<id> contains:

Module Type Meaning
Linode_Status: generic_data_string Instance status returned by the API.
Running_Status: generic_proc 1 when the instance is running, 0 otherwise.
Last Update generic_data_string Last update timestamp.
Region generic_data_string Instance region.
Linode Type generic_data_string Instance type.
CPU_Load generic_data Percentage of CPU used.
Trafic netv4 out generic_data IPv4 output in bits/s.
Trafic netv4 in generic_data IPv4 input in bits/s.
Trafic netv4 private_in generic_data Private IPv4 input in bits/s.
Trafic netv4 private_out generic_data Private IPv4 output in bits/s.
Input/Output statistics IO. generic_data Blocks written per second.

The module names keep the spelling of the script, including Trafic and the trailing colons.

Operate and troubleshoot

  • Error token, please check token — the token is invalid or lacks permission to read the account.
  • Error requesting ... please check conectivity — the API is not reachable or returned an unexpected response.
  • Only the account agent is created — the account has no instances, or the token cannot list them.
  • No files in the data folder — the folder does not exist or is not writable.
  • Some modules are missing — the instance has no statistics yet, or the API response does not contain the expected fields. Check the instance in the Linode dashboard.
  • The plugin prints 1 but no agents appear — check that the Pandora FMS server reads the configured data folder.

Reference

Command-line options

Option Description
-t, --token Linode API token.
-g, --group Agent group.
--data_dir Data folder.

API endpoints

Endpoint Data
/v4/account Account identity and balance
/v4/linode/instances Instance list
/v4/linode/instances/<id>/stats CPU, network and IO statistics

Addon identity

Field Value
Marketplace identifier pandorafms.linode
Marketplace name Linode monitoring
Package pandora_linode.zip
Type Standalone plugin, agent generator
Executable pandora_linode
License Free download