Duplicate scheduled downtime after configuring a ram disk

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
cloberjewels
Posts: 23
Joined: Wed Sep 21, 2011 10:59 am

Duplicate scheduled downtime after configuring a ram disk

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Duplicate scheduled downtime after configuring a ram dis

Post by slansing »

Strange, do you expect to have scheduled downtime still listed there? Were they intentionally removed when trying to stop the duplication?
cloberjewels
Posts: 23
Joined: Wed Sep 21, 2011 10:59 am

Re: Duplicate scheduled downtime after configuring a ram dis

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Duplicate scheduled downtime after configuring a ram dis

Post 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/*
Be sure to check out our Knowledgebase for helpful articles and solutions!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Duplicate scheduled downtime after configuring a ram dis

Post 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
cloberjewels
Posts: 23
Joined: Wed Sep 21, 2011 10:59 am

Re: Duplicate scheduled downtime after configuring a ram dis

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Duplicate scheduled downtime after configuring a ram dis

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
cloberjewels
Posts: 23
Joined: Wed Sep 21, 2011 10:59 am

Re: Duplicate scheduled downtime after configuring a ram dis

Post 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$
cloberjewels
Posts: 23
Joined: Wed Sep 21, 2011 10:59 am

Re: Duplicate scheduled downtime after configuring a ram dis

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Duplicate scheduled downtime after configuring a ram dis

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked