Guest User

tarefa-C-nagios-checkdb

a guest
Dec 2nd, 2015
240
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Define command.cfg
  2. define command {
  3.         command_name check_mssql_backup
  4.         command_line $USER1$/check_mssql_health -server=$HOSTADDRESS$ -username=$USER6$ -password=$USER7$ --mode $ARG1$ --name $ARG2$ --warning $ARG3$ --critical $ARG4$
  5. }
  6.  
  7. # Define service check on host
  8. # Onde <DB> é o nome da Base de dados
  9. define service{
  10.         use                             service-template
  11.         host_name                       SRVDATABASE
  12.         service_description             Backup DB
  13.         check_period                    24x7
  14.         max_check_attempts              3
  15.         retry_check_interval            1
  16.         check_command                   check_mssql_backup! database-backup-age! <DB>! 216! 240!
  17. }
RAW Paste Data