Adding to Git

dev
Eric Loyd 1 year ago
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
```

@ -0,0 +1,8 @@
api.sh.gz: api.sh
gzip -9 --keep api.sh
chmod 644 api.sh.gz
scp api.sh.gz ssd:eloyd/
nagios:
gzip -9 --keep nlog
scp nlog root@192.168.1.19:/usr/local/bin/nlog
Loading…
Cancel
Save