I need to monitor a single page app built using AngularJS, which internally uses ui-view to dynamically construct the content depending on the application state.
In the most basic state, the application displays the welcome page – but significantly – only after AngularJS has bootstrapped and set the appropriate view. Until that happens the DOM has no relevant content, only placeholders for the elements that will eventually get replaced by ui-view.
The response returned by the Zabbix GET request contains only the placeholders and not the content I need to check for, so even though the app is working as expected, Zabbix does not see the content.
Is this possible using Zabbix?
There are various ways of dealing with this in your application, all of which involve rendering the content server-side. You’ll want to pick such a method and implement it.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.