Files
nagios/00README.md
T
2024-07-11 17:16:31 -04:00

30 lines
1.2 KiB
Markdown

# 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
```