You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1.2 KiB

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 /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