Remove NagiosRamdisk
Remove NagiosRamdisk
Hi,
We have installed Nagios Ramdisk in our NagiosXI server. It seems that this is causing our performance graph to fail.
Do you have procedure on how to uninstall NagiosRamdisk?
Kindly help.
Thanks.
We have installed Nagios Ramdisk in our NagiosXI server. It seems that this is causing our performance graph to fail.
Do you have procedure on how to uninstall NagiosRamdisk?
Kindly help.
Thanks.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Remove NagiosRamdisk
You will have to delete the "/etc/sysconfig/nagios"
and reboot.
Other than that, you need to revert all of the changes you made. Doing this manually would be:
1. Remove the nagiosramdisk directory:
2. Open /usr/local/nagios/etc/nagios.cfg and change the lines below from this:
to this:
3. Open the "/usr/local/nrdp/server/config.inc.php" and change this:
to this:
4. Open the "/usr/local/nagiosxi/html/config.inc.php" and change this:
to this:
5. Open the "/usr/local/nagios/etc/pnp/npcd.cfg" and change this:
to this:
6. Open the "/usr/local/nagiosmobile/include.inc.php" and change this:
to this:
7. Restart services:
8. Go to the CCM->Commands, type "perfdata-file-bulk" in the search bar, and hit "Enter".
Modify the "process-host-perfdata-file-bulk" command so that it looks like this:
Save.
Modify the "process-service-perfdata-file-bulk" command so that it looks like this:
Save. Apply Configuration.
You can check if you were able to make all of the necessary changes by running:
and
Wait for a few minutes after running each command, and make sure the numbers are changing to 0 once in a while (the perfdata is being processed).
You can exit the command by pressing Ctrl+c.
Let us know if this helped.
Code: Select all
rm -f /etc/sysconfig/nagios
Other than that, you need to revert all of the changes you made. Doing this manually would be:
1. Remove the nagiosramdisk directory:
Code: Select all
rm -rf /var/nagiosramdisk
Code: Select all
service_perfdata_file=/var/nagiosramdisk/service-perfdata
host_perfdata_file=/var/nagiosramdisk/host-perfdata
check_result_path=/var/nagiosramdisk/spool/checkresults
object_cache_file=/var/nagiosramdisk/objects.cache
status_file=/var/nagiosramdisk/status.dat
temp_path=/var/nagiosramdisk/tmp
Code: Select all
service_perfdata_file=/usr/local/nagios/var/service-perfdata
host_perfdata_file=/usr/local/nagios/var/host-perfdata
check_result_path=/usr/local/nagios/var/spool/checkresults
object_cache_file=/usr/local/nagios/var/objects.cache
status_file=/usr/local/nagios/var/status.dat
temp_path=/tmp
Code: Select all
$cfg["check_results_dir"]="/var/nagiosramdisk/spool/checkresults";
Code: Select all
$cfg["check_results_dir"]="/usr/local/nagios/var/spool/checkresults";
Code: Select all
$cfg['xidpe_dir'] = '/var/nagiosramdisk/spool/xidpe/';
$cfg['perfdata_spool'] = '/var/nagiosramdisk/spool/perfdata/';
Code: Select all
$cfg['xidpe_dir'] = '/usr/local/nagios/var/spool/xidpe/';
$cfg['perfdata_spool'] = '/usr/local/nagios/var/spool/perfdata/';
Code: Select all
perfdata_spool_dir = /var/nagiosramdisk/spool/perfdata/
Code: Select all
perfdata_spool_dir = /usr/local/nagios/var/spool/perfdata/
Code: Select all
STATUS_FILE = "/var/nagiosramdisk/status.dat";
$OBJECTS_FILE = "/var/nagiosramdisk/objects.cache";
Code: Select all
$STATUS_FILE = "/usr/local/nagios/var/status.dat";
$OBJECTS_FILE = "/usr/local/nagios/var/objects.cache";
Code: Select all
service nagios restart
service httpd restart
service npcd restart
Modify the "process-host-perfdata-file-bulk" command so that it looks like this:
Code: Select all
/bin/mv /usr/local/nagios/var/host-perfdata /usr/local/nagios/var/spool/xidpe/$TIMET$.perfdata.host
Modify the "process-service-perfdata-file-bulk" command so that it looks like this:
Code: Select all
/bin/mv /usr/local/nagios/var/service-perfdata /usr/local/nagios/var/spool/xidpe/$TIMET$.perfdata.service
You can check if you were able to make all of the necessary changes by running:
Code: Select all
watch -n 1 "ls /usr/local/nagios/var/spool/xidpe | wc -l"
Code: Select all
watch -n 1 "ls /usr/local/nagios/var/spool/perfdata | wc -l"
You can exit the command by pressing Ctrl+c.
Let us know if this helped.
Re: Remove NagiosRamdisk
Thank you for your detailed procedure. I will try this and will let you know the status.
Re: Remove NagiosRamdisk
Thank you scottwilkerson!
Performance graph is now working after removing nagiosramdisk.
Performance graph is now working after removing nagiosramdisk.
Re: Remove NagiosRamdisk
Yes you can close this topic. Thank you!
Re: Remove NagiosRamdisk
Closing this topic as resolved.
Thank you for visiting the Nagios Support Forum!
Thank you for visiting the Nagios Support Forum!