Adding to Git
parent
fc8077265d
commit
94e8e6de23
@ -0,0 +1,29 @@
|
||||
# Things we need to know
|
||||
|
||||
## Creating a profile from the command line
|
||||
|
||||
```
|
||||
wget -O XI_DiagnosticProfile.sh https://assets.nagios.com/downloads/support/XI_DiagnosticProfile.sh
|
||||
chown root XI_DiagnosticProfile.sh
|
||||
chmod 700 XI_DiagnosticProfile.sh
|
||||
./XI_DiagnosticProfile.sh Support
|
||||
```
|
||||
|
||||
|
||||
## Importing
|
||||
To prevent errors or misconfigurations, you should import your configurations in an useful order. We recommend importing in the following order:
|
||||
|
||||
Commands -> Time Periods -> Contact Templates -> Contacts -> Contact Groups -> Host Templates -> Hosts -> Host Groups -> Service Templates -> Services -> Service Groups
|
||||
|
||||
Or, as root, assuming you're in <source>/nagios/etc:
|
||||
|
||||
```
|
||||
cp commands.cfg timeperiods.cfg contacttemplates.cfg contacts.cfg contactgroups.cfg hosttemplates.cfg /usr/local/nagios/etc/import
|
||||
/usr/local/nagiosxi/scripts/reconfigure_nagios.sh
|
||||
cp hostgroups.cfg hosts/*.cfg /usr/local/nagios/etc/import
|
||||
/usr/local/nagiosxi/scripts/reconfigure_nagios.sh
|
||||
cp servicetemplates.cfg /usr/local/nagios/etc/import
|
||||
/usr/local/nagiosxi/scripts/reconfigure_nagios.sh
|
||||
cp servicegroups.cfg services/*.cfg /usr/local/nagios/etc/import
|
||||
/usr/local/nagiosxi/scripts/reconfigure_nagios.sh
|
||||
```
|
||||
Loading…
Reference in New Issue