Another question for: "Writing a Subagent

Mostafa Salari <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAGQ+h=3jDATYe=CX8SEU+SL-ZBwzNcYszfKHVGwVZ0=czPM65w@mail.gmail.com>
Hello,
I want to write a subagent that updates the values of some MIBs from a text
file (Some other function fill the file).

I am altering the following tutorial code to reach my goal:
http://www.net-snmp.org/tutorial/tutorial-5/toolkit/demon/example-demon.c

So my subagent can check the file every (for example) 5 seconds, then call
a function that updates the OID values.
1. WHAT IS THAT UPDATE FUNCTION? I used
2. WHERE SHOULD I PLACE THIS CHECKING CODE? Is the main loop
*while(keep_running){...}* in the above link suitable?
3. WHAT DOES [agent_check_and_process(1);] LINE DO IN THE MAIN LOOP?
4. IS THERE ANOTHER WAY TO UPDATE SOME MIBS ITERATIVELY?

Thank you very much for your good support
Best regards,
Mustafa

------------------------------------------------------------------------------

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.