User Tools

Site Tools


avaya:asm:prtg

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
avaya:asm:prtg [2024/11/19 10:14] adminavaya: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 -p /var/prtg/scripts 
-  ln -s /sbin/monitoring.sh /var/prtg/scripts/monitoring.sh 
-  chown -R prtg /var/prtg 
-  chmod 755 /sbin/monitoring.sh 
  
 +  vi /sbin/monitoring.sh
 Script to execute by PRTG via ssh:\\ Script to execute by PRTG via ssh:\\
   #!/bin/sh   #!/bin/sh
Line 28: Line 21:
           if [ -z "$status" ];then           if [ -z "$status" ];then
                   echo 0:0:All SIP Entities UP                   echo 0:0:All SIP Entities UP
 +          elif [[ $status == *"PARTIALLYUP: [NovaAlert" ]];then
 +                  echo 0:0:"All SIP Entities UP | Novalert Cold Standby"
           else           else
                   down=`${smconsole} MONITOR Down`                   down=`${smconsole} MONITOR Down`
Line 42: 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 /var/prtg/scripts
 +  ln -s /sbin/monitoring.sh /var/prtg/scripts/monitoring.sh
 +  chown -R prtg /var/prtg
 +  chmod 755 /sbin/monitoring.sh
 +Setup Public Key Authentication:
 +  su - prtg
 +  ssh-keygen -t rsa
 +  vi .ssh/authorized_keys   ##Copy Public Key from PRTG Server to File
 +  
 +\\
 +Testing:
 +  su - prtg
 +  /var/prtg/scripts/monitoring.sh sipentities
  

This topic does not exist yet

You've followed a link to a topic that doesn't exist yet. If permissions allow, you may create it by clicking on Create this page.

avaya/asm/prtg.1732007682.txt.gz · Last modified: (external edit)