File: functions

package info (click to toggle)
monitoring-plugins 2.2-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 9,788 kB
  • sloc: ansic: 60,015; sh: 13,872; perl: 6,291; makefile: 477
file content (14 lines) | stat: -rw-r--r-- 339 bytes parent folder | download | duplicates (2)
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 
		);
}