Page 1 of 1

adding palalto azure cloud appliance to nagios

Posted: Mon Aug 10, 2020 12:48 pm
by rnjie
i currently have some physical palalto appliances monitored in nagios through snmp and they are worjing fine, however i tried adding a vitual one from azure today and i ran into some errors. its looking like an snmp issue but am sure the configuration is right but am not getting any response when i try the wizard and also on the command line, please see results below when i try to query hosts

@dximonp1 ~]# /usr/bin/cfgmaker --show-op-down --noreversedns --zero-speed '100000000' '[email protected] :161::::2'
Subroutine SNMP_Session::pack_sockaddr_in6 redefined at /usr/share/perl5/vendor_perl/Exporter.pm line 66.
at /usr/bin/../lib/mrtg2/SNMP_Session.pm line 149.
Subroutine SNMP_Session::unpack_sockaddr_in6 redefined at /usr/share/perl5/vendor_perl/Exporter.pm line 66.
at /usr/bin/../lib/mrtg2/SNMP_Session.pm line 149.
Subroutine SNMPv1_Session::pack_sockaddr_in6 redefined at /usr/share/perl5/vendor_perl/Exporter.pm line 66.
at /usr/bin/../lib/mrtg2/SNMP_Session.pm line 604.
Subroutine SNMPv1_Session::unpack_sockaddr_in6 redefined at /usr/share/perl5/vendor_perl/Exporter.pm line 66.
at /usr/bin/../lib/mrtg2/SNMP_Session.pm line 604.
--base: Get Device Info on [email protected] :161::::2
SNMP Error:
no response received
SNMPv2c_Session (remote host: "172.19.20.232 " [172.19.20.232].161)
community: "!plut0"
request ID: -584935054
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/bin/../lib/mrtg2/SNMP_util.pm line 651.
SNMPWALK Problem for 1.3.6.1.2.1.1 on [email protected] :161::::2:v4only
at /usr/bin/cfgmaker line 951.
WARNING: Skipping [email protected] :161::::2 as no info could be retrieved

Use of uninitialized value $comment_sysdescr in substitution (s///) at /usr/bin/cfgmaker line 379.
Use of uninitialized value $sysname in concatenation (.) or string at /usr/bin/cfgmaker line 412.
Use of uninitialized value $comment_sysdescr in concatenation (.) or string at /usr/bin/cfgmaker line 412.
Use of uninitialized value $syscontact in concatenation (.) or string at /usr/bin/cfgmaker line 412.
Use of uninitialized value $syslocation in concatenation (.) or string at /usr/bin/cfgmaker line 412.
# Created by
# /usr/bin/cfgmaker --show-op-down --noreversedns --zero-speed 100000000 "[email protected] :161::::2"


### Global Config Options

# for UNIX
# WorkDir: /home/http/mrtg

# or for NT
# WorkDir: c:\mrtgdata

### Global Defaults

# to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits

EnableIPv6: no

######################################################################
# System:
# Description:
# Contact:
# Location:
######################################################################

Re: adding palalto azure cloud appliance to nagios

Posted: Tue Aug 11, 2020 3:00 pm
by cdienger
You may need to install nmap first:

Code: Select all

yum -y install nmap
or

Code: Select all

apt-get install  nmap
but what is the output of these commands when run on the XI command line:

Code: Select all

nmap 172.19.20.232 -p 161 -sU
snmpwalk -v2c -c '!plut0' 172.19.20.232 1.3.6.1.2.1.1
?

Re: adding palalto azure cloud appliance to nagios

Posted: Wed Aug 12, 2020 12:11 pm
by rnjie
nmap was already installed in my system, if i am correct do u mean nmap on the virtual host or nagios?

or RHN Classic support will be disabled.
[root@dximonp1 ~]# nmap 172.19.20.232 -p 161 -sU

Starting Nmap 6.47 ( http://nmap.org ) at 2020-08-12 12:10 CDT
Nmap scan report for 172.19.20.232
Host is up (0.052s latency).
PORT STATE SERVICE
161/udp open snmp

Nmap done: 1 IP address (1 host up) scanned in 0.27 seconds
[root@dximonp1 ~]# snmpwalk -v2c -c '!plut0' 172.19.20.232 1.3.6.1.2.1.1
Timeout: No Response from 172.19.20.232
[root@dximonp1 ~]#

Re: adding palalto azure cloud appliance to nagios

Posted: Wed Aug 12, 2020 4:31 pm
by cdienger
Maybe try a different community string besides '!plut0'. Can you use 'public'?

Are you sure the requests are making it to their intended destination? If so, are they taking the same route back to the XI machine? Running a tcpdump on the XI command line while you run the snmpwalk command again on another terminal window may show something useful:

Code: Select all

tcpdump -s 0 -i any -nnX port 161 or icmp
or write it to a file for easy readability in wireshark:

Code: Select all

tcpdump -s 0 -i any port 161 or icmp -w output.pcap