Mostafa Salari
2015-08-15 15:05:36 UTC
Hello,
I'm new to net-snmp agent. I am trying to do "Writing a Sub agent" tutorial
as described in the following link:
http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_Subagent#Test_object_with_subagent
I was successfull to compile and run my own agentx subagent using net-snmp
--compile-subagent ... as described in the tutorial.
I wrote a sub agent that reads any number of OIDs and Values from a text
file and registers them via "netsnmp_register_long_
instance" function. It works! but if the textfile changed the sub agennt
must be killed and executed again so that snmpwalk shows the new values.
SO: I want to write a sub agent that read the textfile repeatedly (for
example every 5 secs). I thought that
I'm new to net-snmp agent. I am trying to do "Writing a Sub agent" tutorial
as described in the following link:
http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_Subagent#Test_object_with_subagent
I was successfull to compile and run my own agentx subagent using net-snmp
--compile-subagent ... as described in the tutorial.
I wrote a sub agent that reads any number of OIDs and Values from a text
file and registers them via "netsnmp_register_long_
instance" function. It works! but if the textfile changed the sub agennt
must be killed and executed again so that snmpwalk shows the new values.
SO: I want to write a sub agent that read the textfile repeatedly (for
example every 5 secs). I thought that