How to monitor application UI and Web Service

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
satishvjadhav
Posts: 16
Joined: Tue Mar 07, 2017 5:18 am

How to monitor application UI and Web Service

Post by satishvjadhav »

Hello Sir,

I need to monitor the url of the application ui and url of the web service. (Is application UI and webservice url are same thing ? )

In which I want to put warning condition if response time is greater than 15 sec and critical condition if there is no response.

How can I go ahead with check_http? if yes ... can you pls suggest me where should I use arguments in the command.

Thank you,
Satish Jadhav
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: How to monitor application UI and Web Service

Post by mcapra »

satishvjadhav wrote: How can I go ahead with check_http? if yes ... can you pls suggest me where should I use arguments in the command.
Here's the manual for the check_http plugin. I would suggest reviewing it:
https://nagios-plugins.org/doc/man/check_http.html

For example, if I wanted to check if the website http://www.example.com had the word "example" on the page somewhere:

Code: Select all

[root@xi-stable rw]# /usr/local/nagios/libexec/check_http -H www.example.com -u / -s 'example'
HTTP OK: HTTP/1.1 200 OK - 1595 bytes in 0.050 second response time |time=0.049890s;;;0.000000 size=1595B;;;0
Similarly, if I use -s to check for a string and it doesn't exist on that page, it returns critical:

Code: Select all

[root@xi-stable rw]# /usr/local/nagios/libexec/check_http -H www.example.com -u / -s 'examplezzz'
HTTP CRITICAL: HTTP/1.1 200 OK - string 'examplezzz' not found on 'http://www.example.com:80/' - 1595 bytes in 0.043 second response time |time=0.043450s;;;0.000000 size=1595B;;;0
If you wanted to check the actual GUI components and interact with them, you'd need to use something like Selenium or WebInject:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Former Nagios employee
https://www.mcapra.com/
Locked