Hello,

I am attempting to write a SNMP mail queue monitor. Essentially I would like to register an agent with a custom OID which will execute a system command and return the value to my monitoring system.

At issue is my ability to register an agent. I started out with a simple script to register the agent. When run from the command line I receive the following error:

Warning: no access control information configured.
It's unlikely this agent can serve any useful purpose in this state.
Run "snmpconf -g basic_setup" to help you configure the my_agent_name.conf file for this agent.

either I'm an idiot or that is misleading advice... I am unable to create any files other than snmp.conf, snmpd.conf, or snmptrapd.conf. (looking at the help it even says: /usr/bin/snmpconf [options] [FILETOCREATE...] but does not create the a file...)
when run from a perl do line (i.e.: perl do '/foo/bar/script.pl') in the snmpd.conf file this script causes snmpd to become unresponsive and a kill -9 PID is required.

here is the code I am working with:
pastebin.com/S1fQwpRf

I am sure it is something simple I am missing... Any help is greatly appreciated as I have wrestled with this problem for some time.

EDIT:
Apparently Perl code is a url to another site... ?!?
to see the code you will have to go to pastebin dot com forward-slash S1fQwpRf

I'd put a link, but I'm not allowed...