Page 1 of 1

adding sharepoint weburl

Posted: Wed Sep 11, 2013 11:09 am
by jwu
I'm trying to add my sharepoint url to nagios, but I keep getting
HTTP WARNING: HTTP/1.1 401 Unauthorized

the error message I receive is
===
COMMAND: /usr/local/nagios/libexec/check_http -H 10.1.100.43 -f ok -I 10.1.100.43 -u "/SitePages/Home.aspx" -p 15916 -a "<username>:<Password>"
OUTPUT: HTTP WARNING: HTTP/1.1 401 Unauthorized
===

when I run on nagiosxi and try other combinations, this is the best I got
===
[root@cvglobal ~]# /usr/local/nagios/libexec/check_http -H 10.1.100.43:15916 -f ok -I 10.1.100.43 -u "/SitePages/Home.aspx" -a "<username>:<Password>"
HTTP WARNING: HTTP/1.1 400 Bad Request
===

the web address I'm trying to acess is cvg-sharep02:15916/SitePages/Home.aspx
it's probably a configuration issue, but not sure where the issue is

Re: adding sharepoint weburl

Posted: Wed Sep 11, 2013 11:42 am
by slansing
Are you able to run that from the command line on the XI server itself? Does it give you the same result?

Re: adding sharepoint weburl

Posted: Wed Sep 11, 2013 12:53 pm
by jwu
it gave me the same results
I did double check the login credentials, and it was fine, was able to login

Re: adding sharepoint weburl

Posted: Wed Sep 11, 2013 1:03 pm
by jwu
I ran this command, it failed on me
[root@cvglobal ~]# /usr/local/nagios/libexec/check_http -H 10.1.100.43
HTTP WARNING: HTTP/1.1 401 Unauthorized

maybe it's a networking issue...

Re: adding sharepoint weburl

Posted: Wed Sep 11, 2013 1:22 pm
by sreinhardt
Most likely this is actually due to sharepoint wanting ntlm authentication and check_http only working with basic. I would suggest looking on exchange for http checks that work with ntlm. I know there are several that should work perfectly fine with very similar arguments.

Re: adding sharepoint weburl

Posted: Wed Sep 11, 2013 3:00 pm
by jwu
I went through and added it via Service, so I'm good