Unknown volume path or aggregate name

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Unknown volume path or aggregate name

Post 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?

Code: Select all

/var/lib/snmp/snmpapp.conf
If so, please PM it to me.
informatica
Posts: 99
Joined: Thu Jan 28, 2021 9:55 pm

Re: Unknown volume path or aggregate name

Post by informatica »

I sent the details PM can you check and confirm
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Unknown volume path or aggregate name

Post 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
informatica
Posts: 99
Joined: Thu Jan 28, 2021 9:55 pm

Re: Unknown volume path or aggregate name

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Unknown volume path or aggregate name

Post 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
informatica
Posts: 99
Joined: Thu Jan 28, 2021 9:55 pm

Re: Unknown volume path or aggregate name

Post 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
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Unknown volume path or aggregate name

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Unknown volume path or aggregate name

Post by ssax »

You can try changing this line:

Code: Select all

$opt{'version'} = 2;
To this:

Code: Select all

$opt{'version'} = 2c;
Or since v1 works you can try this:

Code: Select all

$opt{'version'} = 1;
informatica
Posts: 99
Joined: Thu Jan 28, 2021 9:55 pm

Re: Unknown volume path or aggregate name

Post by informatica »

This we have run the command with v1, we did like work around.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Unknown volume path or aggregate name

Post by scottwilkerson »

informatica wrote:This we have run the command with v1, we did like work around.
Is everything working as expected now?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked