adding sharepoint weburl

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jwu
Posts: 81
Joined: Wed Jul 24, 2013 2:54 pm

adding sharepoint weburl

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: adding sharepoint weburl

Post by slansing »

Are you able to run that from the command line on the XI server itself? Does it give you the same result?
jwu
Posts: 81
Joined: Wed Jul 24, 2013 2:54 pm

Re: adding sharepoint weburl

Post by jwu »

it gave me the same results
I did double check the login credentials, and it was fine, was able to login
jwu
Posts: 81
Joined: Wed Jul 24, 2013 2:54 pm

Re: adding sharepoint weburl

Post 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...
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: adding sharepoint weburl

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
jwu
Posts: 81
Joined: Wed Jul 24, 2013 2:54 pm

Re: adding sharepoint weburl

Post by jwu »

I went through and added it via Service, so I'm good
Locked