After setup RamDisk, performance graph no data?!

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

After setup RamDisk, performance graph no data?!

Post by xpertech »

After refer the document to setup RamDisk, the performance graph can not display data?!

https://assets.nagios.com/downloads/nag ... giosXI.pdf
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

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

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

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

Post by xpertech »

What happen if RamDisk full?
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

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

Post 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
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

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

Post by xpertech »

the output of those commands ...
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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/';
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

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

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

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

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

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

Post by xpertech »

another thing, what would happen if the RamDisk full? will it reset automatically? or the application on it will hang?
Locked