Answer the question
In order to leave comments, you need to log in
How to do so. so that zabbix correctly executes the script?
Good afternoon.
You need to monitor one device using External Check.
The script that zabbix calls looks like this:
#!/bin/bash
status=`/etc/BGCashcheckServer/testserver.sh --dotest | grep Смена | sed 's/Смена открыта: //'`
if
then
echo "1"
else
echo "0"
fi
Answer the question
In order to leave comments, you need to log in
From documentation:
So it is chmod o+x /etc/BGCashcheckServer/testserver.sh
checked throughsudo -u zabbix ваш_скрипт.sh
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question