Chapter 14: Configuration from the Command Line

The following command will synchronize the live system with the new configuration:

# config –a

14.21 NAGIOS

To configure NAGIOS with the following settings:

NAGIOS host name

console at R3 (Name of this system)

NAGIOS host address

192.168.0.1 (IP to find this device at)

NAGIOS server address

192.168.0.10 (upstream NAGIOS server)

Enable SDT for NAGIOS ext.

Enabled

SDT gateway address

192.168.0.1 (defaults to host address)

Prefer NRPE over NSCA

Disabled (defaults to Disabled)

#config -s config.system.nagios.enabled=on

#config -s config.system.nagios.name=les1116

#config -s config.system.nagios.address=192.168.0.1

#config -s config.system.nagios.server.address=192.168.0.10

# config -s config.system.nagios.sdt.disabled=on

(diables SDT for nagios extensions)

#config -s config.system.nagios.sdt.address=192.168.0.1

#config -s config.system.nagios.nrpe.prefer=''

To configure NRPE with following settings:

 

NRPE port

5600 (port to listen on for nrpe. Defualts to 5666)

NRPE user

user1 (User to run as. Defaults to nrpe)

NRPE group

group1 (Group to run as. Defaults to nobody)

Allow command arguments

Enabled

#config -s config.system.nagios.nrpe.enabled=on

#config -s config.system.nagios.nrpe.port=5600

#config -s config.system.nagios.user=user1

#config -s config.system.nagios.nrpe.group=group1

#config -s config.system.nagios.nrpe.cmdargs=on

To configure NSCA with the following settings:

NSCA encryption

BLOWFISH (can be: [ None XOR DES TRPLEDES CAST-256 BLOWFISH TWOFISH RIJNDAEL-256

 

SERPENT GOST ]

NSCA password

secret

NSCA check-in interval

5 minutes

NSCA port

5650 (defaults to 5667)

user to run as

User1 (defaults to nsca)

group to run as

Group1 (defaults to nobody)

#config -s config.system.nagios.nsca.enabled=on

#config -s config.system.nagios.nsca.encryption=BLOWFISH

#config -s config.system.nagios.nsca.secret=secret

#config -s config.system.nagios.nsca.interval=2

#config -s config.system.nagios.nsca.port=5650

#config -s config.system.nagios.nsca.user=User1

#config -s config.system.nagios.nsca.group=Group1

Then synchronize the live system with the new configuration using # config -a

724-746-5500 blackbox.com

135

Page 135
Image 135
Black Box Secure Device Servers, 1102, 1101 manual Enable SDT for Nagios ext Enabled SDT gateway address