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

EuroPython 2013 - Python3 TurboGears Training
EuroPython 2013 - Python3 TurboGears TrainingEuroPython 2013 - Python3 TurboGears Training
EuroPython 2013 - Python3 TurboGears TrainingAlessandro Molina
 
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...OpenShift Origin
 
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 Diane Mueller
 
PHP & Performance
PHP & PerformancePHP & Performance
PHP & Performance毅 吕
 
CentOS Linux Server Hardening
CentOS Linux Server HardeningCentOS Linux Server Hardening
CentOS Linux Server HardeningMyOwn Telco
 
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...Nagios
 
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 Agencysanchetanparmar
 
php & performance
 php & performance php & performance
php & performancesimon8410
 
Pyramid Deployment and Maintenance
Pyramid Deployment and MaintenancePyramid Deployment and Maintenance
Pyramid Deployment and MaintenanceJazkarta, Inc.
 
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 + PuppetOmar Reygaert
 
PHP QA Tools
PHP QA ToolsPHP QA Tools
PHP QA Toolsrjsmelo
 
Have you been stalking your servers?
Have you been stalking your servers?Have you been stalking your servers?
Have you been stalking your servers?Martin Marji Cermak
 
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 Passengericemobile
 
[ 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.pdfSteve Caron
 
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 WebinarAMD Developer Central
 
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 CoreNagios
 
Towards the perfect Drupal Dev Machine
Towards the perfect Drupal Dev MachineTowards the perfect Drupal Dev Machine
Towards the perfect Drupal Dev MachineKrimson
 
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 Systemsinside-BigData.com
 
Zendcon scaling magento
Zendcon scaling magentoZendcon scaling magento
Zendcon scaling magentoMathew Beane
 

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) 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...
 
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
 
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

WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2
 
WSO2CON 2024 - Building a Digital Government in Uganda
WSO2CON 2024 - Building a Digital Government in UgandaWSO2CON 2024 - Building a Digital Government in Uganda
WSO2CON 2024 - Building a Digital Government in UgandaWSO2
 
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypseTomasz Kowalczewski
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Bert Jan Schrijver
 
WSO2CON 2024 - Software Engineering for Digital Businesses
WSO2CON 2024 - Software Engineering for Digital BusinessesWSO2CON 2024 - Software Engineering for Digital Businesses
WSO2CON 2024 - Software Engineering for Digital BusinessesWSO2
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2
 
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2
 
BusinessGPT - Security and Governance for Generative AI
BusinessGPT  - Security and Governance for Generative AIBusinessGPT  - Security and Governance for Generative AI
BusinessGPT - Security and Governance for Generative AIAGATSoftware
 
WSO2Con2024 - Low-Code Integration Tooling
WSO2Con2024 - Low-Code Integration ToolingWSO2Con2024 - Low-Code Integration Tooling
WSO2Con2024 - Low-Code Integration ToolingWSO2
 
Evolving Data Governance for the Real-time Streaming and AI Era
Evolving Data Governance for the Real-time Streaming and AI EraEvolving Data Governance for the Real-time Streaming and AI Era
Evolving Data Governance for the Real-time Streaming and AI Eraconfluent
 
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public AdministrationWSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public AdministrationWSO2
 
WSO2Con2024 - Organization Management: The Revolution in B2B CIAM
WSO2Con2024 - Organization Management: The Revolution in B2B CIAMWSO2Con2024 - Organization Management: The Revolution in B2B CIAM
WSO2Con2024 - Organization Management: The Revolution in B2B CIAMWSO2
 
WSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2
 
WSO2CON2024 - Why Should You Consider Ballerina for Your Next Integration
WSO2CON2024 - Why Should You Consider Ballerina for Your Next IntegrationWSO2CON2024 - Why Should You Consider Ballerina for Your Next Integration
WSO2CON2024 - Why Should You Consider Ballerina for Your Next IntegrationWSO2
 
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & InnovationWSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & InnovationWSO2
 
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public AdministrationWSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public AdministrationWSO2
 
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!WSO2
 
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2
 

Recently uploaded (20)

WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security Program
 
WSO2CON 2024 - Building a Digital Government in Uganda
WSO2CON 2024 - Building a Digital Government in UgandaWSO2CON 2024 - Building a Digital Government in Uganda
WSO2CON 2024 - Building a Digital Government in Uganda
 
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
WSO2CON 2024 - Software Engineering for Digital Businesses
WSO2CON 2024 - Software Engineering for Digital BusinessesWSO2CON 2024 - Software Engineering for Digital Businesses
WSO2CON 2024 - Software Engineering for Digital Businesses
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
 
BusinessGPT - Security and Governance for Generative AI
BusinessGPT  - Security and Governance for Generative AIBusinessGPT  - Security and Governance for Generative AI
BusinessGPT - Security and Governance for Generative AI
 
WSO2Con2024 - Low-Code Integration Tooling
WSO2Con2024 - Low-Code Integration ToolingWSO2Con2024 - Low-Code Integration Tooling
WSO2Con2024 - Low-Code Integration Tooling
 
Evolving Data Governance for the Real-time Streaming and AI Era
Evolving Data Governance for the Real-time Streaming and AI EraEvolving Data Governance for the Real-time Streaming and AI Era
Evolving Data Governance for the Real-time Streaming and AI Era
 
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public AdministrationWSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
 
WSO2Con2024 - Organization Management: The Revolution in B2B CIAM
WSO2Con2024 - Organization Management: The Revolution in B2B CIAMWSO2Con2024 - Organization Management: The Revolution in B2B CIAM
WSO2Con2024 - Organization Management: The Revolution in B2B CIAM
 
WSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaS
 
WSO2CON2024 - Why Should You Consider Ballerina for Your Next Integration
WSO2CON2024 - Why Should You Consider Ballerina for Your Next IntegrationWSO2CON2024 - Why Should You Consider Ballerina for Your Next Integration
WSO2CON2024 - Why Should You Consider Ballerina for Your Next Integration
 
Abortion Pill Prices Boksburg [(+27832195400*)] 🏥 Women's Abortion Clinic in ...
Abortion Pill Prices Boksburg [(+27832195400*)] 🏥 Women's Abortion Clinic in ...Abortion Pill Prices Boksburg [(+27832195400*)] 🏥 Women's Abortion Clinic in ...
Abortion Pill Prices Boksburg [(+27832195400*)] 🏥 Women's Abortion Clinic in ...
 
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & InnovationWSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
 
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public AdministrationWSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
 
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
 
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
 

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!