From 7fdef8a96d02d3a53996b98b632b2138d6bd1adb Mon Sep 17 00:00:00 2001 From: Tom Indelli Date: Fri, 17 Jul 2020 13:21:19 -0400 Subject: [PATCH] * Resolve full path to poll_postgres.py script using ZenPackManager * Call script using zenoss python, since file isn't marked executable --- ZenPacks/zenoss/PostgreSQL/objects/objects.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ZenPacks/zenoss/PostgreSQL/objects/objects.xml b/ZenPacks/zenoss/PostgreSQL/objects/objects.xml index 8520cf7..9e94a43 100644 --- a/ZenPacks/zenoss/PostgreSQL/objects/objects.xml +++ b/ZenPacks/zenoss/PostgreSQL/objects/objects.xml @@ -26,7 +26,7 @@ postgresFailure 4 -poll_postgres.py '${here/manageIp}' '${here/zPostgreSQLPort}' '${here/zPostgreSQLUsername}' '${here/zPostgreSQLPassword}' '${here/zPostgreSQLUseSSL}' '${here/zPostgreSQLDefaultDB}' database +/opt/zenoss/bin/python ${here/ZenPackManager/packs/ZenPacks.zenoss.PostgreSQL/path}/poll_postgres.py '${here/manageIp}' '${here/zPostgreSQLPort}' '${here/zPostgreSQLUsername}' '${here/zPostgreSQLPassword}' '${here/zPostgreSQLUseSSL}' '${here/zPostgreSQLDefaultDB}' database 300 @@ -1992,7 +1992,7 @@ postgresFailure 4 -poll_postgres.py '${here/manageIp}' '${here/zPostgreSQLPort}' '${here/zPostgreSQLUsername}' '${here/zPostgreSQLPassword}' '${here/zPostgreSQLUseSSL}' '${here/zPostgreSQLDefaultDB}' server +/opt/zenoss/bin/python ${here/ZenPackManager/packs/ZenPacks.zenoss.PostgreSQL/path}/poll_postgres.py '${here/manageIp}' '${here/zPostgreSQLPort}' '${here/zPostgreSQLUsername}' '${here/zPostgreSQLPassword}' '${here/zPostgreSQLUseSSL}' '${here/zPostgreSQLDefaultDB}' server 300 @@ -3961,7 +3961,7 @@ postgresFailure 4 -poll_postgres.py '${here/manageIp}' '${here/zPostgreSQLPort}' '${here/zPostgreSQLUsername}' '${here/zPostgreSQLPassword}' '${here/zPostgreSQLUseSSL}' '${here/zPostgreSQLDefaultDB}' table +/opt/zenoss/bin/python ${here/ZenPackManager/packs/ZenPacks.zenoss.PostgreSQL/path}/poll_postgres.py '${here/manageIp}' '${here/zPostgreSQLPort}' '${here/zPostgreSQLUsername}' '${here/zPostgreSQLPassword}' '${here/zPostgreSQLUseSSL}' '${here/zPostgreSQLDefaultDB}' table 300