Skip to main content
Solved

Can't get a value with keepalived plugins

  • September 1, 2022
  • 3 replies
  • 215 views

Forum|alt.badge.img+8

Hello everyone i have an issue, i can ping the VIP, but i cant get a single value with the plugin keepalived even if the service is working. Thanks for your answers !

Keepalived config:

Config centreon:

CsiI0mCKqsDtTzEu7ndriNXMyP1ZZ1IEp9tZjDDJifnpyE0fp9Nvi4yn8C58vNQCEWAn1_HR4n9YiWh3IXEx82E3AGiqRwrDZybdRLG5UdLcE52UacHyVDjxUKl_k2K9RzgxgMnY6E3NLZ00qSXo7cA

Best answer by Cyril_31

Hi, for your configuration, try:

 

Replace your global_defs by:

global_defs {

enable_snmp_keepalived

}

And on your keepalived client, in the snmpd.conf, add:

master agentx

then, restart service snmpd

 

This configuration works for me.

 

 

 

 

3 replies

sims24
Forum|alt.badge.img+19
  • Ranger ***
  • September 1, 2022

Hi, 

 

Please make sure you checked this link: https://www.keepalived.org/doc/snmp_support.html

 

The error you got means that the Keepalived SNMP OIDs are not available, probably because some SNMP configuration steps are missing.

 

Thanks​​​​


Forum|alt.badge.img+8
  • Author
  • Builder *
  • September 6, 2022

Hi, 

 

Please make sure you checked this link: https://www.keepalived.org/doc/snmp_support.html

 

The error you got means that the Keepalived SNMP OIDs are not available, probably because some SNMP configuration steps are missing.

 

Thanks​​​​

Hi I have configured everything but it doesnt work, what i have done wrong ? thanks for your answers

the configuration:

 


Forum|alt.badge.img+7
  • Steward ***
  • Answer
  • September 7, 2022

Hi, for your configuration, try:

 

Replace your global_defs by:

global_defs {

enable_snmp_keepalived

}

And on your keepalived client, in the snmpd.conf, add:

master agentx

then, restart service snmpd

 

This configuration works for me.