[BACK]Return to update_nagios_wireless_client_config CVS log [TXT][DIR] Up to [local] / nagios / check_rrd / bin

Annotation of nagios/check_rrd/bin/update_nagios_wireless_client_config, Revision 1.2

1.1       andrew      1: #!/bin/sh
1.2     ! andrew      2: # $RedRiver: update_nagios_wireless_client_config,v 1.1 2007/01/12 23:41:19 andrew Exp $
1.1       andrew      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
1.2     ! andrew     14:        mail -s "Nagios configuration problem!" root < ${NAGIOSOUT}
1.1       andrew     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>