From 9ea22f02f0da180da35d7d7def92ddfd4436a733 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 6 May 2014 10:17:22 +0200 Subject: [PATCH] Add support for nmb lookup script --- createlinks | 2 +- .../templates/etc/zabbix/zabbix_agentd.conf.d/samba.conf/10nmblookup | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf.d/samba.conf/10nmblookup diff --git a/createlinks b/createlinks index 573ab65..dd49024 100644 --- a/createlinks +++ b/createlinks @@ -7,7 +7,7 @@ foreach my $conf (qw!zabbix_agent.conf zabbix_agentd.conf zabbix_agentd.conf.d/a zabbix_agentd.conf.d/deprecated_cpunum.conf zabbix_agentd.conf.d/deprecated_memory.conf zabbix_agentd.conf.d/deprecated_netstat.conf zabbix_agentd.conf.d/deprecated_swap.conf zabbix_agentd.conf.d/extip.conf zabbix_agentd.conf.d/mail.conf zabbix_agentd.conf.d/mysql.conf - zabbix_agentd.conf.d/phpki_certs.conf!){ + zabbix_agentd.conf.d/phpki_certs.conf zabbix_agentd.conf.d/samba.conf!){ templates2events("/etc/zabbix/$conf", qw(zabbix-agent-update bootstrap-console-save)); } templates2events("/etc/sudoers", "zabbix-agent-update"); diff --git a/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf.d/samba.conf/10nmblookup b/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf.d/samba.conf/10nmblookup new file mode 100644 index 0000000..db22bee --- /dev/null +++ b/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf.d/samba.conf/10nmblookup @@ -0,0 +1,2 @@ +# Check if nmbd is available and working +UserParameter=samba.nmbd.status,/var/lib/zabbix/bin/check_nmblookup --server=127.0.0.1 --host={$smb{ServerName};}