SlideShare a Scribd company logo
1 of 9
Download to read offline
Centreon Plugins 2019
Advanced
2
Project Overview
●
Collection of plugins
●
Birth: September 2013 (6 years)
●
Open Source: Apache2
●
Can monitor: snmp/modbus/http/sql/jmx/…
●
Compatible: centreon/icinga/nagios/...
●
https://github.com/centreon/centreon-plugins
3
More than 400 plugins and 1900 modes
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
5
New metrics format
'user'=3.27%;;;0;100
'cpu.user.utilization.percentage'=3.27%;;;0;100
'used_/'=55784792064B;;;0;250438021120
'/#storage.space.usage.bytes'=55784804352B;;;0;250438021120
6
OpenMetrics output
$ centreon_plugins.pl --plugin=os/linux/snmp/plugin.pm --mode=storage --hostname=127.0.0.1 --output-openmetrics
storage.space.usage.bytes{plugin="os/linux/snmp/plugin.pm",mode="storage",unit="B",min="0",max="250438021120",instance="/"}
55784955904 1572512965820
storage.space.usage.bytes{plugin="os/linux/snmp/plugin.pm",mode="storage",unit="B",min="0",max="824799232",instance="/run"}
1585152 1572512965820
storage.space.usage.bytes{plugin="os/linux/snmp/plugin.pm",mode="storage",unit="B",min="0",max="4123992064",instance="/dev/
shm"} 57122816 1572512965820
storage.space.usage.bytes{plugin="os/linux/snmp/plugin.pm",mode="storage",unit="B",min="0",max="5242880",instance="/run/
lock"} 4096 1572512965820
storage.space.usage.bytes{plugin="os/linux/snmp/plugin.pm",mode="storage",unit="B",min="0",max="4123992064",instance="/sys/
fs/cgroup"} 0 1572512965820
storage.space.usage.bytes{plugin="os/linux/snmp/plugin.pm",mode="storage",unit="B",min="0",max="535805952",instance="/boot/
efi"} 7974912 1572512965820
storage.space.usage.bytes{plugin="os/linux/snmp/plugin.pm",mode="storage",unit="B",min="0",max="824795136",instance="/run/
user/1000"} 65536 1572512965820
storage.space.usage.bytes{plugin="os/linux/snmp/plugin.pm",mode="storage",unit="B",min="0",max="824799232",instance="/run/
snapd/ns"} 1585152 1572512965820
plugin.mode.status{plugin="os/linux/snmp/plugin.pm",mode="storage"} 0 1572512965820
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
Password manager
●
Can mask sensitive datas on command line
●
One local and one distant password manager compatibility
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!

More Related Content

Similar to OSMC 2019 | Centreon plugins Advanced by Quentin Garnier

Virtualization and automation of library software/machines + Puppet
Virtualization and automation of library software/machines + PuppetVirtualization and automation of library software/machines + Puppet
Virtualization and automation of library software/machines + Puppet
Omar Reygaert
 

Similar to OSMC 2019 | Centreon plugins Advanced by Quentin Garnier (20)

EuroPython 2013 - Python3 TurboGears Training
EuroPython 2013 - Python3 TurboGears TrainingEuroPython 2013 - Python3 TurboGears Training
EuroPython 2013 - Python3 TurboGears Training
 
Pluggin creation
Pluggin creationPluggin creation
Pluggin creation
 
OpenShift Origin Community Day (Boston) Writing Cartridges V2 by Jhon Honce
OpenShift Origin Community Day (Boston) Writing Cartridges V2 by Jhon Honce OpenShift Origin Community Day (Boston) Writing Cartridges V2 by Jhon Honce
OpenShift Origin Community Day (Boston) Writing Cartridges V2 by Jhon Honce
 
OpenShift Origin Community Day (Boston) Extending OpenShift Origin: Build You...
OpenShift Origin Community Day (Boston) Extending OpenShift Origin: Build You...OpenShift Origin Community Day (Boston) Extending OpenShift Origin: Build You...
OpenShift Origin Community Day (Boston) Extending OpenShift Origin: Build You...
 
PHP & Performance
PHP & PerformancePHP & Performance
PHP & Performance
 
CentOS Linux Server Hardening
CentOS Linux Server HardeningCentOS Linux Server Hardening
CentOS Linux Server Hardening
 
Nagios Conference 2014 - Rob Hassing - How To Maintain Over 20 Monitoring App...
Nagios Conference 2014 - Rob Hassing - How To Maintain Over 20 Monitoring App...Nagios Conference 2014 - Rob Hassing - How To Maintain Over 20 Monitoring App...
Nagios Conference 2014 - Rob Hassing - How To Maintain Over 20 Monitoring App...
 
Red Hat Linux 5 Hardening Tips - National Security Agency
Red Hat Linux 5 Hardening Tips - National Security AgencyRed Hat Linux 5 Hardening Tips - National Security Agency
Red Hat Linux 5 Hardening Tips - National Security Agency
 
php & performance
 php & performance php & performance
php & performance
 
Pyramid Deployment and Maintenance
Pyramid Deployment and MaintenancePyramid Deployment and Maintenance
Pyramid Deployment and Maintenance
 
Virtualization and automation of library software/machines + Puppet
Virtualization and automation of library software/machines + PuppetVirtualization and automation of library software/machines + Puppet
Virtualization and automation of library software/machines + Puppet
 
PHP QA Tools
PHP QA ToolsPHP QA Tools
PHP QA Tools
 
Have you been stalking your servers?
Have you been stalking your servers?Have you been stalking your servers?
Have you been stalking your servers?
 
AMS Node Meetup December presentation Phusion Passenger
AMS Node Meetup December presentation Phusion PassengerAMS Node Meetup December presentation Phusion Passenger
AMS Node Meetup December presentation Phusion Passenger
 
[ CNCF Q1 2024 ] Intro to Continuous Profiling and Grafana Pyroscope.pdf
[ CNCF Q1 2024 ] Intro to Continuous Profiling and Grafana Pyroscope.pdf[ CNCF Q1 2024 ] Intro to Continuous Profiling and Grafana Pyroscope.pdf
[ CNCF Q1 2024 ] Intro to Continuous Profiling and Grafana Pyroscope.pdf
 
An Introduction to OpenCL™ Programming with AMD GPUs - AMD & Acceleware Webinar
An Introduction to OpenCL™ Programming with AMD GPUs - AMD & Acceleware WebinarAn Introduction to OpenCL™ Programming with AMD GPUs - AMD & Acceleware Webinar
An Introduction to OpenCL™ Programming with AMD GPUs - AMD & Acceleware Webinar
 
Nagios Conference 2014 - Eric Mislivec - Getting Started With Nagios Core
Nagios Conference 2014 - Eric Mislivec - Getting Started With Nagios CoreNagios Conference 2014 - Eric Mislivec - Getting Started With Nagios Core
Nagios Conference 2014 - Eric Mislivec - Getting Started With Nagios Core
 
Towards the perfect Drupal Dev Machine
Towards the perfect Drupal Dev MachineTowards the perfect Drupal Dev Machine
Towards the perfect Drupal Dev Machine
 
OpenHPC: Community Building Blocks for HPC Systems
OpenHPC: Community Building Blocks for HPC SystemsOpenHPC: Community Building Blocks for HPC Systems
OpenHPC: Community Building Blocks for HPC Systems
 
Zendcon scaling magento
Zendcon scaling magentoZendcon scaling magento
Zendcon scaling magento
 

Recently uploaded

Recently uploaded (20)

A Python-based approach to data loading in TM1 - Using Airflow as an ETL for TM1
A Python-based approach to data loading in TM1 - Using Airflow as an ETL for TM1A Python-based approach to data loading in TM1 - Using Airflow as an ETL for TM1
A Python-based approach to data loading in TM1 - Using Airflow as an ETL for TM1
 
INGKA DIGITAL: Linked Metadata by Design
INGKA DIGITAL: Linked Metadata by DesignINGKA DIGITAL: Linked Metadata by Design
INGKA DIGITAL: Linked Metadata by Design
 
OpenChain @ LF Japan Executive Briefing - May 2024
OpenChain @ LF Japan Executive Briefing - May 2024OpenChain @ LF Japan Executive Briefing - May 2024
OpenChain @ LF Japan Executive Briefing - May 2024
 
StrimziCon 2024 - Transition to Apache Kafka on Kubernetes with Strimzi.pdf
StrimziCon 2024 - Transition to Apache Kafka on Kubernetes with Strimzi.pdfStrimziCon 2024 - Transition to Apache Kafka on Kubernetes with Strimzi.pdf
StrimziCon 2024 - Transition to Apache Kafka on Kubernetes with Strimzi.pdf
 
10 Essential Software Testing Tools You Need to Know About.pdf
10 Essential Software Testing Tools You Need to Know About.pdf10 Essential Software Testing Tools You Need to Know About.pdf
10 Essential Software Testing Tools You Need to Know About.pdf
 
KLARNA - Language Models and Knowledge Graphs: A Systems Approach
KLARNA -  Language Models and Knowledge Graphs: A Systems ApproachKLARNA -  Language Models and Knowledge Graphs: A Systems Approach
KLARNA - Language Models and Knowledge Graphs: A Systems Approach
 
Implementing KPIs and Right Metrics for Agile Delivery Teams.pdf
Implementing KPIs and Right Metrics for Agile Delivery Teams.pdfImplementing KPIs and Right Metrics for Agile Delivery Teams.pdf
Implementing KPIs and Right Metrics for Agile Delivery Teams.pdf
 
architecting-ai-in-the-enterprise-apis-and-applications.pdf
architecting-ai-in-the-enterprise-apis-and-applications.pdfarchitecting-ai-in-the-enterprise-apis-and-applications.pdf
architecting-ai-in-the-enterprise-apis-and-applications.pdf
 
Entropy, Software Quality, and Innovation (presented at Princeton Plasma Phys...
Entropy, Software Quality, and Innovation (presented at Princeton Plasma Phys...Entropy, Software Quality, and Innovation (presented at Princeton Plasma Phys...
Entropy, Software Quality, and Innovation (presented at Princeton Plasma Phys...
 
Crafting the Perfect Measurement Sheet with PLM Integration
Crafting the Perfect Measurement Sheet with PLM IntegrationCrafting the Perfect Measurement Sheet with PLM Integration
Crafting the Perfect Measurement Sheet with PLM Integration
 
Lessons Learned from Building a Serverless Notifications System.pdf
Lessons Learned from Building a Serverless Notifications System.pdfLessons Learned from Building a Serverless Notifications System.pdf
Lessons Learned from Building a Serverless Notifications System.pdf
 
AI Hackathon.pptx
AI                        Hackathon.pptxAI                        Hackathon.pptx
AI Hackathon.pptx
 
COMPUTER AND ITS COMPONENTS PPT.by naitik sharma Class 9th A mittal internati...
COMPUTER AND ITS COMPONENTS PPT.by naitik sharma Class 9th A mittal internati...COMPUTER AND ITS COMPONENTS PPT.by naitik sharma Class 9th A mittal internati...
COMPUTER AND ITS COMPONENTS PPT.by naitik sharma Class 9th A mittal internati...
 
5 Reasons Driving Warehouse Management Systems Demand
5 Reasons Driving Warehouse Management Systems Demand5 Reasons Driving Warehouse Management Systems Demand
5 Reasons Driving Warehouse Management Systems Demand
 
What need to be mastered as AI-Powered Java Developers
What need to be mastered as AI-Powered Java DevelopersWhat need to be mastered as AI-Powered Java Developers
What need to be mastered as AI-Powered Java Developers
 
CompTIA Security+ (Study Notes) for cs.pdf
CompTIA Security+ (Study Notes) for cs.pdfCompTIA Security+ (Study Notes) for cs.pdf
CompTIA Security+ (Study Notes) for cs.pdf
 
Automate your OpenSIPS config tests - OpenSIPS Summit 2024
Automate your OpenSIPS config tests - OpenSIPS Summit 2024Automate your OpenSIPS config tests - OpenSIPS Summit 2024
Automate your OpenSIPS config tests - OpenSIPS Summit 2024
 
Microsoft365_Dev_Security_2024_05_16.pdf
Microsoft365_Dev_Security_2024_05_16.pdfMicrosoft365_Dev_Security_2024_05_16.pdf
Microsoft365_Dev_Security_2024_05_16.pdf
 
A Guideline to Zendesk to Re:amaze Data Migration
A Guideline to Zendesk to Re:amaze Data MigrationA Guideline to Zendesk to Re:amaze Data Migration
A Guideline to Zendesk to Re:amaze Data Migration
 
Top Mobile App Development Companies 2024
Top Mobile App Development Companies 2024Top Mobile App Development Companies 2024
Top Mobile App Development Companies 2024
 

OSMC 2019 | Centreon plugins Advanced by Quentin Garnier

  • 2. 2 Project Overview ● Collection of plugins ● Birth: September 2013 (6 years) ● Open Source: Apache2 ● Can monitor: snmp/modbus/http/sql/jmx/… ● Compatible: centreon/icinga/nagios/... ● https://github.com/centreon/centreon-plugins
  • 3. 3 More than 400 plugins and 1900 modes
  • 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
  • 6. 6 OpenMetrics output $ centreon_plugins.pl --plugin=os/linux/snmp/plugin.pm --mode=storage --hostname=127.0.0.1 --output-openmetrics storage.space.usage.bytes{plugin="os/linux/snmp/plugin.pm",mode="storage",unit="B",min="0",max="250438021120",instance="/"} 55784955904 1572512965820 storage.space.usage.bytes{plugin="os/linux/snmp/plugin.pm",mode="storage",unit="B",min="0",max="824799232",instance="/run"} 1585152 1572512965820 storage.space.usage.bytes{plugin="os/linux/snmp/plugin.pm",mode="storage",unit="B",min="0",max="4123992064",instance="/dev/ shm"} 57122816 1572512965820 storage.space.usage.bytes{plugin="os/linux/snmp/plugin.pm",mode="storage",unit="B",min="0",max="5242880",instance="/run/ lock"} 4096 1572512965820 storage.space.usage.bytes{plugin="os/linux/snmp/plugin.pm",mode="storage",unit="B",min="0",max="4123992064",instance="/sys/ fs/cgroup"} 0 1572512965820 storage.space.usage.bytes{plugin="os/linux/snmp/plugin.pm",mode="storage",unit="B",min="0",max="535805952",instance="/boot/ efi"} 7974912 1572512965820 storage.space.usage.bytes{plugin="os/linux/snmp/plugin.pm",mode="storage",unit="B",min="0",max="824795136",instance="/run/ user/1000"} 65536 1572512965820 storage.space.usage.bytes{plugin="os/linux/snmp/plugin.pm",mode="storage",unit="B",min="0",max="824799232",instance="/run/ snapd/ns"} 1585152 1572512965820 plugin.mode.status{plugin="os/linux/snmp/plugin.pm",mode="storage"} 0 1572512965820
  • 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!