GlusterFS monitoring plugin¶
Article last updated: 2026-12-02.
What it does¶
The GlusterFS monitoring plugin reads the status of the GlusterFS volumes of a node and creates one Pandora FMS agent per volume. Each run executes the local gluster command, parses the brick status, the brick details and the brick memory counters, and publishes the result as modules of an agent named <prefix>_Glusterfs_volume_<volume>.
The plugin is a server-side agent generator: it runs on a GlusterFS node (or on a host that can run gluster against the cluster) and delivers the generated agent through Tentacle or a local data folder. It does not install anything on the Gluster nodes beyond the gluster CLI that is already part of GlusterFS.
Prepare¶
Compatibility¶
| Scope | State | Evidence |
|---|---|---|
GlusterFS with the gluster CLI available on the plugin host |
Required |
The plugin runs gluster volume list and gluster volume status |
| Access to the Gluster management daemon from the plugin host | Required |
The CLI must be able to query the cluster |
Perl and the PandoraFMS::PluginTools library |
Required |
The plugin imports PandoraFMS::PluginTools |
Tentacle client, when mode=tentacle |
Required for Tentacle delivery |
The plugin delivers the agent document with tentacle_client |
| Pandora FMS NG 784 and later | Not validated |
No release-specific validation record exists |
Requirements¶
- A GlusterFS node or a host with the
glusterCLI configured and access to the cluster. - The
PandoraFMS::PluginToolsPerl library, installed with the Pandora FMS server. - A destination for the generated agent: Tentacle or a local data folder.
- The volume names you want to monitor, or
all=1to iterate every volume returned bygluster volume list.
Install the plugin¶
Copy pandora_glusterfs.pl and pandora_glusterfs.conf to the host that will run the plugin. The Perl library is part of the Pandora FMS server installation; if the plugin runs on a different host, install the library or run the plugin on the Pandora FMS server with access to the Gluster CLI.
Configure¶
The plugin takes the configuration file as its only argument:
./pandora_glusterfs.pl pandora_glusterfs.conf
The file is a plain key=value file. The sample configuration is:
mode=tentacle
tentacle_ip=<PANDORA_SERVER>
tentacle_port=41121
prefix=prueba
all=1
volume=gv0
| Key | Required | Default | Description |
|---|---|---|---|
mode |
Yes | — | tentacle delivers the agent with Tentacle; any other value copies it into local_folder. |
tentacle_ip |
With mode=tentacle |
— | Pandora FMS server address. |
tentacle_port |
No | 41121 |
Tentacle port. |
tentacle_client |
No | tentacle_client |
Tentacle client executable. |
tentacle_opts |
No | Empty | Extra options for the Tentacle client. |
local_folder |
With mode=local |
— | Folder where the agent document is copied, usually /var/spool/pandora/data_in. |
prefix |
Yes | — | Prefix of the generated agent name. |
all |
No | 0 |
1 iterates every volume returned by gluster volume list; 0 monitors only volume. |
volume |
When all=0 |
— | Volume to monitor. |
module_group |
No | Empty | Module group assigned to the generated modules. |
The agent name is <prefix>_Glusterfs_volume_<volume>. With all=1, the plugin creates one agent per volume.
Verify¶
Run the plugin manually with the configuration file:
./pandora_glusterfs.pl pandora_glusterfs.conf
A successful run prints the generated XML or delivers it silently, depending on the mode. Check the Pandora FMS console for the agents named with the configured prefix, for example prueba_Glusterfs_volume_gv0.
To confirm that the CLI can read the cluster before running the plugin:
gluster volume list
gluster volume status <VOLUME> clients
gluster volume status <VOLUME> detail
gluster volume status <VOLUME> mem
Understand the results¶
The plugin creates one agent per volume and three groups of modules per brick:
- Clients:
<n>.Number clients, the number of clients connected to the brick. - Brick details:
<n>.Pid,<n>.Inode_size,<n>.Disk,<n>.Disk total,<n>.Inode_countand<n>.Free_Inodes. - Brick memory:
<n>.Arena,<n>.Ordblks,<n>.Smblks,<n>.Hblkhd,<n>.Hblks,<n>.Usmblks,<n>.Fsmblks,<n>.Uordblks,<n>.Fordblksand<n>.Keepcost.
<n> is the brick number in the order returned by gluster volume status. The module names are stable for a given brick order; if a brick is added or removed, the numbering can change.
The plugin does not create a global volume health module. It publishes the raw brick counters, so create the thresholds and the availability modules that fit your GlusterFS deployment.
Operate and troubleshoot¶
gluster: command not found— install the GlusterFS client tools on the plugin host or run the plugin on a Gluster node.ERROR: [transfer_mode] set to [tentacle], but no [tentacle_ip] provided— filltentacle_ipor switch tomode=localwithlocal_folder.- No agents appear in Pandora FMS — check the Tentacle address and port, the
tentacle_clientpath and the write permission onlocal_folder. - A volume is missing — with
all=1, the plugin only monitors volumes returned bygluster volume list. Check that the volume is started and visible from the plugin host. - Module names change after adding a brick — the brick number is positional. Review the module mapping after a topology change.
Reference¶
Configuration file keys¶
| Key | Description |
|---|---|
mode |
Delivery mode: tentacle or local. |
tentacle_ip |
Tentacle server address. |
tentacle_port |
Tentacle port. |
tentacle_client |
Tentacle client executable. |
tentacle_opts |
Extra Tentacle options. |
local_folder |
Folder for the local delivery. |
prefix |
Agent name prefix. |
all |
Monitor all volumes (1) or only volume (0). |
volume |
Volume name when all is not 1. |
module_group |
Module group for the generated modules. |
Commands executed¶
| Command | Purpose |
|---|---|
gluster volume list |
List the volumes. |
gluster volume status <volume> clients |
Read the connected clients per brick. |
gluster volume status <volume> detail |
Read the PID, inode and disk details per brick. |
gluster volume status <volume> mem |
Read the memory counters per brick. |
Addon identity¶
| Field | Value |
|---|---|
| Marketplace identifier | pandorafms.glusterfs |
| Marketplace name | GlusterFS monitoring |
| Package | pandora_glusterfs.zip |
| Type | Server plugin, agent generator |
| Executable | pandora_glusterfs.pl |
| License | Free download |