avaya:asm:prtg
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| avaya:asm:prtg [2024/11/01 13:01] – admin | avaya:asm:prtg [2026/06/10 06:51] (current) – reto.buergi | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== PRTG Check Script ====== | ====== PRTG Check Script ====== | ||
| - | Create prtg Admin User: | ||
| - | custAccounts add prtg | ||
| - | | ||
| - | Script needds to be copied to /sbin Directory. Create PRTG Directory and symbolik Link to script File. Change permissions.\\ | ||
| - | mkdir / | ||
| - | ln -s / | ||
| - | chown -R prtg / | ||
| - | chmod 755 / | ||
| + | vi / | ||
| + | Script to execute by PRTG via ssh:\\ | ||
| #!/bin/sh | #!/bin/sh | ||
| smconsole=" | smconsole=" | ||
| Line 27: | Line 21: | ||
| if [ -z " | if [ -z " | ||
| echo 0:0:All SIP Entities UP | echo 0:0:All SIP Entities UP | ||
| + | elif [[ $status == *" | ||
| + | echo 0: | ||
| else | else | ||
| down=`${smconsole} MONITOR Down` | down=`${smconsole} MONITOR Down` | ||
| Line 41: | Line 37: | ||
| echo "wrong or missing argument!" | echo "wrong or missing argument!" | ||
| fi | fi | ||
| + | \\ | ||
| + | Create prtg Admin User: | ||
| + | custAccounts add prtg | ||
| + | | ||
| + | Script needds to be copied to /sbin Directory. Create PRTG Directory and symbolik Link to script File. Change permissions.\\ | ||
| + | mkdir -p / | ||
| + | ln -s / | ||
| + | chown -R prtg /var/prtg | ||
| + | chmod 755 / | ||
| + | Setup Public Key Authentication: | ||
| + | su - prtg | ||
| + | ssh-keygen -t rsa | ||
| + | vi .ssh/ | ||
| + | | ||
| + | \\ | ||
| + | Testing: | ||
| + | su - prtg | ||
| + | / | ||
avaya/asm/prtg.1730462483.txt.gz · Last modified: (external edit)
