AIX monitoring with SNMP doesn't work

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: AIX monitoring with SNMP doesn't work

Post by ssax »

Do you want to use SNMP v2c or v3? I don't see a v3 user setup in your configs.

See here:

https://www.ibm.com/docs/en/aix/7.2?top ... ent-snmpv3
In earlier versions of the AIX operating system, SNMPv1 was the only available version of SNMP for AIX.
What AIX version is the system running?
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: AIX monitoring with SNMP doesn't work

Post by gsmith »

hi

on the AIX machine try:

Code: Select all

lslpp /usr/sbin/snmpd
The information you get back should tell us what version of snmpd is running, please
send me the output.

Also, while on the AIX machine please try:

Code: Select all

snmpwalk -v 2c -c ABB x.x.x.x
snmpwalk -v 1 -c ABB x.x.x.x
where x.x.x.x is the IP of the AIX machine
ABBsupervision
Posts: 42
Joined: Tue Jun 08, 2021 4:20 am

Re: AIX monitoring with SNMP doesn't work

Post by ABBsupervision »

Hello teams,

The Version AIX used is : 7.1.0.0.

And following your request here is the result of the commands :

Code: Select all

bash-4.4# lslpp /usr/sbin/snmpd
Usage: lslpp [-R {Path|"ALL"}] {-d|-f|-h|-i|-L|-l|-p} [-I] [-acJq]
             [-O{[r][s][u]}] [fileset ... | -b file | all]
OR
 
lslpp [-R {Path|"ALL"}] -w [-cq] [-O{[r][s][u]}] [ filename ... | all ]
OR
 
lslpp [-R {Path|"ALL"}] -Lc[v]
OR
 
lslpp [-R {Path|"ALL"}] -E[c] [fileset ... | -b file | all]
OR
 
lslpp [-R {Path|"ALL"}] -S [A|O]
OR
 
lslpp [-R {Path|"ALL"}] -e
OR
 
        -a Displays additional ("all") information when combined with
           other flags.  (Not valid with -f)
        -b Specifies a file or bundle to use as the fileset list source.
        -c Colon-separated output.
           (Includes all deinstallable levels of software if -Lc)
        -d Dependents (filesets for which this is a requisite).
        -E License Agreements.
        -e Lists all efixes on the system.
        -f Files that belong to this fileset.
        -h History information.
        -I Limits listings to base level filesets (no updates displayed).
        -i Product Identification information (requested per fileset).
        -J Use list as the output format.  (Valid with -l and -L)
        -L Lists fileset names, latest level, states, and descriptions.
           (Consolidates usr, root and share part information.)
        -l Lists fileset names, latest level, states, and descriptions.
           (Separates usr, root and share part information.)
        -O Data comes from [r] root and/or [s] share and/or [u] usr.
           (Not valid with -L)
        -p Requisites of installed filesets.
        -q Quiet (no column headers).
        -R User Specified Install Location
        -S Lists Automatically and Optionally installed filesets.
        -v Lists only information from the vendor database, which contains
           ISMP product information.  (Valid with -Lc only)
        -w Lists the fileset that owns this file.
 
         One of the following mutually exclusive flags: d,f,h,i,L,l,p,w,E,S,e
         must be specified.
and :

Code: Select all

bash-4.4# snmpwalk -v 1 -c ABB 172.31.20.11
bash: snmpwalk: command not found
bash-4.4# snmpwalk -v 2c -c ABB 172.30.40.84
bash: snmpwalk: command not found
bash-4.4# snmpwalk
bash: snmpwalk: command not found

Best Regards,
SOUHAIB
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: AIX monitoring with SNMP doesn't work

Post by gsmith »

Hi

I don't have an AIX machine available to me so you will need to work with someone at your company
or at IBM to understand the lslpp command. Usually you can get more information on a command by running "man lslpp"
I am guessing
lslpp -l /usr/sbin/snmpd
is what we want. The goal is to find out what version of snmp is
being used by the /usr/sbin/snmpd daemon.

Also - please ask your AIX guy or IBM support guy how to install snmpwalk on the AIX machine.

Thanks
Locked