Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dumper Undefined #34

Closed
rayholtz opened this issue Feb 27, 2018 · 4 comments
Closed

Dumper Undefined #34

rayholtz opened this issue Feb 27, 2018 · 4 comments

Comments

@rayholtz
Copy link

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
Copy link
Owner

aleex42 commented Feb 27, 2018 via email

@rayholtz
Copy link
Author

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

@aleex42
Copy link
Owner

aleex42 commented Feb 28, 2018

Fixed :)

@aleex42 aleex42 closed this as completed Feb 28, 2018
@rayholtz
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants