Browse Source

monitoring host

master
n 4 years ago
parent
commit
c2407ce0bf
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      dump_mysql.sh
  2. 1
    1
      zfsync.sh

+ 1
- 1
dump_mysql.sh View File

@@ -2,7 +2,7 @@
2 2
 
3 3
 BACKUPDIR=/home/mysql_backup
4 4
 LOGFILE=${BACKUPDIR}/my_dump_mysql.log
5
-SENDNSCA=/usr/local/sbin/send_nsca\ -H\ 192.168.X.X\ -d\ ';;'\ -c\ /usr/local/etc/nagios/send_nsca.cfg
5
+SENDNSCA=/usr/local/sbin/send_nsca\ -H\ <nagios_host>\ -d\ ';;'\ -c\ /usr/local/etc/nagios/send_nsca.cfg
6 6
 HOSTNAME=`/bin/hostname -f | /usr/bin/cut -d '.' -f 1,2`
7 7
 backup_success=1
8 8
 

+ 1
- 1
zfsync.sh View File

@@ -11,7 +11,7 @@
11 11
 bro="small"
12 12
 pools="ftp mail web"
13 13
 
14
-SENDNSCA=/usr/local/sbin/send_nsca\ -H\ 192.168.3.3\ -d\ ';;'\ -c\ /usr/local/etc/nagios/send_nsca.cfg
14
+SENDNSCA=/usr/local/sbin/send_nsca\ -H\ <nagios_host>\ -d\ ';;'\ -c\ /usr/local/etc/nagios/send_nsca.cfg
15 15
 HOSTNAME=`/bin/hostname -f | /usr/bin/cut -d '.' -f 1,1`
16 16
 SERVICENAME=zfsync
17 17
 LOGFILE=/tmp/zfsync.log

Loading…
Cancel
Save