File: functions

package info (click to toggle)
nagios-plugins 1.4.15-3squeeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 10,184 kB
  • ctags: 6,100
  • sloc: ansic: 55,405; perl: 13,875; sh: 13,136; makefile: 496; python: 444; awk: 46
file content (16 lines) | stat: -rw-r--r-- 313 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 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 
		);
}