Hi:
I have an AgentX subagent called ms_agent that reads
some configuration parameters from 'ms_agent.conf".

This has been working on my machine (gcc 2.95) but
after I downloaded, installed net-snmp and compiled my
sub-agent on another machine (gcc version 4.0) and run
it again, it is not reading configuration parameters.
My conf file is in /usr/local/share/snmp directory.

In my code:
snmpd_register_config_handler("register_time_out",
                                 
parse_config_reg_timeout,
                                  NULL,
                                  NULL);

Somehow, my callback function is NOT  invoked. 

I wonder why the same code behaves differenly on two
machines. Somehow the subagent is not finding
"my_agent.conf" file? How can I debug which
configuration file path is being accessed by my
sub-agent?

Also, the ms_agent.log file is not showing timestamp
even though in snmp.conf, I have set timestamp
directive to 'true'. I saw timestamp in snmpd.log but
not in my ms_agent.log.

Again, on my old machine, there are no such problems.


Thanks
Steve

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
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