Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Monitor Genero Web applications  (Read 11428 times)
Cloud and Managed Services S.
Posts: 3


« on: October 31, 2016, 03:26:49 am »

Are there any third party/Genero monitoring solutions that can monitor a Genero based web application. Currently using a conventional monitoring software causes the monitoring session to keep licenses allocated, running out of licenses pretty quickly based on your configuration of the sensor. Anyone else with experience around this or can offer general advise?
Frank G.
Four Js
Posts: 48


« Reply #1 on: November 02, 2016, 10:10:24 am »

Hi,
 
 Do you know that GAS provides a monitoring feature. If you enter URL of the form http://host:port/gas/monitor it will display a page with information of the current running Web applications and services. Of course, that URL is only accessible from the localhost machine unless you change it in the GAS configuration to allow other IPs. Notice also that the page is actually an XML document that can then be processed easily by a program.

Is this something you could use in your case ?

Frank
Cloud and Managed Services S.
Posts: 3


« Reply #2 on: November 02, 2016, 12:15:57 pm »

Thanks Frank, yes I am aware of the monitor within Genero, but wanted to see if there was a way of accessing it or rather integrating it with other Monitoring solutions eg, PRTG or FrameFlow, so we could not only alert, but report on stats etc.

Appreciate your response.

Thanks again,
Ramu
Reuben B.
Four Js
Posts: 1119


« Reply #3 on: November 03, 2016, 09:28:52 pm »

... Currently using a conventional monitoring software causes the monitoring session to keep licenses allocated, running out of licenses pretty quickly based on your configuration of the sensor. ...

I'm curious as to what you are doing that "causes the monitoring session to keep licenses allocated?"  That doesn't sound right. 

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Cloud and Managed Services S.
Posts: 3


« Reply #4 on: November 04, 2016, 07:34:54 am »

Hello Reuben,

We have a web application available via a URL of which Genero forms a part, so I would be monitoring  "https://<url>/cefinance/wa/r/webappshtml5/<filename.xcf>" or similar pages, using say, a Web Service event monitor, that runs, say, every minute to check the page is accessible and as the page loads, it starts a session in Genero and because the monitor does not press the exit button like a user would do, it leaves the session open and next minute opens another session and each session holds down one user license for a period of time, the application gets killed very fast depending on how fast your web service monitor works.

Regards,
Ramu
Reuben B.
Four Js
Posts: 1119


« Reply #5 on: November 06, 2016, 11:01:19 pm »

Quote
We have a web application available via a URL of which Genero forms a part, so I would be monitoring  "https://<url>/cefinance/wa/r/webappshtml5/<filename.xcf>" or similar pages, using say, a Web Service event monitor, that runs, say, every minute to check the page is accessible and as the page loads, it starts a session in Genero and because the monitor does not press the exit button like a user would do, it leaves the session open and next minute opens another session and each session holds down one user license for a period of time, the application gets killed very fast depending on how fast your web service monitor works.

In that case I would consider modifying your program so that it exits nicely if a certain argument is passed e.g.

Code
  1. IF base.Application.getArgument(1) = "monitor" THEN
  2.   MENU ""
  3.      ON ACTION accept
  4.         EXIT MENU
  5.      ON IDLE 1
  6.         EXIT PROGRAM 0
  7.   END MENU
  8. END IF

and have your monitoring tool start with that argument e.g.

https://<url>/cefinance/wa/r/webappshtml5/<filename.xcf>?Arg=monitor

I would suggest putting the additional code somewhere after the initial connection to the database and just before the first UI interaction.

Reuben

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines