Authentication failed check_sharepoint.pl

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
highness
Posts: 192
Joined: Thu May 01, 2014 4:25 pm

Re: Authentication failed check_sharepoint.pl

Post 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?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Authentication failed check_sharepoint.pl

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
highness
Posts: 192
Joined: Thu May 01, 2014 4:25 pm

Re: Authentication failed check_sharepoint.pl

Post 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'
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Authentication failed check_sharepoint.pl

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
highness
Posts: 192
Joined: Thu May 01, 2014 4:25 pm

Re: Authentication failed check_sharepoint.pl

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Authentication failed check_sharepoint.pl

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
highness
Posts: 192
Joined: Thu May 01, 2014 4:25 pm

Re: Authentication failed check_sharepoint.pl

Post 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>
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Authentication failed check_sharepoint.pl

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked