0
Under review

Linux agent password required for remote shell command

emgsecurite 8 years ago updated by Ivan Lapushenkov (Here to help) 8 years ago 3

I want to monitor asterisk specific peer on remote server.

From ssh usually the command is

"asterisk -rx "sip show peer 338" | grep Status | grep -wc OK"

it return 1 if peer ext 338 is up and return 0 if down.

When launching the command from Anturis I need to sudo -S and pass the password for user "anturis"

Any idea what is the password ?

Under review

Hi,


You can add user 'anturis' to group with permission for asterisk. In this case you don't need to use sudo and password.