Skip to main content
Discussion ongoing

generic SNMP check: need --format-custom in --config-json mode

Related products:Infra Monitoring - MonitoringInfra Monitoring - Connectors
  • Oct 28, 2025 3:46 PM UTC
  • 3 replies
  • 43 views

Forum|alt.badge.img+5

I need to monitor several values, which I want to have in a single graph.
Unfortuantely, I need to do some math on each value (/10 for some and /100 for others).
When I grab a single oid, I can do that with --format-custom. But in --config-json mode, format-custom does not do anything.
Can these options be added to the --config-json mode?

BR
Horst

3 replies

rchauvel
Centreonian
Forum|alt.badge.img+18
  • Centreonian
  • Oct 31, 2025 1:08 PM UTC
New→Needs Votes

ltirand
Centreonian
Forum|alt.badge.img+13
  • Centreonian
  • Nov 17, 2026 1:58 PM UTC

Hello ​@Horst Kitsch 


Thank you for this idea. Good news: this is already supported, the key name is just slightly different inside the JSON.

In --config-json, each entry accepts a format_custom key (with an underscore), which does the same as --format-custom for a single OID:

--config-json='[
  { "oid": ".1.3.6.1.4.1.x.1", "perfdata_name": "value1", "format_custom": "/ 10" },
  { "oid": ".1.3.6.1.4.1.x.2", "perfdata_name": "value2", "format_custom": "/ 100" }
]'

Tell us if this answer solve your needs and we’ll close this idea.

Best regards.


Forum|alt.badge.img+5
  • Centreonian
  • Nov 17, 2026 1:58 PM UTC
Updated idea statusNeeds Votes→Discussion ongoing