#!/bin/bash

# (c) Copyright 2021 Micro Focus or one of its affiliates.
#
# The only warranties for products and services of Micro Focus and its affiliates
# and licensors (“Micro Focus”) are as may be set forth in the express warranty
# statements accompanying such products and services. Nothing herein should be
# construed as constituting an additional warranty. Micro Focus shall not be liable
# for technical or editorial errors or omissions contained herein. The information
# contained herein is subject to change without notice.

PYTHONPATH=$(which python3.11)

$PYTHONPATH /opt/novell/cifs/bin/novell-cifs_healthcheck.py 2> /dev/null

if [ $? -eq 1 ]
then
	echo "{\"serviceName\": \"novell-cifs\", \"status\": \"Unknown\"}"
	exit 1
fi
exit 0
