Monthly Archives: August 2009

Check crond service with nagios.

I was surprised that nagios plugins didn’t come with a pre-packaged check_crond command! Anyway, here is a quick way to do it using NRPE. Add the command definition in command.cfg. define command{ command_name check_crond command_line $USER1$/check_nrpe -n -H $HOSTADDRESS$ -t 90 -c check_crond } Add the service definition to an existing host. define service{ use [...]

Posted in Nagios, Webhosting | Tagged , | Leave a comment

Configuring nagios to run privileged or root commands with NRPE.

Theres several things you’ll need to adjust in the default Nagios installation to get NRPE to run privileged commands. Before we start, I’m assuming that you’re using a similar /etc/xinetd.d/nrpe file: service nrpe { flags=REUSE socket_type=stream port= 5666 wait=no user=nagios group=nagios server=/usr/local/nagios/bin/nrpe server_args=-n -c /usr/local/nagios/etc/nrpe.cfg -i log_on_failure+=USERID disable=no only_from=111.111.111.111 } The things to watch out [...]

Posted in Nagios, Webhosting | Tagged , | Leave a comment

Check MySQL service with nagios.

I was surprised that nagios plugins didn’t come with a pre-packaged check_mysql command! Anyway, here is a quick way to do it. Add the command definition in command.cfg. define command{ command_name check_mysql command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p 3306 } Add the service definition to an existing host. define service{ use local-service host_name gnucom.cc service_description MYSQL [...]

Posted in Nagios, Webhosting | Tagged , | Leave a comment