Tell the agent to use a Unix socket for communication.
This commit is contained in:
parent
e32cb81b49
commit
40d5f99694
1 changed files with 3 additions and 0 deletions
|
|
@ -204,6 +204,9 @@ clixon_snmp_init(clicon_handle h,
|
|||
/* make a agentx client. */
|
||||
netsnmp_ds_set_boolean(NETSNMP_DS_APPLICATION_ID, NETSNMP_DS_AGENT_ROLE, 1);
|
||||
|
||||
/* XXX: This should be configurable. */
|
||||
netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID, NETSNMP_DS_AGENT_X_SOCKET, "unix:/tmp/clixon_snmp.sock");
|
||||
|
||||
/* initialize the agent library */
|
||||
init_agent(__PROGRAM__);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue