Skip to content
This repository has been archived by the owner on Jun 14, 2022. It is now read-only.

Latest commit

 

History

History
19 lines (13 loc) · 635 Bytes

File metadata and controls

19 lines (13 loc) · 635 Bytes

mackerel-plugin-snmp

SNMP V2c custom metrics plugin for mackerel.io agent.

Synopsis

can specify multiple metric-definitions in the form of OID:NAME[:DIFF?][:STACK?] args.

mackerel-plugin-snmp [-name=<graph-name>] [-unit=<graph-unit>] [-host=<host>] [-community=<snmp-v2c-community>] [-tempfile=<tempfile>] 'OID:NAME[:DIFF?][:STACK?]' ['OID:NAME[:DIFF?][:STACK?]' ...]
 

Example of mackerel-agent.conf

[plugin.metrics.pps]
command = "/path/to/mackerel-plugin-snmp -name='pps' -community='private' '.1.3.6.1.2.1.31.1.1.1.7.2:eth01in:1:0' '.1.3.6.1.2.1.31.1.1.1.11.2:eth01out:1:0'"