Nostradamus
Technical User
Hello.
I supervise a bunch of services. Each of these services can respond with their status and wellbeeing if I call upon them using a webapplikation in Apache Tomcat that generates simple html files.
For instance. I browse to to bring up the status for service number 123.
The webapplikation responds with a simple html page looking like this.
<HTML>
<BODY>
RecordID=123<BR>
Status=CLEAR<BR>
Name=Name of service<BR>
IpAddr=192.168.1.22<BR>
Descr=Description<BR>
</BODY>
</HTML>
What I would like to do is automatically parse this html file. Check the status line if it's "CLEAR" or "DOWN" and from there build up two new html pages with information about the service beeing up and running or down.
In the new html pages I want to be able to include information about description (Descr), IP-address (IpAddr) and so on.
How would I go about to do this? I have no idea what is possible using javascript, but can this be done?
Any input is greatly appreciated.
Thanks in advance.
I supervise a bunch of services. Each of these services can respond with their status and wellbeeing if I call upon them using a webapplikation in Apache Tomcat that generates simple html files.
For instance. I browse to to bring up the status for service number 123.
The webapplikation responds with a simple html page looking like this.
<HTML>
<BODY>
RecordID=123<BR>
Status=CLEAR<BR>
Name=Name of service<BR>
IpAddr=192.168.1.22<BR>
Descr=Description<BR>
</BODY>
</HTML>
What I would like to do is automatically parse this html file. Check the status line if it's "CLEAR" or "DOWN" and from there build up two new html pages with information about the service beeing up and running or down.
In the new html pages I want to be able to include information about description (Descr), IP-address (IpAddr) and so on.
How would I go about to do this? I have no idea what is possible using javascript, but can this be done?
Any input is greatly appreciated.
Thanks in advance.