Nagios check_http text in page

This is how you can check a word in a webpage with nagios. The nagios server is a CentOS 6.5 64bit.

To test if everything is installed properly check this command on the server:

/usr/lib64/nagios/plugins/check_http -H 10.0.0.200 -p 80 -f follow -u "/login" -s "Forgotten"

“-p” – port

“-u” – custom url address

“-s” – word to check in page

“-S” – to check a https page add -S after the port number (…-p 80 -S …)

The configuration looks like:

Trac server installation on CentOS 6.4 with apache, MySQL and wsgi

The documentation on the Trac website is clear but I was on the wrong track trying to use fcgi on CentOS and to make that Trac server working. After couple of days of research this is my solution to install (migrate) the Trac server.

##Start with epel and remi repo installation##

rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

##Enable remi repo

vi /etc/yum.repo.d/remi.repo

##Change first “enable=0” to “enable=1“;
## Because the previous server was using MySQL with utf8mb4 database, I had to install mysql 5.5
##Check first what version of mysql will be installed

Add epel and remi repo to CentOS 5/6

By default remi repo is not enabled. In remi repo can be found a newer version of MySQL.

## Remi Dependency on CentOS 6 and Red Hat (RHEL) 6 ## 

rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

## CentOS 6 and Red Hat (RHEL) 6 ## (this repo is not enabled by default, check /etc/yum.repo.d/remi.repo file)

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

## Remi Dependency on CentOS 5 and Red Hat (RHEL) 5 ##

rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm 

## CentOS 5 and Red Hat (RHEL) 5 ##

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm

## CentOS x64 RPMforge install