Search found 9 matches

by northwood128
Sat Sep 19, 2015 4:11 pm
Forum: Open Source Nagios Projects
Topic: [SOLVED] check_http failing to compile regex
Replies: 20
Views: 12013

Re: [SOLVED] check_http failing to compile regex

Updating the plugin worked! Sorry for the delay!
by northwood128
Thu Jul 16, 2015 3:06 pm
Forum: Open Source Nagios Projects
Topic: [SOLVED] check_http failing to compile regex
Replies: 20
Views: 12013

Re: check_http failing to compile regex

thanks guys! I have an outdated version. I'll evaluate the compatibility of the new plugin with our monitoring server and release a new rpm that includes the new version of the plugin.

$ ./check_http --version
check_http v2.0.3.2.g472e (nagios-plugins 2.0.3)
by northwood128
Thu Jul 16, 2015 2:28 pm
Forum: Open Source Nagios Projects
Topic: [SOLVED] check_http failing to compile regex
Replies: 20
Views: 12013

Re: check_http failing to compile regex

That's just the path our our Nagios installation and my personal workplace. It haven't been messing up with the check.

Code: Select all

$ ../nagios-plugins/check_http --version
check_http v1.4.15 (nagios-plugins 1.4.15)
by northwood128
Wed Jul 15, 2015 4:45 pm
Forum: Open Source Nagios Projects
Topic: [SOLVED] check_http failing to compile regex
Replies: 20
Views: 12013

Re: check_http failing to compile regex

I've tried all these options. None of them seem to work. I either get a critical for no matches when the service certainly responds [], or the same compilation error. :cry:
by northwood128
Tue Jul 07, 2015 2:10 pm
Forum: Open Source Nagios Projects
Topic: [SOLVED] check_http failing to compile regex
Replies: 20
Views: 12013

Re: check_http failing to compile regex

verbose output $ /usr/local/nagios/production/libexec/check_http -H HOSTNAME -w 3 -c 5 -t 4 -S -u '/api/assort/failed' -r "\[\]" -v GET /api/assort/failed HTTP/1.1 User-Agent: check_http/v1.4.15 (nagios-plugins 1.4.15) Connection: close Host: HOSTNAME https://HOSTNAME:443/api/assort/failed...
by northwood128
Tue Jul 07, 2015 1:29 pm
Forum: Open Source Nagios Projects
Topic: [SOLVED] check_http failing to compile regex
Replies: 20
Views: 12013

Re: check_http failing to compile regex

Hi abrist, ssax!! Thanks for the suggestion. I've tried that, define command{ command_name check_https_uri_regex command_line $USER1$/check_http -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -t 4 -u $ARG3$ -r '$ARG4$' --ssl } define service { use generic-service host_name $HOSTNAME$ servicegroups SomeService...
by northwood128
Tue Jul 07, 2015 11:48 am
Forum: Open Source Nagios Projects
Topic: [SOLVED] check_http failing to compile regex
Replies: 20
Views: 12013

Re: check_http failing to compile regex

That doesn't work either joison :(

Code: Select all

HTTP CRITICAL: HTTP/1.1 200 OK - pattern not found - 258 bytes in 0.029 second response time 
The response of the service is []

Code: Select all

$ curl -k https://hostname/url/to/service
[]
by northwood128
Mon Jul 06, 2015 1:55 pm
Forum: Open Source Nagios Projects
Topic: [SOLVED] check_http failing to compile regex
Replies: 20
Views: 12013

Re: check_http failing to compile regex

Thanks guys!!

Actually, I've tried what lmiltchev suggested but it didn't work. I'll try the way joison proposed and I'll let you know. Thanks again for your help!
by northwood128
Thu Jul 02, 2015 5:20 pm
Forum: Open Source Nagios Projects
Topic: [SOLVED] check_http failing to compile regex
Replies: 20
Views: 12013

[SOLVED] check_http failing to compile regex

Hi everyone! I'm trying to monitor a service. This service response should always be an empty JSON list like this: [] When I run it like this, it works: ~/development/nagios-plugins/check_http -H HOSTADDRESS -w 3 -c 5 -t 4 -u '/url/to/service -r '\[\]' --ssl HTTP OK: HTTP/1.1 200 OK - 258 bytes in 0...