281
1. 8 7 7. 8 7 7. 2 26 9 BLACKBOX.COM
NEED HELP?
LEAVE THE TECH TO US
LIVE 24/7
TECHNICAL
SUPPORT
1.877.87 7.2269
CHAPTER 15: CONFIGURATION FROM THE COMMAND LINE
15.1.21 NAGIOS
To configure NAGIOS with the following settings:
TABLE 15-19. NAGIOS SETTINGS
SETTING VALUE NOTES
NAGIOS host name LES1716A Name of this system
NAGIOS host address 192.168.0.1 Address of this system
NAGIOS server address 192.16 8.0.10 Address of 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
Run the following commands:
# config -s config.system.nagios.enabled=on
# config -s config.system.nagios.name=cm7116
# 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
# config -s config.system.nagios.sdt.address=192.168.0.1
# config -s config.system.nagios.nrpe.prefer=''
The fifth command disables SDT for Nagios extensions.
To configure NRPE with following settings:
TABLE 15-20. NRPE SETTINGS
SETTING VALUE NOTES
NRPE port 5600 Port to listen on for nrpe. Defaults 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 —
Run the following commands:
# 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