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

unable to execute the script on NAGIOS #1

Open
allaboutopensource opened this issue Apr 14, 2020 · 6 comments
Open

unable to execute the script on NAGIOS #1

allaboutopensource opened this issue Apr 14, 2020 · 6 comments

Comments

@allaboutopensource
Copy link

WHEN I AM TRYING TO execute the scripts I am getting the below error :

/check_element_drives.pl -hostname 10.0.0.1 --username admin --password ab**!
malformed JSON string, neither array, object, number, string or atom, at character offset 1 (before "<!DOCTYPE HTML PUBLI...") at ./check_element_drives.pl line 60.

10.0.0.1 -> MVIP of the cluster and tried with the cluster name as well.

@aleex42
Copy link
Owner

aleex42 commented Apr 15, 2020

Can you try this after the line: "my $content = $page->decoded_content;":

use Data::Dumper;
print Dumper $content;
die;

And execute the command and send me the output? Thanks!

@allaboutopensource
Copy link
Author

its says now:
Can't locate object method "ssl_opts" via package "LWP::UserAgent" at ./check_elements_cluster_performance.pl line 43.

./check_elements_cluster_performance.pl --hostname

for the hostname I am giving the ip of the Netapp cluster do u think that can be an issue.

@aleex42
Copy link
Owner

aleex42 commented Apr 15, 2020

Ah ok. Sounds like a problem with your Perl environment.

In my case:

perl -v
This is perl 5, version 24, subversion 1 (v5.24.1) built for i686-linux-gnu-thread-multi-64int

@allaboutopensource
Copy link
Author

—hostname is wat you are providing . would the cluster IP address be enough to pull the info

@aleex42
Copy link
Owner

aleex42 commented Apr 15, 2020

Hostname (FQDN) or IP. Will work both.

But as mentioned above, you are having a SSL problem - maybe with your perl version.

@aleex42
Copy link
Owner

aleex42 commented Apr 16, 2020

Which client OS do you have? And which version of "libwww"?

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