System alive Checker setup

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
LanWizard
Posts: 5
Joined: Monday 17 December 2018 17:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

System alive Checker setup

Post by LanWizard »

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
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: System alive Checker setup

Post by waaren »

LanWizard wrote: Wednesday 02 September 2020 14:42 /home/pi/domoticz/domoticz differs in [pie]
What does it mean ?
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
The -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.
So what you probably want is

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
LanWizard
Posts: 5
Joined: Monday 17 December 2018 17:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: System alive Checker setup

Post by LanWizard »

Thank you Waaren,

Have read your exlpanation and now everything is working as desired.

Greetings from Hamburg/Germany

LanWizard
Geronimoo
Posts: 9
Joined: Monday 09 July 2018 20:57
Target OS: -
Domoticz version:
Contact:

Re: System alive Checker setup

Post by Geronimoo »

Luckily I found this post but the documentation is wrong (it has -v) :
https://www.domoticz.com/wiki/System_Al ... ker_(Ping)
User avatar
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

Post by waltervl »

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)
Thanks, I updated the wiki.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest