Developing Simple Plugins
Simple plugins are Nagios-compatible plugins that are very easy to develop. The concept is straightforward and requires minimal effort.
Here is a small example script:
#!/bin/bash
echo "OK"
exit 0
For Simple Plugins, the first line of the output is displayed in the WebGUI as the status message. The exit code determines the check status:
- exit 0 → OK
- exit 1 → WARNING
- exit 2 → CRITICAL
- exit 3 → UNKNOWN
For the Bloonix agent to execute Simple Plugins, they must either be placed in the directory /usr/local/lib/bloonix/simple-plugins
or the path to the plugins must be specified in the agent configuration file using the parameter simple_plugin_path.
Simple Plugins are configured in the WebGUI using the service Check: Simple Plugin Wrapper.