Back to listing

HTTP Monitor Input Plugin

Plugin Fixed issue #7 to specify SSL protocols

HTTP Monitor plugin for graylog

sivasamyk
free!

Published

07 Jun 09:22

Last Push

18 Jul 20:41

Marketplace Rating

No rating yet

Discussion

14 Comments

Your Rating

Please sign in to rate this add-on.

Comments

pkbelidha over 2 years ago

I can see all the charts as expected but for the chart HTTP status last 24hrs, I see that you have given any query so what filed have you given to display the chart ?

sivasamyk almost 4 years ago

Lefty,

Looks like some issue with SSL Handshake. Can you paste the complete exception trace from graylog.log file?

Thanks,
Siva.

leftyb almost 4 years ago

Hi,
I am doing a https request and receiving "http.monitor.status = 999" , "message Request failed :java.net.ConnectException: Received fatal alert: handshake_failure" .

Any ideas on that, I appreciate your help, thank you.
Lefty

sivasamyk almost 4 years ago

Alberto,
I assume nslookup from graylog-server to abc.acme.it is resolved properly.
Do you see any exceptions in graylog server log files? If so can you paste the complete stack trace from the log file. If no stack stack trace is seen you can start graylog server in debug mode (-d switch to graylogctl command)and get the trace?

AlbertoFro almost 4 years ago

Hi sivasamyk,
In my case I set in "URL to monitor" (e.g.) http://abc.acme.it:8080/appname/login.html.
I run nslookup to graylog server and seems to resolve my hostname/DNS/IP address.
Any suggestion or check ?
Thanks for your response
Ciao
Alberto

sivasamyk almost 4 years ago

Alberto,

You will get this error when plugin is not able to DNS resolve the IP Address of the host mentioned in the URL.

sivasamyk almost 4 years ago

Alberto
What is the value of "URL to monitor" field in the input config window? It should be a valid URL like "http://www.google.com" or "http://10.220.11.23/" or "https://mywebserver/page.html"

AlbertoFro about 4 years ago

Hi all,
I installed the plugin, but in every HTTP server I'm monitoring appears this:
Request failed :java.lang.IllegalArgumentException: hostname can't be null
Any suggestions ?
thanks,
Ciao
Alberto

sivasamyk about 4 years ago

The plugin checks for all HTTP status codes . If the website returns 301, then status will reflect this code. There are also special status codes for connection failures, timeouts and others errors ( 99x)

timukas about 4 years ago

Now version 1.0.1 works well. Thanks.
Any plans to check sites not just for 200 response, but for some 30X (redirects)?

sivasamyk about 4 years ago

There were some jar compatibility issues between the plugin and the graylog 1.2 version. I have released new version jar with fix. Download the jar from here [https://github.com/sivasamyk/graylog2-plugin-input-httpmonitor/releases/download/v1.0.1/graylog2-plugin-input-httpmonitor-1.0.1.jar] and let me know if it works. I have tested with 1.2 rc3.

timukas about 4 years ago

Yes, Startin & running are there. Here's part of my graylog-server log file:

2015-09-04 11:02:44,432 INFO : org.graylog2.bootstrap.ServerBootstrap - Graylog server up and running.
2015-09-04 11:02:44,456 INFO : org.graylog2.shared.inputs.InputStateListener - Input [GELF UDP/55c9ad9fe4b0670114a9305c] is now STARTING
2015-09-04 11:02:44,466 INFO : org.graylog2.shared.inputs.InputStateListener - Input [HTTP Monitor/55e74122e4b02901bd3687a3] is now STARTING
2015-09-04 11:02:44,499 INFO : org.graylog2.shared.inputs.InputStateListener - Input [GELF UDP/55c9ad9fe4b0670114a9305c] is now RUNNING
2015-09-04 11:02:44,532 INFO : org.graylog2.shared.inputs.InputStateListener - Input [HTTP Monitor/55e74122e4b02901bd3687a3] is now RUNNING
2015-09-04 11:02:53,983 INFO : org.apache.shiro.session.mgt.AbstractValidatingSessionManager - Enabling session validation scheduler...
2015-09-04 11:03:17,194 INFO : org.graylog2.shared.inputs.InputStateListener - Input [HTTP Monitor/55e95045e4b0823f25ce5c59] is now STARTING
2015-09-04 11:03:17,233 INFO : org.graylog2.shared.inputs.InputStateListener - Input [HTTP Monitor/55e95045e4b0823f25ce5c59] is now RUNNING
2015-09-04 11:03:32,957 INFO : org.graylog2.system.jobs.SystemJobManager - Submitted SystemJob [org.graylog2.indexer.ranges.RebuildIndexRangesJob]
2015-09-04 11:03:32,958 INFO : org.graylog2.indexer.ranges.RebuildIndexRangesJob - Re-calculating index ranges.
2015-09-04 11:03:33,041 INFO : org.graylog2.indexer.ranges.EsIndexRangeService - Calculated range of [graylog2_0] in [72ms].
2015-09-04 11:03:33,105 INFO : org.graylog2.indexer.ranges.RebuildIndexRangesJob - Done calculating index ranges for 1 indices. Took 137ms.

sivasamyk about 4 years ago

Do you see messages similar to the ones below in GL logs?

2015-09-04 16:23:53,744 INFO : org.graylog2.shared.inputs.InputStateListener - Input [HTTP Monitor/55e97841e4b0504f24c5d8a2] is now STARTING
2015-09-04 16:23:53,931 INFO : org.graylog2.shared.inputs.InputStateListener - Input [HTTP Monitor/55e97841e4b0504f24c5d8a2] is now RUNNING

timukas about 4 years ago

Morgen,

Installed plugin for rc3-snapshot version. GL logs says, that plugin is loaded:

2015-09-02 21:28:42,597 INFO : org.graylog2.bootstrap.CmdLineTool - Loaded plugins: [Anonymous Usage Statistics 1.1.1 [org.graylog.plugins.usagestatistics.UsageStatsPlugin], HttpMonitorInput 1.0.0 [org.gr
aylog2.plugin.httpmonitor.HttpMonitorInputPlugin]]

Configured simple http-mon input with default settings (just added http://www.somesite.com/), but no logs are generated.
tcpdump doesn't show any packets towards monitored site.

Ideas? Comments?

Please sign in to comment.

Back to listing