вторник, 20 мая 2014 г.

permit deploy nagios conf using nconf

/etc/sudoers
apache  ALL =(ALL) NOPASSWD:/sbin/service
#Default requiretty

/var/www/html/nconf/config/deployment.ini
;; LOCAL deployment ;;

[extract config]
type        = local
source_file = "/var/www/html/nconf/output/NagiosConfig.tgz"
target_file = "/tmp/"
action      = extract

[copy collector config]
type        = local
source_file = "/tmp/Default_collector/"
target_file = "/etc/nagios/conf.d/Default_collector/"
action      = copy

[copy global config]
type        = local
source_file = "/tmp/global/"
target_file = "/etc/nagios/conf.d/global/"
action      = copy
reload_command = "sudo /sbin/service nagios reload"

Комментариев нет:

Отправить комментарий