Erlang SNMP and os_mon questions

Mickael Remond mickael.remond@REDACTED
Thu Dec 18 09:59:04 CET 2003


Hello,

I have discovered a whole new part of Erlang/OTP I never used before:
SNMP support.

I have started writing a small tutorial to get started.

However I have failed to guess how to use os_mon_snmp. I manage to get
the watermarks figure but I fail to get the real figure.
I can also get Erlang VM information such as erlNodeName, ...

Here is the init sequence I am using:

    application:start(sasl),
    application:start(mnesia),
    application:start(os_mon),
    application:start(snmp),
    otp_mib:load(snmp_master_agent),
    os_mon_mib:init(snmp_master_agent).

And here is the agent debug message log when I try to get the
LoadSystemTotalMemory.

=ERROR REPORT==== 18-Dec-2003::09:57:20 ===
** User error: Invalid return value
{'EXIT',{bad_snmp_key,[{loadTable,[110,111,110,111,100,101,64,110,111,104,111,115,116]},[110,111,110,111,100,101,64,110,111,104,111,115,116],integer]}}
from {os_mon_mib,load_table,[]} (get_next)
** SNMP NET-IF LOG:
   reply pdu:
{pdu,'get-response',99204045,genErr,1,[{varbind,[1,3,6,1,4,1,193,19,3,2,2,1,3,1,2],'NULL','NULL',1}]}
** SNMP NET-IF INFO: time in agent: 39911 mysec
** SNMP NET-IF LOG:
   got paket from {127,0,0,1}:32850
** SNMP NET-IF MPD LOG:
   v1, community: public
** SNMP NET-IF LOG:
   got pdu
{pdu,'get-request',99204046,noError,0,[{varbind,[1,3,6,1,4,1,193,19,3,2,2,1,3,1,2],'NULL','NULL',1}]}
** SNMP NET-IF LOG:
   reply pdu:
{pdu,'get-response',99204046,noSuchName,1,[{varbind,[1,3,6,1,4,1,193,19,3,2,2,1,3,1,2],'NULL','NULL',1}]}
** SNMP NET-IF INFO: time in agent: 7771 mysec


I probably forgot something, but I cannot find anything more in the
documentation. Does someone know here how to make os_mon snmp run
properly ?

Thank you in advance for your help.

-- 
Mickaël Rémond
 http://www.erlang-projects.org/



More information about the erlang-questions mailing list