Skip to content

Fix call to poll_postgres.py script#27

Open
tindelli wants to merge 1 commit intozenoss:developfrom
tindelli:develop
Open

Fix call to poll_postgres.py script#27
tindelli wants to merge 1 commit intozenoss:developfrom
tindelli:develop

Conversation

@tindelli
Copy link
Copy Markdown

As is, the monitoring templates fail with an error that the command isn't found (at least on Zenoss 6.4.1), since zencommand expects scripts to be installed into /opt/zenoss/libexec. Other ZenPacks install a symlink pointing to the actual check script (see, e.g. ZenPacks.zenoss.CiscoMonitor or ZenPacks.zenoss.Memcached), but this is a quick fix that shouldn't risk breaking anything.

The script also doesn't have the execute bit set, so this calls zenoss's python binary.

  • Resolve full path to poll_postgres.py script using ZenPackManager
  • Call script using zenoss python, since file isn't marked executable

* Call script using zenoss python, since file isn't marked executable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant