aleex42 / netapp-cdot-nagios

Nagios-Checks for monitoring NetApp cDOT-Systems via NetApp Perl API
GNU General Public License v3.0
43 stars 30 forks source link

Dumper Undefined #34

Closed rayholtz closed 6 years ago

rayholtz commented 6 years ago

I ran check_cdot_clusterlinks.pl and received the following error:

user@server1:/usr/lib/nagios/plugins$ ./check_cdot_clusterlinks.pl --hostname netapp --username monitoruser --password pw Undefined subroutine &main::Dumper called at ./check_cdot_clusterlinks.pl line 117.

after a little digging and a hint from http://www.perlmonks.org/bare/?node_id=430132 I added

use Data::Dumper;

after the other use statements, and it corrected the issue:

user@server1:/usr/lib/nagios/plugins$ ./check_cdot_clusterlinks.pl --hostname netapp --username monitoruser --password pw OK: all clusterlinks up

Should the Data::Dumper be included there, or is there something wrong somewhere else in my install?

aleex42 commented 6 years ago

I think I forgot to remove the dumper After debugging ;-)

I‘ll fix that tomorrow - thanks ;-)

Am 27.02.2018 um 21:53 schrieb rayholtz notifications@github.com:

I ran check_cdot_clusterlinks.pl and received the following error:

user@server1:/usr/lib/nagios/plugins$ ./check_cdot_clusterlinks.pl --hostname netapp --username monitoruser --password pw Undefined subroutine &main::Dumper called at ./check_cdot_clusterlinks.pl line 117.

after a little digging and a hint from http://www.perlmonks.org/bare/?node_id=430132 I added

use Data::Dumper;

after the other use statements, and it corrected the issue:

user@server1:/usr/lib/nagios/plugins$ ./check_cdot_clusterlinks.pl --hostname netapp --username monitoruser --password pw OK: all clusterlinks up

Should the Data::Dumper be included there, or is there something wrong somewhere else in my install?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

rayholtz commented 6 years ago

Wow thats quick. I'll check back in a couple days for an updated file. Thanks @aleex42!

aleex42 commented 6 years ago

Fixed :)

rayholtz commented 6 years ago

I replaced the file and it works great. Thanks @aleex42 !!