I'm trying to write a custom SSH Sensor that shows how many active calls there are in my Asterisk server. This is my script:
#!/bin/bash CALLS=$(asterisk -rx 'sip show channels' | grep ulaw | wc -l) echo "0:$CALLS:OK"
Every time I run it, I get this error: Response not wellformed: "/var/prtg/scripts/activecalls.sh: line 2: asterisk: command not found 0:0:OK " (code: PE132)
Help!!
Add comment