The LUN mapped for Nagios is utilizing huge IO

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
wiproltdwiv
Posts: 281
Joined: Sat Sep 08, 2012 12:52 am

The LUN mapped for Nagios is utilizing huge IO

Post by wiproltdwiv »

The LUN mapped for Nagios is utilizing huge IO

LUN Total OP/s Application running
/vol/EMSAPM2/emsapmdata 745 Nagios

recently added around 1600 parameters in Nagios server, is this the reason for IO utilization. Please help & suggest. :oops:
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: The LUN mapped for Nagios is utilizing huge IO

Post by ssax »

It depends on what type of parameters you are using that would determine the amount of IO used.

Have you added a RAMDisk? You can also read more about the the Key Files That Affect Disk I\O in the following document:

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

For good measure I'll link you to the maximizing performance doc:

http://assets.nagios.com/downloads/nagi ... ios-XI.pdf
wiproltdwiv
Posts: 281
Joined: Sat Sep 08, 2012 12:52 am

Re: The LUN mapped for Nagios is utilizing huge IO

Post by wiproltdwiv »

What are the parameters that can take more efficency or more IO,
wiproltdwiv
Posts: 281
Joined: Sat Sep 08, 2012 12:52 am

Re: The LUN mapped for Nagios is utilizing huge IO

Post by wiproltdwiv »

I mean how should I check which parameter is consuming more IO, so that we can find the culprit & remove... :oops:
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: The LUN mapped for Nagios is utilizing huge IO

Post by Box293 »

iotop should help with this

Code: Select all

yum -y install iotop
then run

Code: Select all

iotop
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
wiproltdwiv
Posts: 281
Joined: Sat Sep 08, 2012 12:52 am

Re: The LUN mapped for Nagios is utilizing huge IO

Post by wiproltdwiv »

Is the files creating in /usr/local/nagios/var/spool/xipde are neccessary for any work..because it is around 90G in our nagios server..pls suggest can we remove it.. :oops:
wiproltdwiv
Posts: 281
Joined: Sat Sep 08, 2012 12:52 am

Re: The LUN mapped for Nagios is utilizing huge IO

Post by wiproltdwiv »

Can we delete these files...Will it affect ???
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: The LUN mapped for Nagios is utilizing huge IO

Post by ssax »

That directory contains all the performance data, if you delete it you will lose your past performance data.

90G is a lot of space, should really be around 1-2G

If you don't care about the performance data you can delete the files but you should still modify the file below and change your settings.

Change /usr/local/nagios/etc/pnp/npcd.cfg
From

Code: Select all

load_threshold = 10.0
To: *** A general rule for load_threshold would be the number of cores your server has times 10.

Code: Select all

load_threshold = 20.0
Then run:

Code: Select all

service npcd restart
If that doesn't clean up that directory you may have to delete the files and then restart the npcd service.
wiproltdwiv
Posts: 281
Joined: Sat Sep 08, 2012 12:52 am

Re: The LUN mapped for Nagios is utilizing huge IO

Post by wiproltdwiv »

/usr/local/nagios/var/spool/xidpe/ This file is 15 G size, I am not even able to tar or zip it.showing errors like :
tar: /usr/local/nagios/var/spool/xidpe/ziLwfhAq: File removed before we read it
tar: /usr/local/nagios/var/spool/xidpe: file changed as we read it

Requesting you to please help us with any suggestion :oops:
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: The LUN mapped for Nagios is utilizing huge IO

Post by abrist »

You will most likely have to remove the files in the xidpe folder as the spool has gotten too large to be stat()ed/parsed. How many files are in there:

Code: Select all

ls /usr/local/nagios/var/spool/xidpe/ | wc -l
You can remove the files with the following command, but you should be aware that you will have gaps in your graphs representing the time associated with each of these performance data files in xidpe:

Code: Select all

cd /usr/local/nagios/var/spool/xidpe/
find . -type f -delete
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked