17 lines
313 B
Plaintext
17 lines
313 B
Plaintext
# functions for use by nagios plugins maintainer scripts
|
|
|
|
npconfdir=/etc/nagios-plugins/config
|
|
|
|
# we now register all n-p config files via ucf.
|
|
register_cfgs(){
|
|
# do this in a subshell so we don't screw up cwd
|
|
(
|
|
cd $templdir
|
|
for f in *cfg; do
|
|
dest=${npconfdir}/$f
|
|
ucf $f $dest
|
|
done
|
|
);
|
|
}
|
|
|