Jira/PJSM-247

http://issues.opennms.org/browse/PJSM-247
test with -z "${SUCCESS}" for empty string