Hi,

 

I met some difficulties to add a MIB with my net-snmp.

 

This is my snmpd.conf

 

 

 

[quote]

 

###########################################################################

#

# snmpd.conf

#

#   - created by the snmpconf configuration program

#

###########################################################################

# SECTION: Agent Operating Mode

#

#   This section defines how the agent will operate when it

#   is running.

 

# master: Should the agent operate as a master agent or not.

#   Currently, the only supported master agent type for this token

#   is "agentx".

#

#   arguments: (on|yes|agentx|all|off|no)

 

master  yes

 

# agentuser: The system user that the agent runs as.

#   arguments: name|#uid

 

agentuser  root

 

# agentgroup: The system group that the agent runs as.

#   arguments: group|#GID

 

agentgroup  root

 

 

###########################################################################

# SECTION: System Information Setup

#

#   This section defines some of the information reported in

#   the "system" mib group in the mibII tree.

 

# syslocation: The [typically physical] location of the system.

#   Note that setting this value here means that when trying to

#   perform an snmp SET operation to the sysLocation.0 variable will make

#   the agent return the "notWritable" error code.  IE, including

#   this token in the snmpd.conf file will disable write access to

#   the variable.

#   arguments:  location_string

 

syslocation  snmp_local

 

# syscontact: The contact information for the administrator

#   Note that setting this value here means that when trying to

#   perform an snmp SET operation to the sysContact.0 variable will make

#   the agent return the "notWritable" error code.  IE, including

#   this token in the snmpd.conf file will disable write access to

#   the variable.

#   arguments:  contact_string

 

syscontact  [EMAIL PROTECTED]

 

# sysservices: The proper value for the sysServices object.

#   arguments:  sysservices_number

 

sysservices 0

 

 

 

###########################################################################

# SECTION: Monitor Various Aspects of the Running Host

#

#   The following check up on various aspects of a host.

 

# disk: Check for disk space usage of a partition.

#   The agent can check the amount of available disk space, and make

#   sure it is above a set limit.

#

#    disk PATH [MIN=100000]

#

#    PATH:  mount path to the disk in question.

#    MIN:   Disks with space below this value will have the Mib's errorFlag set.

#           Can be a raw byte value or a percentage followed by the %

#           symbol.  Default value = 100000.

#

#   The results are reported in the dskTable section of the UCD-SNMP-MIB tree

 

disk  / /var

 

 

###########################################################################

# SECTION: Trap Destinations

#

#   Here we define who the agent will send traps to.

 

# trap2sink: A SNMPv2c trap receiver

#   arguments: host [community] [portnum]

 

trap2sink  "127.0.0.1" public

 

# trapcommunity: Default trap sink community to use

#   arguments: community-string

 

trapcommunity  public

 

 

 

 

 

 

###########################################################################

# SECTION: Extending the Agent

#

#   You can extend the snmp agent to have it return information

#   that you yourself define.

 

# dlmod: dynamically extend the agent using a shared-object

#   arguments:  module-name module-path

 

dlmod  mplsLsrMIB /usr/local/share/snmp/mibs/MPLS-LSR-MIB.my

dlmod  mplsTeMIB /usr/local/share/snmp/mibs/MPLS-TE-MIB.my

[/quote]

 

 

when i start daemon snmpd, i chave this error :

 

[b]/usr/local/sbin/snmpd -Dread_config -c /usr/local/share/snmp/snmpd.conf[/b]

 

[color=red]read_config: /usr/local/share/snmp/snmpd.conf:118 examining: dlmod  
mplsTeMIB /usr/local/share/snmp/mibs/MPLS-TE-MIB.my

read_config: Found a parser.  Calling it: dlmod / mplsTeMIB 
/usr/local/share/snmp/mibs/MPLS-TE-MIB.my

dlopen failed: /usr/local/share/snmp/mibs/MPLS-TE-MIB.my: invalid ELF header

[/color]

 

 

Thanks for help

 

 

Best regards.

Sébastien DAVID



 

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to