Page 1 of 2

Unable to SNMP to an AIX Server

Posted: Fri Nov 04, 2016 7:38 am
by bosecorp
I am trying to monitor AIX servers via SNMP. I believe is SNMP is configured correctly becase snmpwalk works

here is the output

# snmpwalk -v1 -c nc-BOSE myservername
SNMPv2-MIB::sysDescr.0 = STRING: IBM PowerPC CHRP Computer
Machine Type: 0x0800004c Processor id: 00F94AD04C00
Base Operating System Runtime AIX version: 07.01.0002.0015
TCP/IP Client Support version: 07.01.0002.0018
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.2.3.1.2.1.1.3
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (57804127) 6 days, 16:34:01.27
SNMPv2-MIB::sysContact.0 = STRING:
SNMPv2-MIB::sysName.0 = STRING: ovprod
SNMPv2-MIB::sysLocation.0 = STRING:
SNMPv2-MIB::sysServices.0 = INTEGER: 72


but when I try to SNMP using a Nagios plugin wont work, I get the following error

# /usr/local/nagios/libexec/check_snmp_storage_wizard.pl -H ####### -v 1 -C ######## -m -w 90 -c 95
Alarm at 15
SNMP v1 login
ERROR: Description/Type table : Requested table is empty or does not exist.

Re: Unable to SNMP to an AIX Server

Posted: Fri Nov 04, 2016 9:51 am
by rkennedy
It looks like you specified the -m parameter, but did not fill in the parameter.

Code: Select all

-m, --name=NAME
   Name in description OID (can be mounpoints '/home' or 'Swap Space'...)
   This is treated as a regexp : -m /var will match /var , /var/log, /opt/var ...
   Test it before, because there are known bugs (ex : trailling /)
   No trailing slash for mountpoints !
What happens if you specify the mountpoint?

Re: Unable to SNMP to an AIX Server

Posted: Fri Nov 04, 2016 10:06 am
by bosecorp
# /usr/local/nagios/libexec/check_snmp_storage_wizard.pl -H ############ -v 1 -C ######### -m /home -w 90 -c 95
Alarm at 15
SNMP v1 login
ERROR: Description/Type table : Requested table is empty or does not exist.
You have mail in /var/spool/mail/root

Re: Unable to SNMP to an AIX Server

Posted: Fri Nov 04, 2016 12:53 pm
by tgriep
To monitor your AIX servers drives using SNMP, extra features have to be enabled on the AIX server for that to function.
Take a look at the link below for instructions on how to reconfigure the SNMP daemon settings for your AIX server.

Code: Select all

http://nagios.fm4dd.com/howto/aix-snmp-setup.htm

Re: Unable to SNMP to an AIX Server

Posted: Fri Nov 04, 2016 12:57 pm
by bosecorp
Right. I used the same link to configure AIX and still doesn't work

the log on my AIX servers looks also OK

../../../../../../src/tcpip/usr/sbin/aixmibd/aix_main.C (1176) Now registering 1.3.6.1.4.1.2.6.191.9.1.
../../../../../../src/tcpip/usr/sbin/aixmibd/aix_main.C (1176) Now registering 1.3.6.1.4.1.2.6.191.9.2.
../../../../../../src/tcpip/usr/sbin/aixmibd/aix_main.C (1176) Now registering 1.3.6.1.4.1.2.6.191.9.3.
../../../../../../src/tcpip/usr/sbin/aixmibd/aix_main.C (1176) Now registering 1.3.6.1.4.1.2.6.191.9.4.
../../../../../../src/tcpip/usr/sbin/aixmibd/aix_main.C (1176) Now registering 1.3.6.1.4.1.2.6.191.9.5.
../../../../../../src/tcpip/usr/sbin/aixmibd/aix_main.C (1176) Now registering 1.3.6.1.4.1.2.6.191.9.6.
../../../../../../src/tcpip/usr/sbin/aixmibd/aix_main.C (1176) Now registering 1.3.6.1.4.1.2.6.191.9.7.
../../../../../../src/tcpip/usr/sbin/aixmibd/aix_main.C (1176) Now registering 1.3.6.1.4.1.2.6.191.9.8.
../../../../../../src/tcpip/usr/sbin/aixmibd/aix_main.C (1176) Now registering 1.3.6.1.4.1.2.6.191.9.9.
Fri Nov 4 14:14:06 EDT 2016 DPI sub-agent (AIX Enterprise MIB Support subagent): connected, ready to receive requests...

Re: Unable to SNMP to an AIX Server

Posted: Fri Nov 04, 2016 1:59 pm
by ssax
Please send the full sanitized output of these commands:

Code: Select all

snmpwalk -v1 -c community X.X.X.X 1.3.6.1.2.1.25.2.3.1
snmpwalk -v1 -c community X.X.X.X 1.3.6.1.2.1.25.2.1
Thank you

Re: Unable to SNMP to an AIX Server

Posted: Fri Nov 04, 2016 2:21 pm
by bosecorp
absolutely nothing

but I did

# snmpwalk -v 1 -c n##### #### 1.3.6.1.4.1.2.6.191.2.1.2
SNMPv2-SMI::enterprises.2.6.191.2.1.2.1.1.1 = STRING: "rootvg"
SNMPv2-SMI::enterprises.2.6.191.2.1.2.1.2.1 = STRING: "00f94ad000004c000000014b0cf98a76"
SNMPv2-SMI::enterprises.2.6.191.2.1.2.1.3.1 = INTEGER: 1
SNMPv2-SMI::enterprises.2.6.191.2.1.2.1.4.1 = Gauge32: 61312
SNMPv2-SMI::enterprises.2.6.191.2.1.2.1.5.1 = Gauge32: 5632
SNMPv2-SMI::enterprises.2.6.191.2.1.2.1.6.1 = Gauge32: 13
SNMPv2-SMI::enterprises.2.6.191.2.1.2.1.7.1 = Gauge32: 12
SNMPv2-SMI::enterprises.2.6.191.2.1.2.1.8.1 = Gauge32: 1
SNMPv2-SMI::enterprises.2.6.191.2.1.2.1.9.1 = INTEGER: 1

Re: Unable to SNMP to an AIX Server

Posted: Mon Nov 07, 2016 10:08 am
by tgriep
The SNMP daemon that serves up the Hard drive information is called aixmibd.
Make sure that it is running on the server and that the configuration file is setup to allow polling of that information.

Code: Select all

/etc/aixmibd.conf 
It looks like the polling for the hard drive information is disabled.

You can run the following on the AIX server to see if the SNMP daemons are running.

Code: Select all

ps aux |grep mibd

Re: Unable to SNMP to an AIX Server

Posted: Mon Nov 07, 2016 10:19 am
by bosecorp
what do you mean is disable. these are my settings

agentAccess=1
pollInterval=10
fsPollInterval=10
vgPollInterval=10
cpuPollInterval=10
AgePollInterval=10
lfPollInterval=10
CPUThreshold=95
VgThreshold=95
FsThreshold=95
PageThreshold=95
LoginFailedThreshold=20
LoginFailedTimePeriod=300
fsPollInterval=10
cpuPollInterval=10
fsPollInterval=10
cpuPollInterval=10




it does seem to be running

ps -ef | grep aixmibd
root 22413524 12779572 0 10:19:28 pts/17 0:00 grep aixmibd
root 48234498 3342526 22 10:19:20 - 0:00 /usr/sbin/aixmibd -c ##### -d 128

Re: Unable to SNMP to an AIX Server

Posted: Mon Nov 07, 2016 1:39 pm
by tgriep
What I mean about it being disabled is that when you run this command

Code: Select all

snmpwalk -v1 -c community X.X.X.X 1.3.6.1.2.1.25.2.3.1
If should of returned the Hard Drive information from the AIX server and it didn't do that.

Can you post your /etc/snmpd.conf file from the AIX server?
Maybe there is a setting in that file causing the SNMP Polling to not function.