Centreon-plugins is a free and open source project to monitor systems. In his talk Quentin Garnier will present a short description of the project. Starting with basic examples he will then come to advanced usages like openmetrics output, password manager and many more.
4. 4
Basic principle and usage
●
One script program for all plugins: centreon_plugins.pl
●
Choose your plugin: --list-plugin
●
Choose your mode: --list-mode
●
Always use the --help option
$ centreon_plugins.pl --plugin=os/linux/snmp/plugin.pm --mode=cpu --hostname=127.0.0.1
OK: 4 CPU(s) average usage is 5.25 % | 'total_cpu_avg'=5.25%;;;0;100 'cpu_0'=5.00%;;;0;100 'cpu_1'=7.00%;;;0;100
'cpu_2'=5.00%;;;0;100 'cpu_3'=4.00%;;;0;100
7. 7
Multiple modes execution
●
Meta mode for all plugins
●
Can execute X modes at once
●
Cannot execute modes from different plugins
$ centreon_plugins.pl --plugin=os/linux/snmp/plugin.pm --mode=multi --hostname=127.0.0.1 --modes-exec=cpu,memory
OK: 4 CPU(s) average usage is 3.00 % - Ram Total: 7.68 GB Used (-buffers/cache): 2.46 GB (32.08%) Free: 5.22 GB (67.92%),
Buffer: 369.95 MB, Cached: 2.09 GB, Shared: 257.97 MB | 'cpu.utilization.percentage'=3.00%;;;0;100
'0#core.cpu.utilization.percentage'=3.00%;;;0;100 '1#core.cpu.utilization.percentage'=3.00%;;;0;100
'2#core.cpu.utilization.percentage'=3.00%;;;0;100 '3#core.cpu.utilization.percentage'=3.00%;;;0;100
'memory.usage.bytes'=2645962752B;;;0;8247984128 'memory.free.bytes'=5602021376B;;;0;8247984128
'memory.usage.percentage'=32.08%;;;0;100 'memory.buffer.bytes'=387915776B;;;0; 'memory.cached.bytes'=2246725632B;;;0;
'memory.shared.bytes'=270503936B;;;0;
8. 8
Password manager
●
Can mask sensitive datas on command line
●
One local and one distant password manager compatibility
9. 9
And more...
●
Powerful options to change/extend perfdata
●
memchaded/redis backend for statefile
●
New curl backend for http plugins
●
Find it more with --help option!