Page 2 of 3
Re: Unknown volume path or aggregate name
Posted: Mon Feb 08, 2021 5:15 pm
by ssax
That one looked like it timed out, what is the output of this one?
Code: Select all
perl -d:Trace /usr/local/nagios/libexec/check-netapp-ng.pl -H XXXX -C 'XXXX' -T DISKUSED -v '/vol/Atlassian_Test' -t 300
Do you have this file?
If so, please PM it to me.
Re: Unknown volume path or aggregate name
Posted: Wed Feb 17, 2021 12:35 am
by informatica
I sent the details PM can you check and confirm
Re: Unknown volume path or aggregate name
Posted: Wed Feb 17, 2021 6:13 pm
by ssax
Does this work for you? (adding
-V 2c to the check command)
Code: Select all
/usr/local/nagios/libexec/check-netapp-ng.pl -H XXXX -C XXXX -V 2c -T DISKUSED -v /vol/Atlassian_Test
That trace file has a different error output:
Can't create SNMP session to X.X.X.X
Re: Unknown volume path or aggregate name
Posted: Thu Feb 18, 2021 3:13 am
by informatica
[nagios@qy$ /usr/local/nagios/libexec/check-netapp-ng.pl -H XXXX -C XXXX -V 2c -T DISKUSED -v /vol/Atlassian_Test
WARN: Unknown volume path or aggregate name '/vol/Atlassian_Test'. Available values:
You have new mail in /var/spool/mail/root
Could you please tell what is the cause to getting output.
Can't create SNMP session to X.X.X.X
Re: Unknown volume path or aggregate name
Posted: Thu Feb 18, 2021 6:07 pm
by ssax
Generally it would be from a firewall/security device is blocking it or a wrong snmp community.
This is the part it's failing on:
Code: Select all
sub _create_session(@) {
my ($server, $comm, $version, $timeout) = @_;
my ($sess, $err) = Net::SNMP->session( -hostname => $server, -version => $version, -community => $comm, -timeout => $timeout);
if (!defined($sess)) {
print "Can't create SNMP session to $server\n";
exit(1);
}
return $sess;
}
Try changing it to this:
Code: Select all
sub _create_session(@) {
my ($server, $comm, $version, $timeout) = @_;
my ($sess, $err) = Net::SNMP->session( -hostname => $server, -version => $version, -community => $comm, -timeout => $timeout);
if (!defined($sess)) {
print "Error: $err\n";
print "Can't create SNMP session to $server\n";
exit(1);
}
return $sess;
}
Then run the command below and send the full output.
If your snmp community has special characters in it make sure you're surrounding it with single quotes
Code: Select all
/usr/local/nagios/libexec/check-netapp-ng.pl -t 30 -H XXXX -C 'XXXX' -V 2c -T DISKUSED -v /vol/Atlassian_Test
Re: Unknown volume path or aggregate name
Posted: Fri Feb 19, 2021 1:49 am
by informatica
Please find the details. we tried as you suggested but still i can see same issue. PFA.
[root@qy- ISP_NEW_DMZ]# ./check-netapp-ng.pl -H XXXX -v2 -C 'XXXX' -T DISKUSED -v /vol/Atlassian_Test
WARN: Unknown volume path or aggregate name '/vol/Atlassian_Test'. Available values:
when we use v1 instead of V2 we are getting the usage, why its showing not sure. Can you suggest what is the issue??
[root@qy-nagio]# ./check-netapp-ng.pl -H XXXX -V1 -C 'XXXXXX' -T DISKUSED -v /vol/Atlassian_Test
OK: DISKUSED /vol/Atlassian_Test 72% | /vol/Atlassian_Test=344129700KB;0;0;; /vol/Atlassian_Test:perc=72%;500;500;;100
Re: Unknown volume path or aggregate name
Posted: Fri Feb 19, 2021 6:27 pm
by ssax
I'm glad you tried that out, thank you for posting your solution! I shouldn't have trusted this from the plugin help:
-V <1|2c> SNMP version (default 1), some checks run only 2c
Re: Unknown volume path or aggregate name
Posted: Fri Feb 19, 2021 6:40 pm
by ssax
You can try changing this line:
To this:
Or since v1 works you can try this:
Re: Unknown volume path or aggregate name
Posted: Wed Feb 24, 2021 5:30 am
by informatica
This we have run the command with v1, we did like work around.
Re: Unknown volume path or aggregate name
Posted: Wed Feb 24, 2021 10:43 am
by scottwilkerson
informatica wrote:This we have run the command with v1, we did like work around.
Is everything working as expected now?