check_dd.pl error

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

check_dd.pl error

Postby lcontreras » Fri Jan 04, 2019 11:13 am

Hi guys,

I really need a big help on this, my environment:

Nagios 4.2.4
CentOS Linux release 7.6.1810 (Core)

I'm trying to monitor a EMC Data Domain using check_dd.pl plugin, and I get the following error: UNKNOWN : Plugin Timed Out

I made some testing from terminal, and I get these:

[root@ensnagios01-intra-temporal]# /bin/perl ./check_datadomain.pl -H 10.200.8.21 -v DISKUSED -C NAGIOS
CRITICAL:No response from remote host "10.200.8.21" for .1.3.6.1.4.1.19746.1.3.2.1.1 with snmp version 1
[root@ensnagios01-intra-temporal]# /bin/perl ./check_datadomain.pl -H 10.200.8.21 -v DISKUSED -C NAGIOS -P 2
CRITICAL:No response from remote host "10.200.8.21" for .1.3.6.1.4.1.19746.1.3.2.1.1 with snmp version 2
[root@ensnagios01-intra-temporal]# /bin/perl ./check_datadomain.pl -H 10.200.8.21 -v DISKUSED -C NAGIOS -P 3

Any idea on how solving this situation?
Attachments
Error-Check-Nagios.PNG
lcontreras
 
Posts: 48
Joined: Thu Sep 13, 2012 7:15 pm

Re: check_dd.pl error

Postby mcapra » Fri Jan 04, 2019 12:24 pm

I am going to assume you are using this copy of the check_dd.pl plugin:
https://exchange.nagios.org/directory/P ... in/details

The error you are seeing is a general SNMP connection failure. It is not specific to this plugin -- many Perl based plugins use the Net::SNMP module.

A good first step would be to double-check that the firewall rules on 10.200.8.21 are allowing inbound connections on port 161. If you have nmap on your Nagios Core machine, this can tell you whether or not your Nagios Core machine can reach port 161 on the remote host:
Code: Select all
nmap 10.200.8.21 -p 161 -sU


You want to see "open" for the state. Not "filtered" (unless the Nagios Core machine's address is allowed explicitly/implicitly) or "closed".
Former Nagios employee
http://www.mcapra.com/
User avatar
mcapra
 
Posts: 3561
Joined: Thu May 05, 2016 3:54 pm

Re: check_dd.pl error

Postby lcontreras » Fri Jan 04, 2019 12:52 pm

Hi mcapra,

Check details below:


cpan[2]> install Term::ReadLine::Perl
Term::ReadLine::Perl is up to date (1.0303).

cpan[3]> install Net::SNMP
Net::SNMP is up to date (v6.0.1).

]# nmap 10.200.8.21 -p 161 -sU

Starting Nmap 6.40 ( http://nmap.org ) at 2019-01-04 13:48 -04
Nmap scan report for 10.200.8.21
Host is up (0.00032s latency).
PORT STATE SERVICE
161/udp open snmp

Nmap done: 1 IP address (1 host up) scanned in 0.13 seconds
lcontreras
 
Posts: 48
Joined: Thu Sep 13, 2012 7:15 pm

Re: check_dd.pl error

Postby tgriep » Fri Jan 04, 2019 1:15 pm

Another cause for that error is that the SNMP Community string is not set correctly.
Can you verify that the Community string is set to NAGIOS?

Is it a lower case nagios for the community string and not upper case? If so change it to lower case and test it again.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
 
Posts: 8094
Joined: Thu Oct 30, 2014 9:02 am

Re: check_dd.pl error

Postby lcontreras » Fri Jan 04, 2019 5:12 pm

To make this case very weird, I have a Nagios same version on Ubuntu Server 14.04 and the check works without any problem, important note: I didn't made that deployment of that Nagios on Ubuntu. So, in that path, I confirm that the snmp string is NAGIOS uppercase.
lcontreras
 
Posts: 48
Joined: Thu Sep 13, 2012 7:15 pm

Re: check_dd.pl error

Postby scottwilkerson » Fri Jan 04, 2019 5:42 pm

I would try running the following just to make sure you can make the SNMP requests work to that IP period

Code: Select all
snmpwalk -Os -c NAGIOS -v 2c 10.200.8.21 iso.3.6.1.2.1.1.1
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 15076
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: check_dd.pl error

Postby lcontreras » Mon Jan 07, 2019 8:23 am

I'm still getting :

[root@ensnagios01-intra-edenorte-com-do ~]# snmpwalk -Os -c NAGIOS -v 2c 10.200.8.21 iso.3.6.1.2.1.1.1
Timeout: No Response from 10.200.8.21
[root@ensnagios01-intra-edenorte-com-do ~]#
lcontreras
 
Posts: 48
Joined: Thu Sep 13, 2012 7:15 pm

Re: check_dd.pl error

Postby scottwilkerson » Mon Jan 07, 2019 8:37 am

lcontreras wrote:I'm still getting :

[root@ensnagios01-intra-edenorte-com-do ~]# snmpwalk -Os -c NAGIOS -v 2c 10.200.8.21 iso.3.6.1.2.1.1.1
Timeout: No Response from 10.200.8.21
[root@ensnagios01-intra-edenorte-com-do ~]#


Ok, so this proves that it is not the plugin that is the problem. The problem is likely that the SNMP UDP packets are being dropped somewhere on the network
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 15076
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: check_dd.pl error

Postby lcontreras » Mon Jan 07, 2019 9:07 am

Thanks Scott, I will check with security team what's going on with it.

Let's close this ticket at the end of the week, so in that I could comment what happened at the end.
lcontreras
 
Posts: 48
Joined: Thu Sep 13, 2012 7:15 pm

Re: check_dd.pl error

Postby scottwilkerson » Mon Jan 07, 2019 9:24 am

lcontreras wrote:Thanks Scott, I will check with security team what's going on with it.

Let's close this ticket at the end of the week, so in that I could comment what happened at the end.


Sounds good
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 15076
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Next

Return to Nagios Core

Who is online

Users browsing this forum: biboubier, llc and 35 guests