LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-16-2008, 07:34 PM   #1
AustinMarton
Member
 
Registered: May 2007
Location: New Zealand
Distribution: Ubuntu
Posts: 88

Rep: Reputation: 16
Net-SNMP writing a Subagent - snmp.conf Unknown token: master


Hello,

I am trying to write a basic sub-agent to collect some data and display it using SNMP requests. I am working through this example:

http://www.net-snmp.org/wiki/index.p...ing_a_Subagent

I have added "master agentx" to snmp.conf, but when I run the daemon I have compiled I get
Code:
[root@localhost atut]# ./example-demon 
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
/usr/share/snmp/snmp.conf: line 2: Warning: Unknown token: master.
Warning: Failed to connect to the agentx master agent ([NIL]):
Does anyone know how to fix this? I have found a few forums asking the same question but no answer.

I am running Fedora 9 i386 and Net-SNMP v5.4.2.1, testing Net-SNMP using the loopback interface.

Thanks,
Austin.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SNMP master & SNMP client Script for system monitoring ratul_11 Programming 1 12-24-2007 05:32 AM
net-snmp subagent problem watsonpan Linux - Software 0 09-21-2005 01:30 AM
net-snmp unknown token squashie Linux - Networking 1 08-22-2005 12:24 PM
How to configure ucd-snmp and net-snmp? Tazzmanian Linux - Networking 1 05-27-2005 08:09 AM
snmp (ucd-snmp, net-snmp) markus1982 Linux - Software 1 11-21-2002 10:45 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration