PySVMON is a develoment project for SVMON client. It migrates bash-based client code to python.
The development is based on python 2.7.13 but runs also in Python3.0.
One has two options to install the client.
1. By root privilege.
2. In virtualenv. In such a case, the report can be only sent via --send options; we are searching for solutions
from pakiti-client.
PySVMON is a develoment project for SVMON client. It migrates bash-based client code to python. The development is based on python 2.7.13 but runs also in Python3.0.
<b> Before installation, check your installation of pakiti-client, see whether it support --svmonreport option. </b>
If unsupported, please remove it. A new version of pakiti-client will be installed with svmon client(rpm or pip).
Make sure you have installed perl-libwww-perl, perl-LWP-Protocol-https packages. <
## Description
## Installation
Note: for more detailed installation explaination please go to [installation section](https://gitlab.eudat.eu/EUDAT-TOOLS/SVMON/pysvmon/-/blob/master/docs/InstallClient.md)
Then one can use pip tools directly ( with root privileges ),
pip install svmon-python-client
<b>Update pip client to the latest version</b>
pip install --upgrade pip
Install python-dotenv:
pip install python-dotenv
---
For test, just run the command svmon, the shell will return you help information. One can also try
svmon -T (--test)
One can see an output with svmon client version. This could cause error with old pip versions.
After test, the service owner could specify the parameters of its own service via command options, and save them.
For example (currently not all service types are supported),
and save the specification with --dump options. The --with-version option should be always with --component option, otherwise it makes no sense. And in principal, the combination of these two options can be repeated as many times as the service components.
Then try
pakiti-client --svmonreport
to see the report collected by svmon client.
To send svmon report to our server, run pakiti client:
One can add it to crontab. Or alternatively, direct post to the svmon server is also supported but unrecommended, try:
svmon --send
. <b>For such option, you need to create an API token after you login in svmon.eudat.eu; and then configure it in the
client with --token yourapitoken --dump
. </b>However, you need install python requests library (http://docs.python-requests.org/en/master/user/install/#install).
In addition, to establish secure link, you will also need SSL trusted CA chain file.
<b> Note:we also enclose the trusted CA file within the client:chain_TERENA_SSL_CA_3.pem.</b>
---
## Troubleshooting
#### Request package not updated
-`/usr/lib/python2.7/site-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.24.1) or chardet (2.2.1) doesn't match a supported version!`
- For solving this you need to upgrade to the last version of requests with the command:
<pre>
pip uninstall urllib3
pip uninstall chardet
pip install requests
</pre>
- PySVMON is the python svmon client app. This client collections the versions of [different services](#available-services) installed on your host and sends them to svmon backend automatically.
## Installation
- See more [here](https://stackoverflow.com/questions/50202238/python-pip-requestsdependencywarning-urllib3-1-9-1-or-chardet-2-3-0-doe)
---
- Please go to [installation section](https://gitlab.eudat.eu/EUDAT-TOOLS/SVMON/pysvmon/-/blob/master/docs/InstallClient.md)
#### Sending report failed, please check your configuration
## Available Services
-In this case could be that your token expired, in that case you need to generate a new apiToken on [svmon.eudat.eu](svmon.eudat.eu)
-Once you have your token you just need to do this:
-Not every service is supported by svmon python client, before installing the client check the list above to see if you service is supported.
-Please note that we aim to support more services, if your service is missing and you want from us to receive support please write us at agustin.pane@kit.edu
<pre>
svmon --token yourtoken --dump
</pre>
---
### We are supporting following service types:
#### You have no token configured, please go to svmon.eudat.eu webpage to create a token and configure it
- Same as previous step
- b2safe
- gitlab
- svmon
- b2handle
- b2access
- b2share
- b2drop
----
#### ImportError: No module named dotenv
You can check the current available list also using svmon --list-service-type command
<pre>
pip install python-dotenv
</pre>
---
In case of problems please contact agustin.pane@kit.edu together with log of the error.
PySVMON is a develoment project for SVMON client. It migrates bash-based client code to python. The development is based on python 2.7.13 but also runs on python3.* version.
PySVMON is a develoment project for SVMON client. It migrates bash-based client code to python. The development is based on python 2.7.13 but runs also in Python3.0.
Before installation, check your installation of pakiti-client, see whether it support --svmonreport option.
If unsupported, please remove it. A new version of pakiti-client will be installed with svmon client(rpm or pip).
Then one can use pip tools directly (root privileges if no virtualenv),
## Description
pip install svmon-client
- PySVMON is the python svmon client app. This client collections the versions of [different services](#available-services) installed on your host and sends them to svmon backend automatically.
Update pip client to the latest version (pip 21.1.3)
## Installation
pip install --upgrade pip
- Please go to [installation section](https://gitlab.eudat.eu/EUDAT-TOOLS/SVMON/pysvmon/-/blob/master/docs/InstallClient.md)
Install python-dotenv:
## Available Services
pip install python-dotenv
- Not every service is supported by svmon python client, before installing the client check the list above to see if you service is supported.
- Please note that we aim to support more services, if your service is missing and you want from us to receive support please write us at agustin.pane@kit.edu
For test, just run the command svmon, the shell will return you help information. One can also try
### We are supporting following service types:
svmon -T (--test)
- b2safe
- gitlab
- svmon
- b2handle
- b2access
- b2share
- b2drop
One can see an output with svmon client version. This could cause error with old pip versions.
After test, the service owner could specify the parameters of its own service via command options, and save it
For example for svmon (currently not all service types are supported),
@@ -77,7 +77,43 @@ Notes: you can see which service and versions will be send to the server by usin
````
pip uninstall svmon-client
````
---
## Troubleshooting
- For troubleshooting please go to the [readme troubleshooting section](https://gitlab.eudat.eu/EUDAT-TOOLS/SVMON/pysvmon/-/blob/master/README.md#Troubleshooting)
#### Request package not updated
-`/usr/lib/python2.7/site-packages/requests/__init__.py:91: RequestsDependencyWarning:urllib3 (1.24.1) or chardet (2.2.1) doesn't match a supported version!`
-For solving this you need to upgrade to the last version of requests with the command:
<pre>
pip uninstall urllib3
pip uninstall chardet
pip install requests
</pre>
-See more [here](https://stackoverflow.com/questions/50202238/python-pip-requestsdependencywarning-urllib3-1-9-1-or-chardet-2-3-0-doe)
---
#### Sending report failed, please check your configuration
- In this case could be that your token expired, in that case you need to generate a new apiToken on [svmon.eudat.eu](svmon.eudat.eu)
- Once you have your token you just need to do this:
<pre>
svmon --token yourtoken --dump
</pre>
---
#### You have no token configured, please go to svmon.eudat.eu webpage to create a token and configure it
- Same as previous step
----
#### ImportError: No module named dotenv
<pre>
pip install python-dotenv
</pre>
---
In case of problems please contact agustin.pane@kit.edu together with log of the error.