Task #6248
closedProvide an url for checking the Smaph app
100%
Description
In order to add a nagios functionality check on smaph app, it's needed to provide a checking url.
Could you provide that url, please?
Otherwise we'll install only the standard checks expected for the smartgears container.
Related issues
Updated by Marco Cornolti over 8 years ago
Hi! To check that the whole pipeline of SMAPH is working, we need to make a query providing a Google API key, that I'd rather not give you in public and must be kept kinda secret. Is there any way I can pass you the key securely?
Moreover, the Google API will only work if called at most 30 times a day. How often are you planning on querying it?
Updated by Pasquale Pagano over 8 years ago
Marco Cornolti wrote:
Hi! To check that the whole pipeline of SMAPH is working, we need to make a query providing a Google API key, that I'd rather not give you in public and must be kept kinda secret. Is there any way I can pass you the key securely?
The key can be stored in the infrastructure Information System. It will encrypted with the sym-key of the VRE and your application can read at runtime by querying the IS. @roberto.cirillo@isti.cnr.it can provide you the code to discover and access the resource from the IS.
Moreover, the Google API will only work if called at most 30 times a day. How often are you planning on querying it?
We can run one per hour and this should be fine according to the Google API policies.
Updated by Roberto Cirillo over 8 years ago
Hi Marco, for sharing the password you could access to our workspace:
https://services.d4science.org/group/d4science-services-gateway/workspace
create a folder and share the folder (right click on the folder and click "share") with me (Roberto Cirillo) and Andrea (Andrea Dell'Amico). After that, you should upload a text file containing the password into the shared folder.
When the file will be uploaded, right click on the shared folder, press on "getLInk" option and copy the link generated to this ticket.
In this way only me and Andrea can access and download the file.
Updated by Marco Cornolti over 8 years ago
Hi! I have uplodaded the URI of the test call to SMAPH. You might need to remove the gcube-token parameter. Link: https://goo.gl/OZ10mR
Cheers,
Marco
Updated by Roberto Cirillo over 8 years ago
- Assignee changed from Marco Cornolti to Andrea Dell'Amico
Thanks Marco. I'm going to assign this ticket to Andrea that is in charge for this activity.
Updated by Andrea Dell'Amico over 8 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 100
I've configured the check to run every two hours, to be on the safe side.
There's the standard smartgears check too, so if tomcat is not working we will receive an alert from it.
Updated by Andrea Dell'Amico over 8 years ago
without the token is failing with 401 Unauthorized
Updated by Andrea Dell'Amico over 8 years ago
From the command line it works when I add your token.
@lucio.lelii@isti.cnr.it the URL invocation fails the authorization when we add our 'guest token' to the URL invocation. Can you provide a token with the correct permissions for SMAPH?
Updated by Lucio Lelii over 8 years ago
I have created an application token for nagios with nagios-check Id in SMAPH, I will give it to you via Skype.
Updated by Andrea Dell'Amico over 8 years ago
- Status changed from In Progress to Feedback
It's working, thanks. Now we need to wait the 17:21 for the next check run from nagios.
Updated by Andrea Dell'Amico over 8 years ago
- Status changed from Feedback to Closed
The check is working.
Updated by Roberto Cirillo over 8 years ago
- Related to Task #6297: Smaph webapp: Nagios check fails added