Login
Newsletter
Werbung

Mo, 13. Juli 2009, 00:00

High Availability Computer Center (hacc-) - Update, Teil 3

Teil 3: Hochverfügbarkeit und Web-Oberfläche

Anlegen: /etc/nagios2/conf.d/nfs.cfg

define hostgroup{
 hostgroup_name NFS
 alias fsP
 members hacc-fsP
}
define host{
 use default-host
 host_name hacc-fsP
 alias NFS File Server
 address 192.168.100.100
 parents hacc-swP-e1-3com,hacc-swP-e2-3com
}
#####################################################
define service{
 use default-service
 host_name hacc-fsP
 service_description NFS
 check_command check_nfs
 contact_groups linux-admins
 servicegroups nfs
}
define service{
 use default-service
 host_name hacc-fsP
 contact_groups linux-admins
 service_description PING
 servicegroups nfs
}
########################################################
define servicegroup{
 servicegroup_name nfs
 alias NFS Services
}

Anlegen: /etc/nagios2/conf.d/switches.cfg

define hostgroup{
 hostgroup_name switch
 alias Switches
 members hac2-1-net2,hac2-1-net3,hac2-2-net2,hac2-2-net3,hac2-1-net1,
hac2-1-net4,hac2-2-net1,hac2-2-net4,hacc-swP-e1-3com,hacc-swP-e2-3com,hac2-GW
}
define service{
 use default-service
 service_description PING
 hostgroup_name switch
}
define host{
 use default-host
 host_name hac2-GW
 alias Default Router
 address ...
}
define host{
 use default-host
 host_name hac2-1-net2
 alias Blade Switch Blade 1 NET2
 address ...
 parents hac2-GW
}
define host{
 use default-host
 host_name hac2-1-net3
 alias Blade Switch Blade 1 NET3
 address ...
 parents hac2-GW
}
define host{
 use default-host
 host_name hac2-2-net2
 alias Blade Switch Blade 2 NET2
 address ...
 parents hac2-GW
}
define host{
 use default-host
 host_name hac2-2-net3
 alias Blade Switch Blade 2 NET3
 address ...
 parents hac2-GW
}
define host{
 use default-host
 host_name hac2-1-net1
 alias Balde Switch Balde 1 NET1
 address 192.168.100.35
}
define host{
 use default-host
 host_name hac2-1-net4
 alias Balde Switch Balde 1 NET4
 address 192.168.100.36
 parents hac2-1-net1
}
define host{
 use default-host
 host_name hac2-2-net1
 alias Balde Switch Balde 1 NET1
 address 192.168.100.37
}
define host{
 use default-host
 host_name hac2-2-net4
 alias Balde Switch Balde 1 NET4
 address 192.168.100.38
 parents hac2-2-net1
}
define host{
 use default-host
 host_name hacc-swP-e1-3com
 alias 3Com (inneres Netz)
 address 192.168.100.111
 parents hac2-1-net1,hac2-1-net4,hac2-2-net1,hac2-2-net4
}
define host{
 use default-host
 host_name hacc-swP-e2-3com
 alias 3Com (inneres Netz)
 address 192.168.100.112
 parents hac2-1-net1,hac2-1-net4,hac2-2-net1,hac2-2-net4
}

Kommentare (Insgesamt: 0 )
Pro-Linux
Pro-Linux @Facebook
Neue Nachrichten
Werbung