IBM / spectrum-protect-sppmon

Monitoring and long-term reporting for IBM Spectrum Protect Plus. Provides a data bridge from SPP to InfluxDB and provides visualization dashboards via Grafana.
Apache License 2.0
13 stars 8 forks source link

python: can't open file '/usr/src/app/python': [Errno 2] No such file or directory #154

Open mariemhedfi opened 6 months ago

mariemhedfi commented 6 months ago

*I tried to execute sppmon using this command: docker run --rm -v /home/${USER}/spectrum-protect-sppmon/config_files/YOUR_SPP_SERVER_NAME.conf:/usr/src/app/YOUR_SPP_SERVER_NAME.conf:ro,Z -v /home/${USER}/sppmonLogs:/root/sppmonLogs:Z sppmon python sppmon.py --cfg=YOUR_SPP_SERVER_NAME.conf --test. However, even after replacing it with my spp file, I still encountered the '[can't open fil](python: can't open file '/usr/src/app/python': [Errno 2] No such file or directory)e' error. What should I do?"

NielsKorschinsky commented 5 months ago

Hi @mariemhedfi ,

It seems like your python install is missing or corrupted. Can you please make sure to follow the steps in the wiki, which creates the container, including python:

  1. https://github.com/IBM/spectrum-protect-sppmon/wiki/SPPmon-as-a-Container#21-setup-the-sppmon-container
NielsKorschinsky commented 5 months ago

Also, you can try to bash into the container to localize the python install / verify it exists: docker exec -it <container name> /bin/bash

mariemhedfi commented 5 months ago

Hello, Thanks for your reply. my prblem is solved and i have another question Is it possible to modify the script so that it displays the names of the VMs in Grafana, along with their status? This would involve showing the VM name and each status state. If the status is 'failed,' could it display the details? Best reagards,, Le mer., janv. 3, 2024 à 18:19, Niels Korschinsky @.> a écrit: Also, you can try to bash into the container to localize the python install / verify it exists: docker exec -it /bin/bash — Reply to this email directly, view it on GitHub (https://github.com/IBM/spectrum-protect-sppmon/issues/154#issuecomment-1875708578), or unsubscribe (https://github.com/notifications/unsubscribe-auth/BE5ERKV6BIPEKKYJRXYJ3M3YMWHI3AVCNFSM6AAAAABBCL62GSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZVG4YDQNJXHA). You are receiving this because you were mentioned.Message ID: @.>