Page 1 of 1

System alive Checker setup

Posted: Wednesday 02 September 2020 14:42
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

Re: System alive Checker setup

Posted: Wednesday 02 September 2020 21:39
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

Re: System alive Checker setup

Posted: Friday 18 September 2020 13:40
by LanWizard
Thank you Waaren,

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

Greetings from Hamburg/Germany

LanWizard

Re: System alive Checker setup

Posted: Tuesday 07 March 2023 16:20
by Geronimoo
Luckily I found this post but the documentation is wrong (it has -v) :
https://www.domoticz.com/wiki/System_Al ... ker_(Ping)

Re: System alive Checker setup

Posted: Thursday 09 March 2023 12:18
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.