Project

General

Profile

Actions

Task #6248

closed

Provide an url for checking the Smaph app

Added by Roberto Cirillo over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Category:
System Application
Target version:
Start date:
Dec 16, 2016
Due date:
% Done:

100%

Estimated time:
Infrastructure:
Production

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

Related to D4Science Infrastructure - Task #6297: Smaph webapp: Nagios check failsClosedMarco CornoltiJan 04, 2017

Actions
Actions #1

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?

Actions #2

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.

Actions #3

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.

Actions #4

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

Actions #5

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.

Actions #6

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.

Actions #7

Updated by Andrea Dell'Amico over 8 years ago

without the token is failing with 401 Unauthorized

Actions #8

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?

Actions #9

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.

Actions #10

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.

Actions #11

Updated by Andrea Dell'Amico over 8 years ago

  • Status changed from Feedback to Closed

The check is working.

Actions #12

Updated by Roberto Cirillo over 8 years ago

  • Related to Task #6297: Smaph webapp: Nagios check fails added
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 8.91 MB)