github.com/mackerelio/mackerel-agent-plugins@v0.89.3/mackerel-plugin-snmp/README.md (about)

     1  mackerel-plugin-snmp
     2  =====================
     3  
     4  SNMP V2c custom metrics plugin for mackerel.io agent.
     5  
     6  ## Synopsis
     7  can specify multiple metric-definitions in the form of `OID:NAME[:DIFF?][:STACK?]` args.
     8  
     9  ```shell
    10  mackerel-plugin-snmp [-name=<graph-name>] [-unit=<graph-unit>] [-host=<host>] [-port=<port>] [-community=<snmp-v2c-community>] [-tempfile=<tempfile>] 'OID:NAME[:DIFF?][:STACK?]' ['OID:NAME[:DIFF?][:STACK?][:COUNTER?]' ...]
    11   
    12  ```
    13  
    14  ### What is the argument `COUNTER`
    15  
    16  If the value is a 32-bit counter, specify uint32.
    17  
    18  supported types:
    19  
    20  - uint32
    21  - uint64
    22  
    23  ## Example of mackerel-agent.conf
    24  
    25  ```
    26  [plugin.metrics.pps]
    27  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'"
    28  ```