User Tools

Site Tools


avaya:sbce:monitoring

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:sbce:monitoring [2026/04/13 06:11] reto.buergiavaya:sbce:monitoring [2026/04/14 12:12] (current) – [**Testing:**] reto.buergi
Line 49: Line 49:
                 echo -e "<prtg>"                 echo -e "<prtg>"
                 echo "<error>2</error>"                 echo "<error>2</error>"
-                echo -"<text>"+                echo -"<text>\n"
                 psql -d sbcedb -c "select trap_severity_level,alarm_notes,alarm_timestampsecs from alarms;"|tail -n +3|head -n -2|sed -re 's/.(.*).*\|.(.*).\|.*([0-9]{10}).*/echo "Serverity: \1 Alarmtext: \2 Date: `date -d @\3`"/e'                 psql -d sbcedb -c "select trap_severity_level,alarm_notes,alarm_timestampsecs from alarms;"|tail -n +3|head -n -2|sed -re 's/.(.*).*\|.(.*).\|.*([0-9]{10}).*/echo "Serverity: \1 Alarmtext: \2 Date: `date -d @\3`"/e'
                 echo -e "</text>\n</prtg>"                 echo -e "</text>\n</prtg>"
Line 80: Line 80:
   chown -R prtg.prtg /sbin/check_sbc.sh   chown -R prtg.prtg /sbin/check_sbc.sh
   chmod 755 /sbin/check_sbc.sh   chmod 755 /sbin/check_sbc.sh
 +-----------------------------------------------------------\\
 +======Testing======
 +
 +  su - prtg
 +  /var/prtg/scriptsxml/check_sbc.sh alarmstatus
 +  /var/prtg/scriptsxml/check_sbc.sh sipstatus
 +  /var/prtg/scriptsxml/check_sbc.sh hastatus
 +-----------------------------------------------------------
 +

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/sbce/monitoring.1776053517.txt.gz · Last modified: by reto.buergi