Install check_shelly - shelly-tools/check_shelly GitHub Wiki
Installation
check_shelly is written in PHP, all you need is to place the script within the sites monitoring plugins directory and make it executable.
install php-curl
After successful omd installation and configuration we have to install php-curl, which is needed for the check_shelly.
sudo apt-get install php-curl
install check_shelly
Download via
sudo su -c 'curl https://raw.githubusercontent.com/shelly-tools/check_shelly/master/check_shelly >/opt/omd/sites/monitorng/local/lib/monitoring-plugins/check_shelly'
Now we change ownership and make it executable
sudo chmod +x /opt/omd/sites/monitoring/local/lib/monitoring-plugins/check_shelly
sudo chown monitoring:monitoring /opt/omd/sites/monitoring/local/lib/monitoring-plugins/check_shelly
Once it is installed we can test it (please replace the ip with an IP address of an existing Shelly):
/opt/omd/sites/monitoring/local/lib/monitoring-plugins/check_shelly -h 192.168.178.212
Then you should see some kind of reply, depending on the Shelly you tested:
OK: shelly1-1D9ABA - Type: SHSW-1 (Uptime: 0 days, 4 hours, 1 minutes and 58 seconds) is healthy.| ram=13536;;;0;50736 ramusage=26.68%;90;95;0;100 fs=89607;;;0;233681 fsusage=38.35%;90;95;0;100 power0=0;;;;