[HOWTO] Install and configure the Net-SNMP agent for Unix

If you figure out how to do something interesting/cool in Cacti and want to share it with the community, please post your experience here.

Moderators: Moderators, Developers

Author
Message
marekmust
Posts: 16
Joined: Tue May 12, 2009 1:34 am
Contact:

#76 Post by marekmust » Tue Jan 12, 2010 4:42 am

Hello.

I have trueUnix 64 machine here and i am trying to activate the snmpd one it.

I have no problem configuring it and restarting it.

Code: Select all

community public                0.0.0.0         write
or other varios ways, but my remote machine still cant get access to it, via snmpd(cacti machine). I have "SNMP error "

Code: Select all

# /sbin/init.d/snmpd start
chmod g+w /var/esnmp...
umask 02...
# ps xa|grep snmpd
 18755 ??       S        0:00.07 /usr/sbin/snmpd
  8774 ttyp2    S  +     0:00.01 grep snmpd
Seems like everything is working.


Itryd netstating and its not in the list, but its in the services list. if i do
netstat -a, then i would have it one the list. as so:

Code: Select all


udp        0      0  *.snmp                 *.*
Anyways any help would be great.

Regards.

User avatar
fmangeant
Cacti Guru User
Posts: 2326
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

#77 Post by fmangeant » Tue Feb 02, 2010 9:28 am

For those who are trying to build Net-SNMP under AIX 6.1 :
  • it seems Net-SNMP 5.5 is not compatible, I've only managed to build 5.4.2.1
  • for every file including libperfstat.h, you have first to include sys/protosw.h
  • when running "make install", 2 libraries are not installed properly : libnetsnmphelpers.so and libnetsnmpmibs.so
Here's a Net-SNMP 5.4.2.1 tarball (compiled with GCC 4.2.0 under AIX 6.1 TL4 SP2)

You'll also need this libgcc RPM
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]

User avatar
browniebraun
Developer
Posts: 788
Joined: Tue Jun 13, 2006 1:17 am
Location: Cologne, Germany

#78 Post by browniebraun » Sat Feb 20, 2010 3:28 am

fmangeant wrote:For those who are trying to build Net-SNMP under AIX 6.1 :
  • it seems Net-SNMP 5.5 is not compatible, I've only managed to build 5.4.2.1
  • for every file including libperfstat.h, you have first to include sys/protosw.h
  • when running "make install", 2 libraries are not installed properly : libnetsnmphelpers.so and libnetsnmpmibs.so
Here's a Net-SNMP 5.4.2.1 tarball (compiled with GCC 4.2.0 under AIX 6.1 TL4 SP2)

You'll also need this libgcc RPM
Hipp, Hipp, Hurra!

Frédéric is back! ;)

Best regards
-Andreas-
Hat das Blümchen einen Knick, war der Schmetterling zu dick! ;)
reportit v0.7.5a
SNMPAgent v0.2.3
Download ReportIt | Download SNMPAgent | ReportIt SVN | ReportIt Templates | Wish list

specki
Posts: 32
Joined: Thu Jun 09, 2011 5:49 am
Location: Cologne, Germany

Re: [HOWTO] Install and configure the Net-SNMP agent for Uni

#79 Post by specki » Wed Jun 29, 2011 10:00 am

sry problem is solved

sergani
Posts: 24
Joined: Sun Sep 18, 2011 3:49 am
Location: Cairo, Egypt

Re: [HOWTO] Install and configure the Net-SNMP agent for Uni

#80 Post by sergani » Sun Sep 18, 2011 8:52 am

fmangeant wrote:This HowTo is now available at http://docs.cacti.net/manual:087:1_inst ... igure_snmp !

YESSS!!!

AWESOME WRITEUP!!

Thanks a lot...
//M

Post Reply