I like to setup the system alive checker.
Because my domoticz system runs not as root i used the following command (in a Terminal session):
sudo setcap -v cap_net_raw+eip /home/pi/domoticz/domoticz
it gives me the following response:
/home/pi/domoticz/domoticz differs in [pie]
What does it mean ?
my domoticz executable is in /home/pi/domoticz/domoticz
Would be nice to have some help
Lanwizard
System alive Checker setup
Moderators: leecollings, remb0
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: System alive Checker setup
The setcap verify command gives you an answer to the verification request "does the domoticz binary have the e, i and p cap?" The answer is: No
So what you probably want isThe -v tells setcap to verifiy that the capabilities requested match those of the file, it will report Ok if they match or tells you which of the three sets are different. Without -v setcap will try to change the capabilities of the file to that which you request. Your subsequent testing with -v after having set them will now report Ok as the file will now have those capabilities set.
Code: Select all
sudo setcap cap_net_raw+eip /home/pi/domoticz/domoticz # add the e, i and p cap to domoticz binary
sudo setcap -v cap_net_raw+eip /home/pi/domoticz/domoticz # verifyif the setcap did what was requested
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- Posts: 5
- Joined: Monday 17 December 2018 17:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: System alive Checker setup
Thank you Waaren,
Have read your exlpanation and now everything is working as desired.
Greetings from Hamburg/Germany
LanWizard
Have read your exlpanation and now everything is working as desired.
Greetings from Hamburg/Germany
LanWizard
Re: System alive Checker setup
Luckily I found this post but the documentation is wrong (it has -v) :
https://www.domoticz.com/wiki/System_Al ... ker_(Ping)
https://www.domoticz.com/wiki/System_Al ... ker_(Ping)
- waltervl
- Posts: 5791
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: System alive Checker setup
Thanks, I updated the wiki.Geronimoo wrote: ↑Tuesday 07 March 2023 16:20 Luckily I found this post but the documentation is wrong (it has -v) :
https://www.domoticz.com/wiki/System_Al ... ker_(Ping)
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Who is online
Users browsing this forum: No registered users and 1 guest