How to monitor Linux servers in icinga2?

This is third part. Previously, we have installed icinga2 and icingaweb2. Now, we are going to monitor basic services of Linux server. I assume you have followed how to install icinga2 and how to install icingaweb2 post. master server ip: 127.0.0.1 master server hostname: master.server.com client server ip: 0.0.0.0 client server hostname: client.server.com In master […]

How to install icinga2 in centos?

This post will show how to install icinga2 in centos linux server to monitor different servers. Icinga 2 is an open source monitoring system which checks the availability of your network resources, notifies users of outages, and generates performance data for reporting. Add Icinga repository RHEL/CentOS 7 # yum install https://packages.icinga.com/epel/icinga-rpm-release-7-latest.noarch.rpm RHEL/CentOS 6 # yum […]

Forward nginx stats in from collectd to influxdb

Requirement Nginx must be compiled with HttpStubStatusModule​ module. You can check that by running following command: nginx -V 2>&1 | grep -o with-http_stub_status_module If you see following output, you are good to go ahead. Otherwise, you have to install nginx with this module. with-http_stub_status_module Nginx Config $ sudo vi /etc/nginx/conf.d/status.conf server { listen 127.0.0.1:80; location […]

WordPress wp-admin/async-upload.php 403 Forbidden

I was trying to upload image from WordPess media and was getting 403 message. I searched and tried every method. Some of them include: disabled modsecurity created alternate uploads folder given 777 permission to uploads folder At last I turned on WP_DEBUG log and got following error: WordPress database error: [Duplicate entry ‘794356’ for key […]

Failed to access DBM file “/var/cpanel/secdatadir/ip”: Permission denied

If you have applied modsecurity rules either from OWASP or COMODO, you may see below error in /usr/local/apache/logs/error_log: Failed to access DBM file “/var/cpanel/secdatadir/ip”: Permission denied This is because you are using apache chroot jailed vhosts and mod_ruid2. To make it accessible you may have to change secdatadir to /var/log and give appropriate permission to […]

Optimize malware detect (maldet)

Linux Malware Detect (LMD) is a malware scanner for Linux released under the GNU GPLv2 license, that is designed around the threats faced in shared hosted environments. It uses threat data from network edge intrusion detection systems to extract malware that is actively being used in attacks and generates signatures for detection. more at: https://www.rfxn.com/projects/linux-malware-detect […]

How to downgrade icinga2 from 2.6 to 2.5?

Last time I upgraded icinga2 to v2.6 accidentally. This lead icinga2 not to start. In /var/log/icinga2/icinga2.log I see following error: 17-05-18 01:05:10 -0400] critical/IdoMysqlConnection: Schema version ‘1.14.1’ does not match the required version ‘1.14.2’ (or newer)! Please check the upgrade documentation. Context: (0) Reconnecting to MySQL IDO database ‘ido-mysql’ Of course this can be fixed […]