Zabbix

zabbix_agentd cannot run as root

I recently came across an issue where I re-installed zabbix agent on a Linux machine and tried to start it up but got the following error messages: [code lang=”js”] Starting Zabbix agent: zabbix_agentd [10808]: user zabbix does not exist zabbix_agentd [10808]: cannot run as root![/code] It appears during the re-installation of the zabbix agent, the zabbix user account needed by the agent was not created. To workaround this, run the following commands: [code lang=”js”]groupadd zabbix[/code]

Install and Configure JMX using Zabbix Java Gateway

With the introduction of Zabbix 2.0 & above, the ability to monitor JMX counters without deploying additional software has been introduced in the form of a daemon called “Zabbix Java Gateway“. The most common use of JMX is monitoring thread counts and memory usage of any Java enabled application via the resource objects called MBeans (Managed Beans). See wiki for full explanation. Zabbix Java Gateway can be installed alongside Zabbix Server or as a standalone server.

Powershell command to monitor disk fragmentation level using Zabbix

I love zabbix a lot because of its ease of use and the simplicity of the configuration when it comes to monitoring anything. I recently added a monitor to check the fragmentation level of volumes on a machine once a week and set it to trigger an alert when the fragmentation level reaches the set threshold. I wrote a simple command line statement that would run the defrag check and output just the value.

How to change Zabbix database password

In this post, I will show you 2 simple steps on how to change the zabbix DB password from “zabbix” to something else. This comes in handy when you are running zabbix in a LIVE environment and you want to secure the DB connection password. Step 1. Update zabbix_server.conf & zabbix.conf.php configuration files – Log into zabbix, enter the command “vi /etc/zabbix/zabbix_server.conf” to edit the zabbix_server.conf file. Locate the line DBPassword= and change the password.

Monitor Windows Server 2008 Recycle Bin using Zabbix

I was recently given a task to capture the total size of deleted items in Recycle Bin for all user profiles on a server and report an alert when it reaches the defined threshold irrespective of the number of volumes on the server. The idea behind this was to ensure no one leaves large deleted files on their recycle bin that might lead to disk been full. This is the approach I have taken to achieve this and it could be better, so I welcome suggestions and improvements.

Zabbix server is not running (fix)

In this article we’ll show you how to fix Zabbix server is not running alert. In some occasions after installing Zabbix server, the following message gets displayed at the home screen: Zabbix server is not running: the information displayed may not be current This issue is related to the Linux Security Module (SELinux) which is a mandatory access control (MAC) security mechanism implemented in the kernel. To clear the alert, follow the steps outlined below: Fix: Zabbix server is not running alert – First confirm that SELinux is causing this by running the following command from within Linux console: tail -f /var/log/audit/audit.

Auto restart Windows service using zabbix

In the event that a critical application service stops unexpectedly or fails to start up for unknown reasons or your web server fails to respond and you are no where near your system, you can setup zabbix to proactively restart such services. For the purpose of this post, I will configure zabbix to restart ‘Active Directory Domain Service‘ when service goes down. – Log onto zabbix → click on Configuration/Actions → click Create action (top right corner) → Enter Action name and leave rest as default – Click on Conditions tab → Leave condition label (A) → remove any other conditions and add a new Trigger condition (new condition would be ‘Trigger = ) → click Add to add the new condition – Click on Operations tab → Operation type is ‘Remote command’ → Enter new Target as ‘Current host’ → Type equals ‘Custom script’ → Execute equals ‘Zabbix agent’ → Command enter ‘cmd /c “net start “NTDS”‘ → click Add to add the new reactive action → save the configuration – To test this, simply stop the ‘Active Directory Domain Service‘ → Wait for few seconds and check if service had restarted → To confirm this test, below is the log in the agent log file: [box type="

Add monitor for mission critical application service in Zabbix

If you are running a service based mission critical applications on a Windows server and you would like to be notified immediately when the application service(s) goes down, then this post is for you and with the assumption that you are using Zabbix as your monitoring tool. This post will focus on: – Adding a monitor for the desired service in zabbix – Setup a trigger to notify you when the service goes down.

Add SMTP monitors on zabbix

As part of my series of setting up monitors on zabbix, I will share some of the counters I have configured on my zabbix server to monitor the SMTP servers. As I had earlier shown in previous post the importance of creating Templates to group items per servers or functions, I will only show screenshots of some SMTP counters. 1. First create a template for SMTP Servers 2. Create Application to capture the KPI’s to monitor 3.

Add Active Directory perfmon counters in zabbix

As earlier promised, I will be showing us how to add Perfmon counters in Zabbix. For the purpose of this post, I will start by adding monitor for DNS Port (53); DNS Queries Received/sec and setup a Trigger. Click here for steps on how to determine a Perfmon Key value… Note: Its advisable to group all items into templates hence making it easier to simply assign the template to new servers or server groups based on server type or function as you choose.

How to find Perfmon counter key values for Zabbix

This post is simply to show us how to find a Perfmon counter key value for use when adding a Perfmon counter in Zabbix. – On your Windows server, click Start Administrative Tools Performance Monitor – Right-click on Performance Monitor Click on Properties – Under the properties screen, click on Data tab. As seen the default counter is ‘Processor Time in percentage‘ – The Key value for zabbix would be in this format: perf_counter[\Processor Information(_Total)\% Processor Time] I have also added a few more: – DNS Caching Memory: perf_counter[“\DNS\Caching Memory”]

Deploy zabbix agent and Monitor on Windows Server

This post is in continuation of my earlier post on ‘How to install Zabbix on CentOS‘ and here I will show us how to deploy the Zabbix agent on a Windows machine and add the server into Zabbix so we can start monitoring it. This is very simple to do 🙂 Steps: 1. Install and configure zabbix agent: – Create a folder called ‘Zabbix‘ under C: drive (c:\zabbix) – Download the Windows Zabbix agent files.

Installing Zabbix 2.0 package from EPEL on CentOS 6.4

As promised from my previous post on Installing CentOs on VirtualBox, this post will be focused on step by step installation guide of Zabbix on CentOS. As at the writing of this post, Zabbix v2.0 and CentOS v6.4 where the latest. It is assumed that you already have CentOS 6.4 installed and configured. [box type=”info” size=”medium” style=”rounded” icon=”info”]Update: Added steps on how to open up zabbix ports in a production environment without having to disable IPTABLES[/box] Setup: 1: Download Package – # rpm -ivh http://repo.