ISISComputingGroup / IBEX

Top level repository for IBEX stories
5 stars 2 forks source link

Dataweb: Add to NAGIOS #2169

Closed DominicOram closed 7 years ago

DominicOram commented 7 years ago

We had a couple of issues this sprint where the web dashboard died and we had to rely on someone noticing it. We should put this in NAGIOS.

FreddieAkeroyd commented 7 years ago

This is now in nagios called WEB-DASHBOARD on any ibex instrument, log into varanus.nd.rla.c.uk to take a look. It only currently checks if the server returns a page, not the content on the page. In ticket #2155 a check will be done for DAE pv's in disconnected state, hopefully the two cover everything, unless there is something more i can look for on the web pages that would help?

FreddieAkeroyd commented 7 years ago

@DominicOram if you let me know the "cannot connect" text that will be displayed I will update the test

DominicOram commented 7 years ago

The cannot connect text is the same as if you tried to point to an instrument that does not exist. E.g. http://dataweb.isis.rl.ac.uk/IbexDataweb/default.html?Instrument=bad

DominicOram commented 7 years ago

If you let me know which specific part of the text you are looking for I can put a comment in the code/on the dev wiki. Otherwise I could put in a hidden html tag so that we don't couple the displayed text with NAGIOS?

DominicOram commented 7 years ago

@GDH-ISIS If you are going to review 2155 it makes sense to do this one at the same time

John-Holt-Tessella commented 7 years ago

Anyone can review this.

Tom-Willemsen commented 7 years ago
FreddieAkeroyd commented 7 years ago

A search string is implemented, but if you do a "view source" the html source is the same whether there is an error or not as everything is done via javascript in the client. So it would need a javascript interpreter such as phantomjs to be used in the nagios check, or an alternative static version of the web page that could be checked instead

FreddieAkeroyd commented 7 years ago

Everything else done

Tom-Willemsen commented 7 years ago

2512 added to check individual instruments, this ticket can now be considered complete.