mathz.nu Asterisk Blacklist Hobby webbhotell

2018/01/11

Software Raid monitoring in Zabbix 3.2

Filed under: Server,Zabbix — Mathz @ 18:21

Item1:

Item1:

Name: Software Raid exist
Type: Zabbix Agent
Key: vfs.file.regmatch[/proc/mdstat,raid]
Type of information: Character
Application: Filesystem

Item2:

Name: Software Raid broken
Type: Zabbix Agent
Key: vfs.file.regmatch[/proc/mdstat,_]
Type of information: Character
Application: Filesystem

Trigger1:

Name: Software raid broken {HOSTNAME}
Severity: Disaster
Expression: {Template OS Linux:vfs.file.regmatch[/proc/mdstat,raid].last(0)}>0 and {Template OS Linux:vfs.file.regmatch[/proc/mdstat,_].last(0)}>0

2013/08/12

Check if latest Kernel is running on Ubuntu, with Zabbix

Filed under: Server,Zabbix — Mathz @ 12:06

First a created a bash script that return 0 – error, 1 – OK, 2 – Old Kernel is running.

The script is called /usr/local/bin/last-kernel-check.sh

#!/bin/bash
name="`uname -a | cut -d ' ' -f3`"
new="0"
for files in `ls /boot/config* | xargs -n 1 basename | cut -d '-' -f2-`
do
if [ "$files" == "$name" ]; then
new="1"
else
new="2"
fi
done
echo $new

In file /etc/zabbix/zabbix_agentd.conf I added:

UserParameter=custom.checkkernel,/usr/local/bin/last-kernel-check.sh

In Zabbix a added one Item and two triggers.
The Item is checking the custom command custom.checkkernel added above to the zabbix-agentd.conf
One of the two trigger is used to check if the return value is 0 – Error and the other trigger is used for check if 2 – Old kernel is running.
Here you can download a export-file for Zabbix Linux Template. ChechKernel_Linux_templates_export

 

2013/01/30

Zabbix Template for Netgear GS716T

Filed under: NetGear,Server,Zabbix — Mathz @ 13:27

Here is a Zabbix export of my Template for Netgear GS716T.

zabix_template_netgear_gs716t

Powered by WordPress