File: functions

package info (click to toggle)
monitoring-plugins 2.2-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 9,740 kB
  • ctags: 6,699
  • sloc: ansic: 60,011; sh: 13,872; perl: 6,291; makefile: 475
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 
		);
}