HTTP Service Check
-
NETXMS Team and Users Group,
I am using the following HTTP Service Check format listed below. My question is can NETXMS view the keepalive.html page inside the "/folder/"?
ServiceCheck.HTTP(xxx.xxx.xxx.xxx,80,/folder/keepalive.html,www.test.com,"^HTTP/1\.[01] 200.*")
I keep getting a number "3" response or "bad server's response".
----------------------------------------------------------------------------------------------------Other HTTP Service Checks I have setup on this same server are using the format below and they are working just fine:
ServiceCheck.HTTP(xxx.xxx.xxx.xxx,80,/index.html,www.test.com,"^HTTP/1\.[01] 200.*")
I wonder if the extra "/folder/" makes a difference.
Thanks,
Mauricio
-
Hello.
Yes, it should work perfectly well.
Actually, I've verified your check and it works fine:
alk@wall:~$ /tmp/nx/bin/nxget -w 100 localhost 'ServiceCheck.HTTP(127.0.0.1,80,/folder/keepalive.html,www.test.com,"^HTTP/1\.[01] 200.*")' 3 alk@wall:~$ mkdir /var/www/default/folder/ alk@wall:~$ touch /var/www/default/folder/keepalive.html alk@wall:~$ /tmp/nx/bin/nxget -w 100 localhost 'ServiceCheck.HTTP(127.0.0.1,80,/folder/keepalive.html,www.test.com,"^HTTP/1\.[01] 200.*")' 0Please check that URL is available, also check with some tool like wget or curl.
You can also send me a private message with problematic URL (if it's publicly available) and I'll check it myself.
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login