From 5483d45119b83d437b82c0160235a70253398b58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Porembi=C5=84ski?= Date: Sat, 22 Nov 2014 22:58:06 +0100 Subject: [PATCH] Add monitoring for NSCD --- README.md | 18 +- templates/Template App Nscd.xml | 834 ++++++++++++++++++++++++++++++++ zabbix_agentd.conf.d/nscd.conf | 5 + 3 files changed, 854 insertions(+), 3 deletions(-) create mode 100644 templates/Template App Nscd.xml create mode 100644 zabbix_agentd.conf.d/nscd.conf diff --git a/README.md b/README.md index 13fc5b2..e6f09ba 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ Zabbix ====== -Script and templates for Zabbix 2.2.x. +Script and templates for Zabbix 2.2.x. and 2.4.x - In /bin you will find Bash/Perl/PHP scripts used by some User Parameters (need to be installed on agent) - In Templates there are XML files ready to import using Zabbix GUI - In zabbix_agentd.conf.d there are custom User Parameters (need to be installed on agent) -Please let us know if you have any questions or concerns. +Templates was tested on Red Hat 5.x, 6.x and CentOS 5.x, 6.x. Please let us know if you have any questions or concerns. The Camels Team http://thecamels.org @@ -15,6 +15,16 @@ Template App APC ====== Monitoring memory usage of APC (http://pecl.php.net/package/APC) module. File apc-stats.php need to be accessed via HTTP for example http://127.0.0.1/apc-stats.php +Template App Brocade HBA +====== +Monitoring for Network Adapters - Brocade. + +Template App Nscd +====== +Nscd is a daemon that provides a cache for the most common name service requests. Nscd provides caching for accesses of the passwd(5), group(5), and hosts(5) databases through standard libc interfaces, such as getpwnam(3), getpwuid(3), getgrnam(3), getgrgid(3), gethostbyname(3), and others. + +You need also add SUDO for zabbix user: ```zabbix ALL=(ALL) NOPASSWD: /usr/sbin/nscd -g``` + Template App OPcache ====== Monitoring memory usage of OPcache (http://php.net/manual/en/book.opcache.php). File opcache.php need to be accessed via HTTP for example http://127.0.0.1/opcache.php. Curl need to be installed on server. @@ -181,6 +191,8 @@ Dell Open Manage System Status 6 - NonRecoverable ``` +You need also add SUDO for zabbix user: ```zabbix ALL=(ALL) NOPASSWD: /opt/dell/srvadmin/bin/omreport``` + Template Security ====== -Contains items related with basic linux security (iptables status, selinux status) and Fail2ban application +Contains items related with basic linux security (iptables status, selinux status) and Fail2ban application. You need also add SUDO for zabbix user: ```zabbix ALL=(ALL) NOPASSWD: /sbin/iptables -L INPUT -n``` diff --git a/templates/Template App Nscd.xml b/templates/Template App Nscd.xml new file mode 100644 index 0000000..7d3b942 --- /dev/null +++ b/templates/Template App Nscd.xml @@ -0,0 +1,834 @@ + + + 2.0 + 2014-11-22T21:32:46Z + + + Templates + + + + + + + + {Template App Nscd:chkconfig[nscd].last(0)}=0 + Nscd is not enabled in autostart + + 0 + 2 + + 0 + + + + {Template App Nscd:proc.num[nscd].last(0)}<1 + Nscd is not running + + 0 + 3 + + 0 + + + + + + [nscd] Hosts - data pool + 900 + 200 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 1 + 0 + 0 + 0 + + + 0 + 0 + 00CC00 + 0 + 2 + 0 + + Template App Nscd + nscd-hosts[total data pool size] + + + + 1 + 0 + EE0000 + 0 + 2 + 0 + + Template App Nscd + nscd-hosts[used data pool size] + + + + + + [nscd] Hosts - delays in R/W locks + 900 + 200 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 1 + 0 + 0 + 0 + + + 0 + 0 + C80000 + 0 + 2 + 0 + + Template App Nscd + nscd-hosts[number of delays on rdlock] + + + + 1 + 0 + 00C800 + 0 + 2 + 0 + + Template App Nscd + nscd-hosts[number of delays on wrlock] + + + + + + [nsdc] Hosts - cache misses + 900 + 200 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 1 + 0 + 0 + 0 + + + 0 + 0 + C80000 + 0 + 2 + 0 + + Template App Nscd + nscd-hosts[cache hits on positive entries] + + + + 1 + 0 + 00C800 + 0 + 2 + 0 + + Template App Nscd + nscd-hosts[cache hits on negative entries] + + + + + + diff --git a/zabbix_agentd.conf.d/nscd.conf b/zabbix_agentd.conf.d/nscd.conf new file mode 100644 index 0000000..f090123 --- /dev/null +++ b/zabbix_agentd.conf.d/nscd.conf @@ -0,0 +1,5 @@ +# Requires +# zabbix ALL=(ALL) NOPASSWD: /usr/sbin/nscd -g +# in /etc/sudoers +UserParameter=nscd[*],sudo /usr/sbin/nscd -g | grep "$1" | awk '{ print $ 1 }' +UserParameter=nscd-hosts[*],sudo /usr/sbin/nscd -g | grep "hosts cache:" -A 22 | grep "$1" | awk '{ print $ 1 }'