Archive for the ‘Nagios’ Category

nagios script to check dns servers status

Monday, June 7th, 2010

#!/bin/bash ################################### #Purpose:################################################################ ###(a) Monitor if all your name server is online: Status :D one #### ###(b) Monitor if all name server has same zone record : Staus : Ongoing## ###(c) Monitor the Response time of Dns server : Status : Ongoing# #########################################################################   #Status check variables for nagios script##### ##################################### STATE_OK=0 STATE_WARNING=1 STATE_CRITICAL=2 STATE_UNKNOWN=3 STATE_DEPENDENT=4 [...]

configure nrpe(nagios) to listen on different port

Thursday, April 15th, 2010

Purpose : Some times Isp Or vps provider they block port 5666 Or for any reason if you want to configure nrpe to listen different port example 15666, follow as bellow: On the Remote host(linux-vps) : 1. Change the Port number in : /etc/xinetd.d/nrpe # default: on # description: NRPE (Nagios Remote Plugin Executor) service [...]