Galvy / Template-Samba4-AD

This is my personale Samba4 AD Template for Zabbix 5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Template-Samba4-AD

This is my personale Samba4 AD Template for Zabbix 5

Introduction

Until today 26/6/2021 there is no decent Zabbix Template (just my own opinion) for monitoring Samba4 AD so I am still using Nagios just for this, until today. Enjoy! This template is tested wind Zabbix Server 5, Centos 7 DC and Zabbix Agent2.

Installation

  1. install jq with yum or apt install jq

sudo apt-get install jq

  1. copy samba4_ad.conf in your zabbix-agent2.d etc folder

Es: /etc/zabbix/zabbix_agentd2.d/samba4_ad.conf

  1. add zabbix user to sudo with visudo

  2. allows 'zabbix' user to run all commands without password. zabbix ALL=NOPASSWD: ALL

  3. Allow active-check in your /etc/zabbix/zabbix_agentd2.conf and AllowKey=system.run[*]

  4. copy samba4_ad.sh in /usr/local/bin

  5. add cron tasks like:

*/15 * * * * /usr/local/bin/samba4_ad.sh doJson > /dev/null 2>&1

0 */2 * * * /usr/local/bin/samba4_ad.sh doDbCheck > /dev/null 2>&1

About

This is my personale Samba4 AD Template for Zabbix 5


Languages

Language:Shell 100.0%