adding palalto azure cloud appliance to nagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rnjie
Posts: 157
Joined: Wed Mar 20, 2019 4:59 pm

adding palalto azure cloud appliance to nagios

Post 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' '!plut0@172.19.20.232 :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 !plut0@172.19.20.232 :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 !plut0@172.19.20.232 :161::::2:v4only
at /usr/bin/cfgmaker line 951.
WARNING: Skipping !plut0@172.19.20.232 :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 "!plut0@172.19.20.232 :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:
######################################################################
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: adding palalto azure cloud appliance to nagios

Post 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
?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rnjie
Posts: 157
Joined: Wed Mar 20, 2019 4:59 pm

Re: adding palalto azure cloud appliance to nagios

Post 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 ~]#
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: adding palalto azure cloud appliance to nagios

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.