Hi guys,
I have been monitoring the HTTP service for one of the IIS server. I noticed that we never receive a notification whenever the HTTP service is not working. It looks like the HTTP service never goes down but when I check the performance graph I can see there was some issue with HTTP service.
Whenever there is a problem with HTTP service the size of the B-byte (attached Screenshot) is less than size:2600B.
Is there is a way to trigger a notification on this specific service whenever the receive byte is less than 2600B send a notification?
This is a command I am using to monitor the HTTP service.
$USER1$/check_http -H $HOSTADDRESS$ -u http://10.x.x.x/mywebservice
http service monitoring
-
- Posts: 20
- Joined: Tue Oct 01, 2019 3:47 pm
http service monitoring
You do not have the required permissions to view the files attached to this post.
-
- Posts: 858
- Joined: Wed Oct 07, 2020 12:46 pm
- Location: Yo mama
Re: http service monitoring
If it's only important that the URL return more than 2600 characters, then what you can do is use the HTTP check plugin check_http to test for raw response size using regular expressions:
Another option would be for you to search the text that you know should exist on the page when it's being served properly:
Code: Select all
/usr/local/nagios/libexec/check_http --linespan -r ".{2600}" -f follow -I [MYHOSTNAMEHERE] -u "/path/to/url" -S --sni -p 443
Code: Select all
$USER1$/check_http -H $HOSTADDRESS$ -u 'http://10.x.x.x/mywebservice' -s 'your search string'
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.