SNMP SubAgent UNIX Error

Document ID : KB000089253
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
SNMP SubAgent UNIX Error
Resolution:
Detailed Description and Symptoms

Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)

Cannot find module (SNMPv2-MIB): At line 0 in (none)

Cannot find module (SNMPv2-SMI): At line 0 in (none)

Cannot find module (SNMPv2-TM): At line 0 in (none)

Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)

Cannot find module (SNMP-MPD-MIB): At line 0 in (none)

Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)

Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)

Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)

Warning: Failed to connect to the agentx master agent (/var/agentx/master):

Warning: Failed to connect to the agentx master agent (/var/agentx/master):

Warning: Failed to connect to the agentx master agent (/var/agentx/master):

 

(These warning messages will repeat every 10 or 15 seconds)


Investigation
These messages are received when attempting to start the OM SNMP SubAgent for the first time.

Solution

The OM SNMP SubAgent (ucsnmp1) partly linked to Net-SNMP. So the following messages are normal when starting the SubAgent:

 

No log handling enabled - turning on stderr logging

Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)

Cannot find module (SNMPv2-MIB): At line 0 in (none)

Cannot find module (SNMPv2-SMI): At line 0 in (none)

Cannot find module (SNMPv2-TM): At line 0 in (none)

Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)

Cannot find module (SNMP-MPD-MIB): At line 0 in (none)

Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)

Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)

Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)

 

These messages are generated when the OM SubAgent tries to connect to the Net-SNMP Master agent and the master doesn't respond:

 

Warning: Failed to connect to the agentx master agent (/var/agentx/master):

Warning: Failed to connect to the agentx master agent (/var/agentx/master):

Warning: Failed to connect to the agentx master agent (/var/agentx/master):

 

The SNMP SubAgent (ucsnmp1) should be configured and started as a master agent on the host where the AutomationEngine is installed (unless it is necessary to start ucsnmp1 process as a subagent (role=0 in ucsnmp1.ini).

 

Please follow these steps:

 

1) In the "ucsnmp1.ini" file, make this change:

 

          role=1

 

2) In the "ucsnmp1.conf" file, make these changes:

 

          trapcommunity   public

          rocommunity     public

          trapsink        localhost

 

3) Make sure to stop all SNMP services (Net-SNMP) on the host.  Then start the ucsnmp1 as "root" (NOT as the Automic user).

 

You should get the following message in your Server logs:

 

U0003446 Connection to SNMP agent has successfully been established.