Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The discovery script generates bad JSON on Ubuntu 14 #5

Closed
cormacj opened this issue Mar 30, 2016 · 0 comments
Closed

The discovery script generates bad JSON on Ubuntu 14 #5

cormacj opened this issue Mar 30, 2016 · 0 comments
Assignees

Comments

@cormacj
Copy link

cormacj commented Mar 30, 2016

The discovery script generates bad JSON on Ubuntu 14:

# ./zbx_zimbra.sh discover
{
-e  "data":[

Changing the shell to /bin/bash makes it work correctly:

root@zimbra:~/zabbix-scripts/zabbix-zimbra# diff -u zbx_zimbra.sh /etc/zabbix/scripts/zbx_zimbra.sh 
--- zbx_zimbra.sh   2016-03-29 22:16:55.355327161 +0000
+++ /etc/zabbix/scripts/zbx_zimbra.sh   2016-03-30 17:59:51.107397777 +0000
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash

Thanks

@maxxer maxxer self-assigned this Mar 31, 2016
@maxxer maxxer closed this as completed in fb4bad0 Mar 31, 2016
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

No branches or pull requests

2 participants