Page 1 of 2

AIX monitoring with SNMP doesn't work

Posted: Fri Jun 11, 2021 9:56 am
by ABBsupervision
Hello,
We're trying to configure SNMPv3 on AIX to check its status through XI but we doesn't succeed.
We followed your instructions based on https://assets.nagios.com/downloads/nag ... g-SNMP.pdf

The logging is not written on /usr/tmp/snmpdv3.log as specified on conf file, instead we got error message on /usr/tmp/snmpd.log as follow:
06/11/21 15:45:18 EXCEPTIONS: decode_SNMP_Message: pr_seq:missing mandatory parameter: module SNMP OBJECT/class=UNIV/id=1 got CONT/5 (::ffff:<IP_Nagios_Server>)

We added following lines on conf files:
VACM_VIEW defaultView system - included -
VACM_VIEW defaultView interfaces - included -
VACM_VIEW defaultView tcp - included -
VACM_VIEW defaultView icmp - included -
VACM_VIEW defaultView udp - included -
VACM_VIEW defaultView snmp - included -
VACM_VIEW defaultView 1.3.6.1.2.1.25 - included -

Since it didn't change anything we made following change (change excluded by included):
VACM_VIEW defaultView snmpModules - included -

But still not working.
Any idea on how to resolve our issue please.

Thanks & regards

Re: AIX monitoring with SNMP doesn't work

Posted: Fri Jun 11, 2021 3:16 pm
by gsmith
Hi,

Can you please try this - I want to see where we're at with communication between the
xi server and the AIX box:

On the xi server:
cd /usr/local/nagios/libexec
./check_snmp_storage.pl -H <ip of AIX machine> -C <v3 communityname> -m "^/$" -w 2 -c 4

This check should return disk usage information from the remote AIX server, something like:
/: 11%used(1550MB/13892MB) (>4%) : CRITICAL

If it doesn't please provide the following files from the AIX machine:
/var/tmp/aixmibd.log
/var/tmp/hostmibd.log
/var/tmp/snmpdv3.log
/var/tmp/snmpmibd.log
/etc/snmpd.conf

Here is a good resource for AIX: https://nagios.fm4dd.com/howto/aix-snmp-setup.shtm

Thanks

Re: AIX monitoring with SNMP doesn't work

Posted: Mon Jun 14, 2021 5:17 am
by ABBsupervision
Hello gsmith,

When a run this command i got this resultat :

Code: Select all

[root@DCPNAGIOSXIN1 libexec]# ./check_snmp_storage.pl -H <ip of AIX machine> -C <v3 communityname> -m "^/$" -w 2 -c 4
ERROR: Description/Type table : No response from remote host "ip of AIX machine".
[root@DCPNAGIOSXIN1 libexec]#

Please find attached the following files from the AIX machine.

Best Regards,
SOUHAIB

Re: AIX monitoring with SNMP doesn't work

Posted: Mon Jun 14, 2021 9:45 am
by gsmith
Hi

On the nagios server run:

Code: Select all

nmap -sU -p 161 <ip of AIX machine>
Note: You may have to install nmap

If you get:

Code: Select all

Host is up (0.00068s latency).
PORT    STATE  SERVICE
161/udp closed snmp
Then you need to allow port 161 UDP on the AIX machine's firewall

Once you get:

Code: Select all

Host is up (0.00068s latency).
PORT    STATE         SERVICE
161/udp open|filtered snmp
then try these four commands:

Code: Select all

snmpwalk -v1 -c ABB <ip of AIX>
snmpwalk -v2c -c ABB <ip of AIX>
snmpwalk -v1 -c ABB <ip of AIX>
snmpwalk -v2c -c ABB <ip of AIX>
Thanks

Re: AIX monitoring with SNMP doesn't work

Posted: Tue Jun 15, 2021 3:36 am
by ABBsupervision
Hello,

I inform you that the port is open as you can see via the following command :

Code: Select all

[root@DCPNAGIOSXIN1 ~]# nmap -sU -p 161 <ip of AIX machine>
Starting Nmap 7.70 ( https://nmap.org ) at 2021-06-15 09:30 +01
Nmap scan report for <Name AIX machine> (x.x.x.x)
Host is up (0.00065s latency).

PORT    STATE         SERVICE
161/udp open|filtered snmp

Nmap done: 1 IP address (1 host up) scanned in 6.01 seconds
[root@DCPNAGIOSXIN1 ~]#

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

Code: Select all

[root@DCPNAGIOSXIN1 ~]# snmpwalk -v1 -c ABB <ip of AIX machine>
Timeout: No Response from x.x.x.x
[root@DCPNAGIOSXIN1 ~]# snmpwalk -v2c -c ABB <ip of AIX machine>1
Timeout: No Response from x.x.x.x
[root@DCPNAGIOSXIN1 ~]# snmpwalk -v1 -c ABB <ip of AIX machine>
Timeout: No Response from x.x.x.x
[root@DCPNAGIOSXIN1 ~]# snmpwalk -v2c -c ABB <ip of AIX machine>
Timeout: No Response from x.x.x.x
Best Regards,
SOUHAIB

Re: AIX monitoring with SNMP doesn't work

Posted: Tue Jun 15, 2021 4:14 am
by ABBsupervision
Hello,

Any news about our request ?
It's urgent please.

Thanks & regards

Re: AIX monitoring with SNMP doesn't work

Posted: Tue Jun 15, 2021 10:58 am
by gsmith
Try this :

snmpwalk -v1 -c public <ip of AIX>
snmpwalk -v2c -c public <ip of AIX>

Re: AIX monitoring with SNMP doesn't work

Posted: Tue Jun 15, 2021 9:32 pm
by ABBsupervision
Hi gsmith,

We tried both snmpwalk command and we got the same message :
Timeout: No Response from <IP_AIX>

We changed the community from public to <our_community> for both commands.
In SNMP version 2c we got the same Timeout / No Response error message
In SNMP version 1 it works

The SNMP v1 is already working as the AIX was monitoring by an old version of Nagios Core.
Since we deployed XI in replacement of the old version, we lost the AIX monitoring ability, since XI is using only SNMP version 2c or 3.

Any other suggestions ?
Thanks & regards

Re: AIX monitoring with SNMP doesn't work

Posted: Wed Jun 16, 2021 9:48 am
by gsmith
Hi

Code: Select all

cd /usr/sbin
ls -l snmp*
What does the link show?

edit /etc/snmpdv3.conf
change:

Code: Select all

COMMUNITY ABB    ABB     noAuthNoPriv 0.0.0.0     0.0.0.0         -
to:

Code: Select all

COMMUNITY ABB    ABB     noAuthNoPriv <ip of nagiosxi>    255.255.255.255         -

Code: Select all

stopsrc -s aixmibd
stopsrc -s hostmibd
stopsrc -s snmpmibd
stopsrc -s snmpd

startsrc -s aixmibd -a "-c ABB"
startsrc -s hostmibd -a "-c ABB"
startsrc -s snmpmibd -a "-c ABB"
startsrc -s snmpd
Then try the snmpwak from the nagiosxi server.

Thanks

Re: AIX monitoring with SNMP doesn't work

Posted: Mon Jun 21, 2021 6:29 am
by ABBsupervision
Hello,

Please find the order result below :

Code: Select all

[root@DCPNAGIOSXIN1 ~]# cd /usr/sbin
[root@DCPNAGIOSXIN1 sbin]# ls -l snmp*
-rwxr-xr-x. 1 root root  33352 11 août   2020 snmpd
-rwxr-xr-x. 1 root root  33504 11 août   2020 snmptrapd
-rwxr-xr-x. 1 root root 177455  7 nov.   2013 snmptt
-rwxr-xr-x. 1 root root   6488  7 nov.   2013 snmptthandler
[root@DCPNAGIOSXIN1 sbin]#
We have modified the file in the AIX server, as well as the execution of the mentioned commands.

But when we launch the snmpwalk nothing happens.

Code: Select all

[root@DCPNAGIOSXIN1 ~]# snmpwalk -v 2c -c ABB x.x.x.x
Timeout: No Response from x.x.x.x
Best Regards,
SOUHAIB