If I have an application running as non-root, can I still send out a snmp
trap? If so, how?
Here is what I have now:
std::cout << "Test sending traps." << std::endl;
netsnmp_ds_set_boolean( NETSNMP_DS_APPLICATION_ID, NETSNMP_DS_AGENT_ROLE, 1
);
init_agent( "foo" );
init_snmp ( "foo" );
init_trap
I have many scalar variables that are managed by an external (from SNMP
agent point of view) device. If this external device doesn't communicate
with the agent (it is connected through a RS232 port), this group of
scalar variables can't be accessed, so I decided to return a
noSuchInstance error