Thursday, 17 May 2007

Nagios fired up

In an effort to build my Nagios in a box server, I've installed the default Debian Nagios install (1.4), apache (1.3).

Not really got any problems to speak of, apart from the host and hostgroup differences with contact_groups being allowed on a host in Nagios 2.x and only on a hostgroup in 1.x

Downloaded my Nagios NFS plugin NFS plugin and pointed it back to the SLUG. All working brilliantly despite the Nagios downgrade.

tng@monty:/etc/nagios$ more checkcommands.cfg
# checkcommands.cfg - Nagios configuration file for local user changes
# Nagios packages wont touch this file anymore. If you want to define
# your own commands for nagios use this file and add the commands here.
# Dont add any command with a name that already exists or nagios wont
# run.
define command {
command_name check_nfsmount
command_line $USER1$/check_nfsmount -H $HOSTADDRESS$

tng@monty:/etc/nagios$ more services.cfg

define service{
use generic-service ; Name of service template to use

host_name icybox
service_description NFS checker
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups linux-admins
notification_interval 240
notification_period 24x7
notification_options c,r
check_command check_nfsmount


Downed the services on the icybox (portmap and nfs-utils stopped) and Nagios alerted.

No comments: