After setup RamDisk, performance graph no data?!
After setup RamDisk, performance graph no data?!
After refer the document to setup RamDisk, the performance graph can not display data?!
https://assets.nagios.com/downloads/nag ... giosXI.pdf
https://assets.nagios.com/downloads/nag ... giosXI.pdf
You do not have the required permissions to view the files attached to this post.
Re: After setup RamDisk, performance graph no data?!
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.
Search the output and you should see there processes running.
If you do not see then, run the following as root to restart the processes
Wait 10 to 15 minutes for the data to populate.
Another thing to check, it the RAMDisk mounted?
run this as root
You should see this
If not, reboot the server to see if it gets mounted.
To to that, run the following command as root.
Code: Select all
ps -ef |grep nagiosCode: 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.cfgCode: Select all
service npcd restart
service crond restartAnother thing to check, it the RAMDisk mounted?
run this as root
Code: Select all
df -hCode: Select all
tmpfs 100M 2.4M 98M 3% /var/nagiosramdiskBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: After setup RamDisk, performance graph no data?!
What happen if RamDisk full?
Re: After setup RamDisk, performance graph no data?!
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
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?!
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 -lRe: After setup RamDisk, performance graph no data?!
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?!
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?!
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/';
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?!
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.
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?!
another thing, what would happen if the RamDisk full? will it reset automatically? or the application on it will hang?