User Tools

Site Tools


сервис_nagios

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
сервис_nagios [2022/03/03 12:48]
val [Настройка nagios на использование check_snmp]
сервис_nagios [2022/03/11 13:52] (current)
val [Настройка объектов мониторинга]
Line 26: Line 26:
  
   * [[https://​assets.nagios.com/​downloads/​nagioscore/​docs/​nagioscore/​3/​en/​dependencies.html|Host and Service Dependencies]]   * [[https://​assets.nagios.com/​downloads/​nagioscore/​docs/​nagioscore/​3/​en/​dependencies.html|Host and Service Dependencies]]
 +  * [[https://​www.zarrelli.org/​blog/​nagios-notification-escalations-made-easy/​comment-page-1/​|Nagios notification escalations made easy]]
  
 <​code>​ <​code>​
Line 128: Line 129:
         use                     ​my-templ-service-ping         use                     ​my-templ-service-ping
         host_name ​              ​switch3         host_name ​              ​switch3
 +}
 +
 +#--- For next labs ---
 +
 +define host{
 +        use             ​my-templ-host
 +        host_name ​      ​cisco-router
 +        alias           Cisco 7200
 +        address ​        ​router
 } }
 </​code>​ </​code>​
Line 133: Line 143:
 ==== Тестирование конфигурации и запуск ==== ==== Тестирование конфигурации и запуск ====
  
-  * [[http://server/nagios4/]]+  * [[http://192.168.X.10/nagios4/]]
  
 <​code>​ <​code>​
Line 213: Line 223:
         command_name check_snmp_band         command_name check_snmp_band
         command_line $USER1$/​check_snmp --rate -H $HOSTADDRESS$ -C $ARG1$ -o $ARG2$ -w $ARG3$ -c $ARG4$         command_line $USER1$/​check_snmp --rate -H $HOSTADDRESS$ -C $ARG1$ -o $ARG2$ -w $ARG3$ -c $ARG4$
-} 
- 
-define host{ 
-        use             ​my-templ-host 
-        host_name ​      ​cisco-router 
-        alias           Cisco 7200 
-        address ​        ​router 
 } }
  
Line 246: Line 249:
 </​code><​code>​ </​code><​code>​
 ... ...
 +
 +# --- int WAN bandwidth MRTG ---
 +
 define service{ define service{
         use                     ​generic-service         use                     ​generic-service
Line 252: Line 258:
         check_command check_local_mrtgtraf!/​var/​www/​html/​mrtg/​router_fa0_0.log!AVG!62500,​62500!125000,​125000!10         check_command check_local_mrtgtraf!/​var/​www/​html/​mrtg/​router_fa0_0.log!AVG!62500,​62500!125000,​125000!10
 } }
 +
 +# --- check dhcp stat ---
  
 define command { define command {
сервис_nagios.1646300919.txt.gz · Last modified: 2022/03/03 12:48 by val