HOWTO: Get Zenoss to monitor AIX servers correctly PDF Print E-mail
User Rating: / 7
PoorBest 
Written by Michael Osburn   

The default AIX SNMPd service does not meet our needs in several aspects that I will not get into here. In order to have a functional SNMP service that Zenoss can use it needs to have net-snmp installed.

Make sure that net-snmp is installed by checking to see if the following folder exists.

 root@AIX01:/> ls /usr/local/bin/net-snmp/5.4/current@

If this directory exists then you are ready to procede. If this folder is not there it may have been moved so check arround the /usr/local/bin directory until you locate it. If you still cannot find it then you need to install it. We would install this using RPM and with the note that the XXX in the file name correspomds to the full version.

 root@AIX01:/> rpm -Uhv /tmp/net-snmp.XXX.rpm

 AIX has a few issues with the Net-SNMP daemon, specifically it does not know how to pull the ipAddrTable, ipRouteTables, and CPU information from the kernel. To get this information we have to proxy it. Setting up the proxy is a lot easier now that we have fixed some of the network issues that we were having. The configuration changes that we have to make are rather minor and should work as expected right away.

The first change we need to make is to edit /etc/inittab and add the following at the end of the net-snmp configuration line, -I -interfaces

After this is done the following is used to enable proxying on the Net-SNMP side. 

vi /usr/local/bin/net-snmp/etc/snmpd.conf

 Add in the following code to get the ipAddrTables and ipRouteTables working.

# Proxy IBM Agnt Requests for port number
proxy -v 1 -c public 127.0.0.1:161 1.3.6.1.4.1.2.2.1.1.0
proxy -v 1 -c public 127.0.0.1:161 1.3.6.1.4.1.2.2.1.1.1.0
# Proxy iftable(IF-MIB: Interface Names & Stats), iptable and ifalias
proxy -v 1 -c public 127.0.0.1:161 .1.3.6.1.2.1
proxy -v 1 -c public 127.0.0.1:161 .1.3.6.1.2.1.4.20.1
# Proxy RFC1213-MIB (Route Info)
proxy -v 1 -c public 127.0.0.1:161 .1.3.6.1.2.1.4.21.1
# Proxy SysUptime (netsnmp doesn't work)
proxy -v 1 -c public 127.0.0.1:161 1.3.6.1.2.1.25.1.1.0
# Proxy the SNMP Descr so OS shows up properly in zenoss parsing
proxy -v 1 -c public 127.0.0.1:161 .1.3.6.1.2.1.1.1.0

  After the process restart snmpwalk the host to make sure that the OIDs are proxying correctly. We do this on the the host that we are working with first, then move on to the monitoring host to make sure it works and alert us of any potential network issues that may arrise in the future. Additionally, you may need to change the "-c public" to what ever your comminity name is.

# cd /usr/local/bin/net-snmp/current/bin
snmpwalk -v 1 -c public localhost:1610 1.3.6.1.2.1.4.20.1.1
snmpwalk -v 1 -c public localhost:1610 1.3.6.1.2.1.4.21.1.1

 
If either of these walk fails to bring up the IP information STOP, I cannot stress that enough. If this does not work then monitoring these srtings will not. Stop the procedure and go back through to make sure the following are met.

  Are all the daemons running?
  Were there any error messages that showed up when you restarted them?
  Does "netstat -tan | grep 161" show the ports 161 and 1610 open?
  Check the logs for error messages


When this all works you can add the host into Zenoss or what ever software your monitoring system runs.
 
< Prev   Next >
Login