ServiceCheck.HTTP
-
Hi,
I read through the entire forum, but did not find anything to my problem, so I came here.
I tried to configure ServiceCheck.HTTP, but all the time I'm getting status 3 - bad server's response.
Here is my check:
ServiceCheck.HTTP(192.168.0.150,80,/index.html,www.domain.lv,"^HTTP/1\.[01] 200 .*")
Actually I can't successfully check any web, maybe I don't realy know how.
Subagent is loaded successfully and other service checks are working.
Where is my configuration mistake?Thanks in advance,
Nikk -
I suggest you to switch to new "netsvc" subagent. Right now it's quite basic, but usually works better than old portcheck.
netsvc provide single DCI: Service.Check(URL, regexp)
If second parameter is omitted, default "^HTTP/1.[01] 200 .*" will be used.
Some samples:
Service.Check(https://netxms.org/)
Service.Check(https://netxms.org/, text)
Service.Check(http://user:[email protected]/)
Service.Check(ftp://user:[email protected]/file, text)
Service.Check(sftp://user:[email protected]/another.file, text)Check http://curl.haxx.se/docs/manpage.html#URL for details
Some protocol can be disabled in your particular build, to list them start agent with debug level 3 or higher and look for following lines:[12-Dec-2013 14:17:18.578] [DEBUG] cURL version: libcurl/7.30.0 SecureTransport zlib/1.2.5 [12-Dec-2013 14:17:18.578] [DEBUG] Supported protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp [12-Dec-2013 14:17:18.578] [INFO ] Subagent "netsvc.nsm" loaded successfully -
-
-
Hi!
Seems that both Windows and Debian packages was built with netsvc subagent omitted. I'll build both versions a bit later and post a download link.
Best regards,
Victor -
-
netsvc subagent need libcurl, and so it will only built if libcurl development package is installed. Try to install libcurl-devel package and run configure and make again.
Best regards,
Victor -
-
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