LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

g web server monitoring

Hello all,
I am running a web site that is using the LabView G Web server to deliver various report results.  The entire site and all reports are written in LabView (7.1.1).  What I would like to know is anyone out there using any web server monitoring software for the G Web server?  I would like something that can not only notify me if the web server goes down, but could provide usage stats etc.  There is an issue in some of the reports that use Matlab code inside of the LabView, that will occasionally crash all of LabView with a memory location error.  Since all of labview crashes I cannot use a labview solution for monitoring.
 
Any suggestions or recomendations would be appreciated.
 
thanks
0 Kudos
Message 1 of 14
(4,146 Views)
Hello,
 
There is a VI called G Web Server Control which "Programmatically tests the state of the G Web Server. The VI also can load and start, or stop and unload server VIs."  I realize you mentioned you would like to do this outside of LabVIEW, but would building an executable be acceptable?  The VI noted is limited in functionality as noted, and is included with the internet toolkit.  Perhaps you can monitor the http port it uses (which you can set in Tools -> Options... Web Server: Configuration) with an outside application to get the usage and other stats you may need.
 
I hope this helps!
 
Best Regards,
 
JLS
 
PS - I  have probed internally about this and will repost if I learn any useful information on the subject.
Best,
JLS
Sixclear
Message 2 of 14
(4,129 Views)
Hello again,
 
I did a little poking around and there appear to be some http logging VIs that ship with the internet toolkit, but again this is all in LabVIEW (and I don't think they are directly exposed on the functions palette), so if you have to remain outside of LabVIEW for this then it may not even be relevant.
 
Best Regards,
 
JLS
Best,
JLS
Sixclear
Message 3 of 14
(4,125 Views)
JLS,
Thank you for the suggestions,  I will look untill these tools.  Due to other priorities etc.  and like I said, this bug crashes labview so that limits my options, but compileng the vi into and exe may work, although not sure is the crash could impact the exe, as it would still need the runtime engine wouldnt it?
 
anyway thank you, and I would love to here another ideas/suggestions
Chris
0 Kudos
Message 4 of 14
(4,117 Views)
Hello,
 
Yes the exe would still need the runtime engine, but may avoid the crash if the problem is dependent on the development environment somehow.  There are various 3rd party web server monitoring programs, but I'm not personally familiar with any so I can't make a recommendation, particularly if you want to programmatically control the monitoring.  Google will return various results searching web, server, and monitor as keywords.
 
Best Regards,
 
JLS
Best,
JLS
Sixclear
Message 5 of 14
(4,103 Views)
Thank you JLS
0 Kudos
Message 6 of 14
(4,074 Views)
Hello,
 
No problem, and if you find something which suites your application needs well, perhaps you can post a little more information about your application.  Then if someone comes along later looking for a similar 3rd party tool, they'll have at least one success story to reference here 🙂
 
Thanks again and best of luck!
 
JLS
Best,
JLS
Sixclear
Message 7 of 14
(4,062 Views)
JLS,
Actually i did find a slution, it seems are IT dept already had an underused program called Whatsup, that can be configured to monitor the servers error log, so we were able to set it to monitor for the error that is reported when labview would crash and shutdown.  Sending an email alert at each occurance.  so far is working well, and I know within a two minutes when the crash occurs.
 
thanks again for all the help
 
chris
0 Kudos
Message 8 of 14
(4,063 Views)
Hi,
 
That sounds good, except for the part about LabVIEW crashing 😉  Did anyone ever look into the root cause of that error?  It's great to have the automated notification process in place, but perhaps it's worth looking into the origin of the crash itself.  If you have more information about this, I can try to help you with that!  You can also check out the knowledgebase for articles related to LabVIEW and Matlab and any problems using them.  You noted that the issue was with "some of the reports that use Matlab code inside of the LabView" - I don't think we ever attacked that aspect of it directly, outside of the exe suggestion.  Anyway, is it possible to implement the necessary features in LabVIEW exclusively?  If you can describe the nature of the code which is not LabVIEW native, perhaps I can direct you to a pure LabVIEW implementation which avoids the problem.
 
Thanks and have a great weekend!
 
Best Regards,
 
JLS
 
 
Best,
JLS
Sixclear
Message 9 of 14
(4,053 Views)

JLS,

Your correct we didnt get to the root cause.  It is basically that whenever a zero set of data is inputed into the matlab code, matlab returns an error that labview cant handle and it causes a memory address error.  We are actually evaluating LV 8 with the system hoping that the new math interface eliminating the matlab call will fix that issue.

 

Longer term we are converting the matlab code into labview.  But the project priority list puts that pretty far out this year

 

if you have any thoughts....id be happy to hear them...

 

thanks again

Chris

0 Kudos
Message 10 of 14
(4,051 Views)