Hello,
I'm new on Zabbix and I want to increase my skills on it ^^
I usually use Check_mk, and I create custom bash script like that :
I try to read documentation but I am not sure to understand how I can create custom script like this.
Thank you.
I'm new on Zabbix and I want to increase my skills on it ^^
I usually use Check_mk, and I create custom bash script like that :
#!/bin/bash
# /usr/lib/check_mk_agent/local/
varstatus=$(systemctl status filebeat | grep Active | sed 's/.*(\(.*\)).*/\1/')
if [ "$varstatus" = running ]
then
status="0"
statustxt="Service is running"
else
status="2"
statustxt="check service status !"
fi
echo "$status Check_service_Filebeat - active ($varstatus) -> $statustxt"
# /usr/lib/check_mk_agent/local/
varstatus=$(systemctl status filebeat | grep Active | sed 's/.*(\(.*\)).*/\1/')
if [ "$varstatus" = running ]
then
status="0"
statustxt="Service is running"
else
status="2"
statustxt="check service status !"
fi
echo "$status Check_service_Filebeat - active ($varstatus) -> $statustxt"
Thank you.
Comment