File tree 1 file changed +2
-2
lines changed
freeipa/src/main/resources/freeipa-salt/salt/monitoring/scripts
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 5
5
import shutil
6
6
import sys
7
7
8
- MAIN_PATCHED_SCRIPT = "/usr/local/lib/python3.6 /site-packages/checkipaconsistency/main.py"
8
+ MAIN_PATCHED_SCRIPT = "/usr/local/lib/python" + str ( sys . version_info . major ) + "." + str ( sys . version_info . minor ) + " /site-packages/checkipaconsistency/main.py"
9
9
CIPA_METRICS_PATH = "/var/lib/node_exporter/files/cipa.prom"
10
10
CIPA_CONFIG_PATH = "/root/.config/checkipaconsistency"
11
11
CIPA_BIN_PATH = "/usr/local/bin/cipa"
@@ -27,7 +27,7 @@ def check_content(fname):
27
27
def main ():
28
28
global MAIN_PATCHED_SCRIPT , CIPA_METRICS_PATH , CIPA_CONFIG_PATH , CIPA_BIN_PATH
29
29
if not os .path .exists (MAIN_PATCHED_SCRIPT ) or not check_content (MAIN_PATCHED_SCRIPT ):
30
- print ("No cipa tool installed or OpenMetrics format output is not supported." )
30
+ print ("No cipa tool installed or OpenMetrics format output is not supported. Package location path: " + MAIN_PATCHED_SCRIPT )
31
31
sys .exit (0 )
32
32
if not os .path .exists (CIPA_BIN_PATH ) or not os .path .exists (CIPA_CONFIG_PATH ):
33
33
print ("[SKIP] cipa tool is required (with root config)." )
You can’t perform that action at this time.
0 commit comments