Page 1 of 2

Duplicate scheduled downtime after configuring a ram disk

Posted: Fri May 24, 2013 9:04 am
by cloberjewels
Hi,

Nagios XI 2011R3.2
RHEL5

I have 2 issues that I think may be related so I'll included them together but if not we can break them out separately if that is easier.

I configured a ram disk last week following this article: http://assets.nagios.com/downloads/nagi ... giosXI.pdf

1.) Now, the scheduled downtime has multiple duplicate entries. I'm not sure if the issue is related but the issue started occurring the next day.

2.) Today, the ram disk disk space filled up and the status.dat file could not be written. I increased the ram disk size and restarted NagiosXi and everything started fine but now the scheduled downtime doesn't show anything. It's a blank page.

Thanks for the assistance.

--Chris

Re: Duplicate scheduled downtime after configuring a ram dis

Posted: Fri May 24, 2013 1:33 pm
by slansing
Strange, do you expect to have scheduled downtime still listed there? Were they intentionally removed when trying to stop the duplication?

Re: Duplicate scheduled downtime after configuring a ram dis

Posted: Fri May 24, 2013 1:48 pm
by cloberjewels
We had not tried to clean up the duplicates yet so I would have expected something on the page. It is completely blank - it doesn't even have the typical headers or options to add scheduled downtime.

Re: Duplicate scheduled downtime after configuring a ram dis

Posted: Fri May 24, 2013 2:04 pm
by lmiltchev
Run the following commands and show us the output:

Code: Select all

ls -ld /var/nagiosramdisk
ll /var/nagiosramdisk
grep nagiosramdisk /etc/fstab
grep nagiosramdisk /usr/local/nagios/etc/nagios.cfg
grep nagiosramdisk /usr/local/nrdp/server/config.inc.php
grep nagiosramdisk /usr/local/nagiosxi/html/config.inc.php
grep nagiosramdisk /usr/local/nagios/etc/pnp/npcd.cfg
grep -R nagiosramdisk /etc/init.d/*

Re: Duplicate scheduled downtime after configuring a ram dis

Posted: Fri May 24, 2013 2:07 pm
by slansing
You may also want to look at upgrading to the latest version of Nagios Xi as there was a downtime bug on the version you have been running:

http://assets.nagios.com/downloads/nagi ... ctions.pdf

Re: Duplicate scheduled downtime after configuring a ram dis

Posted: Fri May 24, 2013 4:49 pm
by cloberjewels
Here is the info requested:

[root@rhesprodnagios01 ~]# grep nagiosramdisk /usr/local/nagios/etc/nagios.cfg
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
[root@rhesprodnagios01 ~]# grep nagiosramdisk /usr/local/nrdp/server/config.inc.php
$cfg["check_results_dir"]="/var/nagiosramdisk/spool/checkresults";
[root@rhesprodnagios01 ~]# grep nagiosramdisk /usr/local/nagiosxi/html/config.inc.php
$cfg['xidpe_dir'] = '/var/nagiosramdisk/spool/xidpe/';
$cfg['perfdata_spool'] = '/var/nagiosramdisk/spool/perfdata/';
[root@rhesprodnagios01 ~]# grep nagiosramdisk /usr/local/nagios/etc/pnp/npcd.cfg
perfdata_spool_dir = /var/nagiosramdisk/spool/perfdata/
[root@rhesprodnagios01 ~]# grep -R nagiosramdisk /etc/init.d/*
/etc/init.d/nagios:mkdir -p -m 775 /var/nagiosramdisk
/etc/init.d/nagios:mkdir -p -m 775 /var/nagiosramdisk/tmp
/etc/init.d/nagios:mkdir -p -m 775 /var/nagiosramdisk/spool
/etc/init.d/nagios:mkdir -p -m 775 /var/nagiosramdisk/spool/checkresults
/etc/init.d/nagios:chown -R nagios.nagios /var/nagiosramdisk
/etc/init.d/npcd:mkdir -p -m 775 /var/nagiosramdisk
/etc/init.d/npcd:mkdir -p -m 775 /var/nagiosramdisk/spool
/etc/init.d/npcd:mkdir -p -m 775 /var/nagiosramdisk/spool/xidpe
/etc/init.d/npcd:mkdir -p -m 775 /var/nagiosramdisk/spool/perfdata
/etc/init.d/npcd:chown -R nagios.nagios /var/nagiosramdisk


I will look into upgrading but for now I would still think the scheduled downtime page should at least show up.

Re: Duplicate scheduled downtime after configuring a ram dis

Posted: Fri May 24, 2013 7:28 pm
by scottwilkerson
Did you change the 2 commands outlined in
http://assets.nagios.com/downloads/nagi ... giosXI.pdf

Can you also run

Code: Select all

grep nagiosramdisk /usr/local/nagios/etc/commands.cfg

Re: Duplicate scheduled downtime after configuring a ram dis

Posted: Tue May 28, 2013 7:33 am
by cloberjewels
[root@rhesprodnagios01 var]# grep nagiosramdisk /usr/local/nagios/etc/commands.cfg
command_line /bin/mv /var/nagiosramdisk/host-perfdata /var/nagiosramdisk/spool/xidpe/$TIMET$.perfdata.host
command_line /bin/mv /var/nagiosramdisk/host-perfdata /var/nagiosramdisk/spool/perfdata/host-perfdata.$TIMET$
command_line /bin/mv /var/nagiosramdisk/service-perfdata /var/nagiosramdisk/spool/xidpe/$TIMET$.perfdata.service
command_line /bin/mv /var/nagiosramdisk/service-perfdata /var/nagiosramdisk/spool/perfdata/service-perfdata.$TIMET$

Re: Duplicate scheduled downtime after configuring a ram dis

Posted: Tue May 28, 2013 8:05 am
by cloberjewels
Also, I can get to the scheduled downtime page today but it takes several minutes to fully load because of all the duplicates now.

Looking at it more closely the problem appears to be related to the Recurring Downtime entries on the Scheduled Downtime page.

We have daily reoccuring downtime that adds to the scheduled downtime and it is those that are being duplicate.

If I just add scheduled downtime for a host it only creates one entry.

Re: Duplicate scheduled downtime after configuring a ram dis

Posted: Tue May 28, 2013 2:12 pm
by lmiltchev
If I just add scheduled downtime for a host it only creates one entry.
So, if you schedule a downtime for a host via "Home->Incident Management->Scheduled Downtime->Schedule host downtime", you have one entry, but if you do it via "Home->Incident Management->Recurring Downtime->Add Schedule", you have duplicates? Is this correct? Can you show us a screenshot?