Page 1 of 2

After setup RamDisk, performance graph no data?!

Posted: Wed Sep 25, 2019 5:34 am
by xpertech
After refer the document to setup RamDisk, the performance graph can not display data?!

https://assets.nagios.com/downloads/nag ... giosXI.pdf

Re: After setup RamDisk, performance graph no data?!

Posted: Wed Sep 25, 2019 8:52 am
by tgriep
First, check to see if the npcd and the cron jobs are running on the server.
To to that, run the following command as root.

Code: Select all

ps -ef |grep nagios
Search the output and you should see there processes running.

Code: Select all

nagios   16461 16448  0 08:42 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php
nagios   16448 16436  0 08:42 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php >> /usr/local/nagiosxi/var/perfdataproc.log 2>&1
nagios    2020     1  0 Aug30 ?        00:02:04 /usr/local/nagios/bin/npcd -d -f /usr/local/nagios/etc/pnp/npcd.cfg
If you do not see then, run the following as root to restart the processes

Code: Select all

service npcd restart
service crond restart
Wait 10 to 15 minutes for the data to populate.

Another thing to check, it the RAMDisk mounted?
run this as root

Code: Select all

df -h
You should see this

Code: Select all

tmpfs                 100M  2.4M   98M   3% /var/nagiosramdisk
If not, reboot the server to see if it gets mounted.

Re: After setup RamDisk, performance graph no data?!

Posted: Wed Sep 25, 2019 11:01 pm
by xpertech
What happen if RamDisk full?

Re: After setup RamDisk, performance graph no data?!

Posted: Wed Sep 25, 2019 11:04 pm
by xpertech
after refer to your reply and restart service, still no performance graph?
service npcd restart
service crond restar

the RamDisk had been mounted,

tmpfs 1000M 1000M 0 100% /var/nagiosramdisk

Re: After setup RamDisk, performance graph no data?!

Posted: Thu Sep 26, 2019 6:56 am
by scottwilkerson
I would guess that one of the steps in the ramdisk document were missed lich changing the commands on page 12, but lets check to see where the ram disk is filling by showing the output of these commands

Code: Select all

ll /var/nagiosramdisk
ll /var/nagiosramdisk/spool/perfdata/|wc -l
ll /var/nagiosramdisk/spool/xidpe/|wc -l
ll /var/nagiosramdisk/spool/checkresults/|wc -l

Re: After setup RamDisk, performance graph no data?!

Posted: Thu Sep 26, 2019 8:25 pm
by xpertech
the output of those commands ...

Re: After setup RamDisk, performance graph no data?!

Posted: Fri Sep 27, 2019 7:18 am
by scottwilkerson
Did you change this in the /usr/local/nagiosxi/html/config.inc.php per page 10 of the document?

Code: Select all

$cfg['xidpe_dir'] = '/var/nagiosramdisk/spool/xidpe/';

Re: After setup RamDisk, performance graph no data?!

Posted: Tue Oct 01, 2019 5:57 am
by xpertech
didn't change /usr/local/nagiosxi/html/config.inc.php,

the code you offered, should we do anything?
$cfg['xidpe_dir'] = '/var/nagiosramdisk/spool/xidpe/';

Re: After setup RamDisk, performance graph no data?!

Posted: Tue Oct 01, 2019 6:35 am
by scottwilkerson
Yes, see page 10 of this document for the changes that should be made
https://assets.nagios.com/downloads/nag ... giosXI.pdf

I would also review the whole document to verify that all the changes were applied.

Re: After setup RamDisk, performance graph no data?!

Posted: Tue Oct 01, 2019 10:12 am
by xpertech
another thing, what would happen if the RamDisk full? will it reset automatically? or the application on it will hang?