Page 1 of 1

Default localhost check

Posted: Thu Feb 03, 2022 2:46 pm
by TBT
Can you please outline how to re-add the localhost check present on a fresh install?

Re: Default localhost check

Posted: Fri Feb 04, 2022 12:14 am
by gsmith
Hi

I created a tarball from a fresh install of Nagios XI.

Place the attached file in /

cp -rp /usr/local/nagios/etc /usr/local/nagios/etc.orig
rm -rf /usr/local/nagios/etc/*
cd /
tar xzvf fresh_config.tar.gz
systemctl restart nagios


Verify that Nagios XI is working and has the default checks.

If everything looks ok then:
rm -rf /usr/local/nagios/etc.orig
rm -f /fresh_config.tar.gz


Thanks

Re: Default localhost check

Posted: Fri Feb 04, 2022 12:52 pm
by TBT
No, that would blow-away a production system.

I was looking for clarification on how that localhost check was initially created. I've gone ahead and re-added it by manually comparing each service.

Re: Default localhost check

Posted: Fri Feb 04, 2022 5:52 pm
by gsmith
Hi,

My bad - I should have specified to extract the tarball on your Test system. Sounds like that's
what you ended up doing.

Glad you got it re-configured. Have a great weekend!.