Possible bad XI config flies, restoring nagiosxi defaults

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rbuckle
Posts: 146
Joined: Tue Aug 04, 2015 12:25 pm
Location: Idaho
Contact:

Possible bad XI config flies, restoring nagiosxi defaults

Post by rbuckle »

Good afternoon,

I am currently having issues with npcd not starting and a singular process overwhelming my processor. Is there a way for me to restore all the default xi/nagios/centos configs while keeping the host/service/mrtg configs intact?
----------------------------------
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
rbuckle
Posts: 146
Joined: Tue Aug 04, 2015 12:25 pm
Location: Idaho
Contact:

Re: Possible bad XI config flies, restoring nagiosxi default

Post by rbuckle »

Attached screenshot
You do not have the required permissions to view the files attached to this post.
----------------------------------
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
rbuckle
Posts: 146
Joined: Tue Aug 04, 2015 12:25 pm
Location: Idaho
Contact:

Avalon process?

Post by rbuckle »

found the issue in the npcd.conf and repaired, just want to know what this avalon process is now
----------------------------------
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Possible bad XI config flies, restoring nagiosxi default

Post by benjaminsmith »

Hi @rbuckle,

Unfortunately, that is a piece of malware that has been installed on the server. We have identified the possible exploit as an unauthenticated remote code execution (RCE) vulnerability as the apache user in the Docker config wizard and have filed CVE-2021-3193.
https://www.nagios.com/products/security/

To resolve this, please update all the configuration wizards right away in Nagios XI by going to Admin > System Extensions > Manage Config Wizards select the Check for Updates button and then select Install Updates.

See the following video for more details:
https://support.nagios.com/kb/article/n ... s-836.html

To disinfect this server, please run the following commands:

Code: Select all

You will ALSO then want to run this script as the root user to disinfect the machine:
for (( x = 0; x < 100; ++x)); do
chattr -i /etc/crontab
chattr -i /tmp/avalonsaber
chattr -R -i /var/spool/cron
echo | crontab -
echo | crontab -u nagios -
pkill -9 avalonsaber
pkill -9 lwp-download
pkill -9 curl
pkill -9 wget
rm -rf /tmp/avalonsaber
done
And then remove the following file:

Code: Select all

rm -rf /usr/local/nagvis/share/userfiles/scripts/userfile.php
Let us know if you need assistance with anything else regarding this issue.

Best Regards,
Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
rbuckle
Posts: 146
Joined: Tue Aug 04, 2015 12:25 pm
Location: Idaho
Contact:

Re: Possible bad XI config flies, restoring nagiosxi default

Post by rbuckle »

That is kind of what i figured, I had already removed most of it and saw the improvement to the machine but thank you for the code to clear the rest...

You can lock this topic and thank you
----------------------------------
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Possible bad XI config flies, restoring nagiosxi default

Post by benjaminsmith »

Hi,
You can lock this topic and thank you
Great. Glad to hear this is resolved for you.

Best Regards,
Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked