Skip to main content
Needs Votes

Easy Way to use shared SNMP Community

Related products:Infra Monitoring - MonitoringInfra Monitoring - ConfigurationInfra Monitoring - Discovery
  • October 17, 2025
  • 7 replies
  • 89 views

  • Steward *
  • 7 replies

Hello,

Today if we want to set snmp V2 community we can set it in template or host directly but we don’t have a “store” of the different snmp community and for SNMP V3 it’s much harder because you need to know the command line to set it via the EXTRAOPTION.

We have the “store” in the discovery part, can we have it everywhere ? =)

Thank by advance

Yohan

7 replies

Forum|alt.badge.img+5
  • Steward **
  • 10 replies
  • October 22, 2025

Hi,

native snmp v3 support for all plugins without using EXTRAOPTIONS would be fine.
We’ve modified several check commands by our own for a good handling of snmp v3 devices.


Forum|alt.badge.img+3
  • Author
  • Steward *
  • 7 replies
  • October 22, 2025

Hi,

native snmp v3 support for all plugins without using EXTRAOPTIONS would be fine.
We’ve modified several check commands by our own for a good handling of snmp v3 devices.

Same battle =)


rchauvel
Centreonian
Forum|alt.badge.img+18
  • Centreonian
  • 1154 replies
  • October 31, 2025
NewNeeds Votes

Forum|alt.badge.img+3
  • Author
  • Steward *
  • 7 replies
  • November 6, 2025

If we can have this in template or host ? =)

 


Forum|alt.badge.img+5
  • Steward **
  • 10 replies
  • November 11, 2025

A modified check command does the trick (here for generic snmp check):

$CENTREONPLUGINS$/centreon_generic_snmp.pl --plugin=apps::protocols::snmp::plugin --mode=numeric-value --hostname=$HOSTADDRESS$ --snmp-version 3 --snmp-username='$_HOSTSNMPV3USERNAME$' --authpassphrase='$_HOSTSNMPV3AUTHPASSPHRASE$' --authprotocol='$_HOSTSNMPV3AUTHPROTOCOL$' --privpassphrase='$_HOSTSNMPV3PRIVPASSPHRASE$' --privprotocol='$_HOSTSNMPV3PRIVPROTOCOL$' $_HOSTSNMPEXTRAOPTIONS$ --oid='$_SERVICEOID$' --format='$_SERVICEFORMAT$' --warning=$_SERVICEWARNING$ --critical=$_SERVICECRITICAL$ $_SERVICEEXTRAOPTIONS$

We linked this command linked into the service template and now we can set all parameters via macros.


Forum|alt.badge.img+10

I agree, as SNMPV3 is more and more used around, having a “simpler” interface also makes a bit more sense than asking users to redo everything through command arguments.

Of course this can be standardized in a host or service template, but i would appreciate a UI.


ponchoh
Centreonian
Forum|alt.badge.img+14
  • Centreonian
  • 533 replies
  • November 19, 2025

The template basically will end up on the UI so it is a nice start from ​@Horst Kitsch 🤩