Monitor Vue.js and Angular Applications

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
moraza
Posts: 1
Joined: Wed Oct 09, 2019 7:30 am

Monitor Vue.js and Angular Applications

Post by moraza »

How do I monitor Vue.js and Angular applications built using modern javascript frameworks that load on client side in the browser?

Old Struts/SpringMVC/ASP.NET MVC based applications that generated the HTML on server side could be monitored by generating appropriate HTTP requests and performing regex on responses, but modern javascript application supply HTML and JS to the browser to render the controls and HTML view on the client side.

Does Nagios support this type of monitoring?

For example, If I want to make sure the all systems related to 'Logging in' are working, I would like it to login using a predefined account, verify the resulting login page has certain keywords in it, and then Log out.
swolf

Re: Monitor Vue.js and Angular Applications

Post by swolf »

It sounds to me like you just want to occasionally run/monitor your application's integration tests against the production site. Nagios XI isn't an integration testing framework, but if you wanted to tie your integration test results into our monitoring solution, you could certainly do that.

Your best bet in this scenario would be to set up your integration tests to run on a schedule outside of Nagios XI (possibly cron, possibly something within your specific stack), and depending on the capabilities of your stack, either:
- Write a script that parses the results of those tests and sends them as a passive check result to NRDP (see this document for more info)
- Use some sort of event or output from within your testing toolchain to achieve the same effect.

You could also try to set this up as an active check, but you would likely run into issues with the checks timing out. By default, Nagios XI limits check duration to 60 seconds, which makes an active check setup infeasible for most software testing tools.
Locked