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?
Possible bad xi config flies, restoring nagiosxi defaults
-
- Posts: 146
- Joined: Tue Aug 04, 2015 12:25 pm
- Location: Idaho
Possible bad xi config flies, restoring nagiosxi defaults
----------------------------------
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios xi
Enterprise License
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios xi
Enterprise License
-
- Posts: 146
- Joined: Tue Aug 04, 2015 12:25 pm
- Location: Idaho
Re: Possible bad xi config flies, restoring nagiosxi default
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
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios xi
Enterprise License
-
- Posts: 146
- Joined: Tue Aug 04, 2015 12:25 pm
- Location: Idaho
Avalon process?
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
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios xi
Enterprise License
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Possible bad xi config flies, restoring nagiosxi default
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:
And then remove the following file:
Let us know if you need assistance with anything else regarding this issue.
Best Regards,
Benjamin
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
Code: Select all
rm -rf /usr/local/nagvis/share/userfiles/scripts/userfile.php
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 146
- Joined: Tue Aug 04, 2015 12:25 pm
- Location: Idaho
Re: Possible bad xi config flies, restoring nagiosxi default
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
You can lock this topic and thank you
----------------------------------
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios xi
Enterprise License
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios xi
Enterprise License
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Possible bad xi config flies, restoring nagiosxi default
Hi,
Best Regards,
Benjamin
Great. Glad to hear this is resolved for you.You can lock this topic and thank 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!