Annotation of nagios/check_rrd/bin/update_nagios_wireless_client_config, Revision 1.1
1.1 ! andrew 1: #!/bin/sh
! 2: # $RedRiver$
! 3:
! 4: CFG=/etc/nagios/hosts-wireless-clients.cfg
! 5: NAGIOSOUT=`mktemp`
! 6:
! 7: cp ${CFG} ${CFG}.old
! 8:
! 9: make_wireless_client_config /var/www/wstationinfo/known_hosts.stor > ${CFG}
! 10:
! 11: nagios -v /etc/nagios/nagios.cfg > ${NAGIOSOUT}
! 12:
! 13: if [ $? -ne 0 ]; then
! 14: mail -s "Nagios configuration problem!" andrew < ${NAGIOSOUT}
! 15: cp ${CFG} ${CFG}.bad
! 16: cp ${CFG}.old ${CFG}
! 17: fi
! 18:
! 19:
! 20: rm -f ${CFG}.old ${NAGIOSOUT}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>