Install Nagios on CentOS

Nagios 3 Quick Install on CentOS This is short/fast HowTo Install Nagios 3 on CentOS/RedHat 5 64bits ::INSTALL NAGIOS:: rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm yum update vim /etc/selinux/config SELINUX=disabled reboot yum -v -y install libstdc++-devel gcc-c++ httpd gd gd-devel kernel-devel openssl-devel perl-DBD-MySQL […]

Tags: , , , , , , , , ,

Varnish security.vcl

How to setup Security.vcl on Varnish 3.0 Download it wget https://github.com/KristianLyng/varnish/tree/my2.1/varnish-tools/security.vcl # cd vcl/ # make # cp -a vcl/ /etc/varnish/security.vcl/ (alternatively you could symlink it, of course). Now all it has to be done is edit your normal VCL […]

Tags: , , , , , , , , ,

How to setup sshguard

How to setup sshguard Using Iptables and centos or redhat (another option is to use fail2ban, checkout my howto here ) 1.Download sshguard source and compile it (could also try yum install sshguard) # wget http://downloads.sourceforge.net/project/sshguard/sshguard/sshguard-1.5/sshguard-1.5.tar.bz2 Other downloads from here […]

Tags: , , , , , , , ,

How to setup Centreon with MK_Livestatus

How to setup Centreon with MK_Livestatus Setup mk_livestatus: wget http://mathias-kettner.de/download/mk-livestatus-1.1.10p1.tar.gztar -zxvf mk-livestatus-1.1.10p1.tar.gz cd mk-livestatus-1.1.10p1make installchown nagios.apache/usr/local/lib/mk-livestatus/livestatus.o To patch centreon to use multibrokers: SQL:1. Create new tables in DB: ‘centreon’ CREATE TABLE IF NOT EXISTS `cfg_nagios_bkmod` (`bkmod_id` int(11) NOT NULL AUTO_INCREMENT,`nagios_id` […]

Tags: , , ,