Global Stats with NFS

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
CFT6Server
Posts: 506
Joined: Wed Apr 15, 2015 4:21 pm

Global Stats with NFS

Post by CFT6Server »

We have the Log Server data saving to an NFS mount and looks like this is throwing the global stats off. We are not seeing the "Data Written" and "I/O Size" data. I am guessing this could be due to the nature of us moving the data location. Is this something we could adjust and fix?
global stats.JPG
You do not have the required permissions to view the files attached to this post.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Global Stats with NFS

Post by jolson »

This metric is pulled from an elasticsearch query. Please run the following on one of your problem nodes:

Code: Select all

curl -s -XGET 'http://localhost:9200/_nodes/stats?pretty' | grep disk
Let us know the results. My guess is that either elasticsearch can't calculate disk read/write actions via NFS or the GUI is having trouble communicating with the subsystem. I think the former is more likely.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
CFT6Server
Posts: 506
Joined: Wed Apr 15, 2015 4:21 pm

Re: Global Stats with NFS

Post by CFT6Server »

Looks like you are right. There are no disk stats. I ran the same command on a test node which had local disks and it is returning a number of disk statistics.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Global Stats with NFS

Post by jolson »

My guess is that the elasticsearch API does not support monitoring the disk stats on a remote NFS mount. This guess might be taken further based on a quote from the elasticsearch team:
Do not place the index on a remotely mounted filesystem (e.g. NFS or SMB/CIFS); use storage local to the machine instead.
I'm doing some further digging - I'll let you know what I find out.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Global Stats with NFS

Post by jolson »

Since elasticsearch cannot read the data here, we cannot report it properly in the GUI. I traced the code down to this section, view-able via github: https://github.com/elastic/elasticsearc ... monitor/fs

I suggest filing a bug report to the elasticsearch team, since I cannot find an existing bug regarding this issue. https://github.com/elastic/elasticsearch/issues

In the meantime, you could use something like iostatto monitor your disk performance.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
Locked