Re: Integrating net-SNMP agent into my application
"Nikos Balkanas" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <000301c96e5e$cf76f270$02b2a8c0@tardis> |
Thanx, I tried these suggestions. localhost works fine. Couldn't get, though, unix sockets to work. It creates the unix socket OK, but the example-daemon fails to connect: Warning: Failed to connect to the agentx master agent ([NIL]): snmpd.conf: master agentx agentXSocket unix:/tmp/master ls -la /tmp/master: srwxr-xr-x 1 root root 0 Jan 4 13:17 /tmp/master I imagine that example daemon needs to be told of the Unix socket. Any ideas? BR, Nikos ----- Original Message ----- From: "Vincent Bernat" <[email protected]> To: <[email protected]> Sent: Sunday, January 04, 2009 11:16 AM Subject: Re: Integrating net-SNMP agent into my application > OoO En cette nuit nuageuse du dimanche 04 janvier 2009, vers 01:32, > "Nikos Balkanas" <[email protected]> disaitΒ : > >> It is a TCP/IP socket. I am afraid i don't follow you. Sockets do not >> have >> any rights. Anyone can read/write to them. That's what makes Internet >> work. > > By default, this is a _Unix_ socket. Something like > /var/agentx/master. You can set the permission you want on it using > agentXPerms in snmpd.conf. > >> I didn't know you can restrict AgentX to accept connections from >> localhost >> only. How do you configure this? > > You need to use agentXSocket option with something like tcp:localhost:705. > -- > /* > * We used to try various strange things. Let's not. > */ > 2.2.16 /usr/src/linux/fs/buffer.c > > ------------------------------------------------------------------------------ > _______________________________________________ > 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 > ------------------------------------------------------------------------------ _______________________________________________ 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