File: functions

package info (click to toggle)
monitoring-plugins 2.4.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 11,704 kB
  • sloc: ansic: 76,177; sh: 13,717; perl: 7,655; makefile: 489
file content (14 lines) | stat: -rw-r--r-- 339 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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
		( 
			for file in ${templdir}/*cfg; do
				ucf ${templdir}/$(basename $file) ${npconfdir}/$(basename $file)
			done 
		);
}