Page 2 of 2

Re: Authentication failed check_sharepoint.pl

Posted: Mon Mar 16, 2015 12:46 pm
by highness
Bump.

I'm having the same issues with the same script. I checked and I do have all the required perl modules installed.

Has anyone solved this issue yet?

Re: Authentication failed check_sharepoint.pl

Posted: Mon Mar 16, 2015 1:36 pm
by tgriep
Could you post how you have the command defined in XI and can you run it from the command list and post the output from that?
Also run the following and post back the results.

Code: Select all

curl -V

Re: Authentication failed check_sharepoint.pl

Posted: Mon Mar 16, 2015 1:56 pm
by highness
tgriep wrote:Could you post how you have the command defined in XI and can you run it from the command list and post the output from that?
Haven't defined it in XI yet, as I'm still trying to run it from the command line to verify that it works (it doesn't). Here is the output from the command line:

Code: Select all

highness@fe1(Linux) $ ./check_sharepoint.pl -H "ourcompany.sharepoint.com/en -u "OURDOMAIN\highness" -p "mysupersecr3tpassw0rd" -l default.asp -s 'Hello' -t 15 -w 5 -c 10

CRITICAL: Authentication failed for account 'highness'

Re: Authentication failed check_sharepoint.pl

Posted: Mon Mar 16, 2015 2:11 pm
by tgriep
Try running the check like this and post back any errors on the XI server and any errors on the Sharepoint server.

Code: Select all

./check_sharepoint.pl -H ourcompany.sharepoint.com -u "OURDOMAIN\highness" -p "mysupersecr3tpassw0rd" -l default.asp -s 'Hello' -v -w 5 -c 10
Also run this and post the output.

Code: Select all

curl -V

Re: Authentication failed check_sharepoint.pl

Posted: Mon Mar 16, 2015 2:28 pm
by highness
tgriep wrote:Try running the check like this and post back any errors on the XI server and any errors on the Sharepoint server.

./check_sharepoint.pl -H ourcompany.sharepoint.com -u "OURDOMAIN\highness" -p "mysupersecr3tpassw0rd" -l default.asp -s 'Hello' -v -w 5 -c 10

Code: Select all

CRITICAL: Authentication failed for account 'OURDOMAIN\highness'

***** Begin HTTP Headers *****
401***** End HTTP Headers *****
Also run this and post the output.
curl -V

Code: Select all

highness@fe1(Linux) $ curl -V
curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.16.2.3 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz

Re: Authentication failed check_sharepoint.pl

Posted: Mon Mar 16, 2015 2:40 pm
by tgriep
I checked the Exchange site that has the plugin and found the following

It may not work for Sharepoint 2013. What version of Sharepoint are you running?

One user posted it would not work with libwww-curl-perl 4.12 (kept getting 401 unauthorized). Installing 4.15 fixed it.
Run this to find out which version in installed on your system.

Code: Select all

yum list perl-WWW-Curl
You could try the check_http command instead. Try using the Website Monitoring Wizard and see if it works.

Re: Authentication failed check_sharepoint.pl

Posted: Mon Mar 16, 2015 3:01 pm
by highness
tgriep wrote:I checked the Exchange site that has the plugin and found the following

It may not work for Sharepoint 2013. What version of Sharepoint are you running?
We're running the hosted (SaaS) version. I'm assuming that it's 2013.
tgriep wrote:One user posted it would not work with libwww-curl-perl 4.12 (kept getting 401 unauthorized). Installing 4.15 fixed it.
Run this to find out which version in installed on your system.
We're running 4.09-4.el6 (looks like 4.15 has only been built for RHEL 7).
tgriep wrote:You could try the check_http command instead. Try using the Website Monitoring Wizard and see if it works.
Yeah, tried that. Couldn't get that to work with this either... <sigh>

Re: Authentication failed check_sharepoint.pl

Posted: Mon Mar 16, 2015 3:35 pm
by tgriep
Without getting any error logs from the Sharepoint server, or any details on how the server is configured, it will be hard to look at this.