User Tools

Site Tools


сервис_zabbix

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
сервис_zabbix [2026/04/16 08:06]
val [zabbix Services sla best practice именования tag]
сервис_zabbix [2026/04/17 15:16] (current)
val [Настройка уведомлений о событиях]
Line 269: Line 269:
   Report problems to Zabbix administrators->​Enable   Report problems to Zabbix administrators->​Enable
   ...   ...
 +</​code>​
 +
 +=== Настройка уведомлений о срабатывании сервиса ===
 +<​code>​
 +Configuration/​Alerts->​Actions->​Service actions
 +  Name: Mail Action
 +  Conditions: Service equals Corp Mail
 +  Operations: Send message to user groups: Zabbix administrators via all media
 +  Recovery operations: Notify all involved
 </​code>​ </​code>​
  
Line 282: Line 291:
  
   * [[Сервис OpenFire]] Настройка DNS, Установка,​ Spark   * [[Сервис OpenFire]] Настройка DNS, Установка,​ Spark
-  * [[Сервис OpenFire#​bash xmpp]]+
  
 <​code>​ <​code>​
Line 290: Line 299:
  
 # cat /​var/​lib/​zabbix/​.sendxmpprc # cat /​var/​lib/​zabbix/​.sendxmpprc
-admin@corpX.un Pa$$w0rd+</​code>​
  
 +  * [[Сервис OpenFire#​bash xmpp]]
 +
 +<​code>​
 # chmod 600 /​var/​lib/​zabbix/​.sendxmpprc # chmod 600 /​var/​lib/​zabbix/​.sendxmpprc
  
Line 301: Line 313:
  
 logger -t zabbix_xmpp -p local0.info "$1, $2, $3" logger -t zabbix_xmpp -p local0.info "$1, $2, $3"
 +
 +#echo "​$(date) $1, $2, $3" >>/​tmp/​zabbix_xmpp.txt
  
 to=$1 to=$1
Line 306: Line 320:
 body=$3 body=$3
  
-cat <<EOF | sendxmpp -f /​var/​lib/​zabbix/​.sendxmpprc ​-s "$subject" ​"$to"+cat <<EOF | sendxmpp -f /​var/​lib/​zabbix/​.sendxmpprc "$to" 
 +$subject 
 $body $body
 EOF EOF
 </​code><​code>​ </​code><​code>​
-Administration->​Media types->​Create media type+Administration/Alerts->Media types->​Create media type
   Name: XMPP   Name: XMPP
   Type: Script   Type: Script
Line 319: Line 335:
     {ALERT.MESSAGE}     {ALERT.MESSAGE}
   Message teplates   Message teplates
-    ​Problem +    ​Service 
-    ​Problem ​recovery +    ​Service ​recovery 
-    ​Problem ​update+    ​Service ​update
 </​code>​ </​code>​
 <​code>​ <​code>​
-Administration->​Users->​student->Media+Administration->​Users->​Admin->Media
   Type: XMPP   Type: XMPP
-  Send to: student@corpX.un+  Send to: user1@corpX.un
 </​code>​ </​code>​
  
сервис_zabbix.1776316017.txt.gz · Last modified: 2026/04/16 08:06 by val