I followed the cloudstack documentation here:

https://docs.cloudstack.apache.org/en/4.18.0.0/adminguide/management.html?highlight=snmp#configuring-snmp-and-syslog-managers

to get SNMP traps working, however, no traps are being sent. I don't see
any related errors logged. I see no instances of failed library loads, but
I do not see. Do I need to manually install the libsnmp4j library myself?

I know it's reading the log4j config as I get this notification in the
management server log:

2023-08-07 18:20:42,842 INFO  [c.c.u.LogUtils] (main:null) (logid:) log4j
configuration found at /etc/cloudstack/management/log4j-cloud.xml

Here is the log4j config for the SNMP appender (note that I have configured
syslog as well, and that is working).

 <appender name="SNMP"
class="org.apache.cloudstack.alert.snmp.SnmpTrapAppender">

      <param name="Threshold" value="WARN"/>

      <param name="SnmpManagerIpAddresses" value="<redacted>"/>

      <param name="SnmpManagerPorts" value="162"/>

      <param name="SnmpManagerCommunities" value="public"/>

      <layout
class="org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayout">

         <param name="PairDelimiter" value="//"/>

         <param name="KeyValueDelimiter" value="::"/>

      </layout>

   </appender>

Any insight will be greatly appreciated.

Regards,

Willard

Reply via email to