Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support
It is currently Mon May 21, 2012 8:38 am


ATTENTION: All users passwords have been cleared.
Please use the "Forgot Password" feature to reset your password.


All times are UTC - 5 hours




Post new topic Reply to topic  [ 30 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: NFS Stats
PostPosted: Mon Dec 10, 2007 5:28 pm 
Offline
Cacti User

Joined: Thu Oct 26, 2006 5:30 pm
Posts: 59
I find this graph pretty handy in diagnosing NFS problems and helping to tweak performance. Hope you all like it!

Note that you will just receive NaN's if you don't have NFS installed; of course why do you need this graph if that is the case. :o

Steps to install:

1. Place nfs_client.sh in /usr/local/bin/, make sure it is excecutable. I use puppet to do this, you can use another tool or do it manually.
2. Add a line like this to your snmpd.conf:
Code:
exec .1.3.6.1.4.1.2021.66 nfs_client /bin/sh /usr/local/bin/nfs_client.sh

3. Import the template, and start graphing!


Attachments:
File comment: Super fancy.
nfs_client.png
nfs_client.png [ 95.91 KiB | Viewed 26091 times ]
File comment: Import this. This template was exported from a 0.8.7a cacti installation.
cacti_graph_template_ucdnet_-_nfs_client.xml [129.05 KiB]
Downloaded 1459 times
File comment: Place this in /usr/local/bin/ and make sure it is executable.
nfs_client.sh [363 Bytes]
Downloaded 1782 times


Last edited by pheezy on Tue Dec 18, 2007 4:32 pm, edited 1 time in total.
Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 14, 2007 8:27 pm 
Offline

Joined: Fri Dec 14, 2007 7:54 pm
Posts: 1
Very kool Pheezy! I liked it so much I wanted it for Solaris so I modified your Linux /proc based polling method to use Solaris Kstats instead.

To use Pheezy's Cacti plugin with Solaris follow his instructions exactly, but use my 'nfs_client_solaris.sh' instead of his 'nfs_client' and you're good to go.

Very handy indeed.

NOTE: This is for NFSv3 only!

Remember, 'snmpd.conf' on Solaris 10/OpenSolaris is found in /etc/sma/snmp/. Once you've added the exec line enable or restart SMA (ie: Net-SNMP) (ex: 'svcadm enable sma' or 'svcadm restart sma')

benr.


Attachments:
File comment: Solaris Version of Pheezy's 'nfs_client.sh'
nfs_client_solaris.sh [388 Bytes]
Downloaded 517 times
Top
 Profile  
 
 Post subject: NFS Server Stats
PostPosted: Tue Dec 18, 2007 4:36 pm 
Offline
Cacti User

Joined: Thu Oct 26, 2006 5:30 pm
Posts: 59
Here's the server portion. It's about 99% the same as the client stats, but you're just querying /proc/net/rpc/nfsd instead. Follow the same instructions as before. :D

I used this line in my SNMPD and my template, you'll need to change it if you want to use something else:

Code:
exec .1.3.6.1.4.1.2021.67 nfs_server /bin/sh /usr/local/bin/nfs_server.sh


Attachments:
File comment: phancy
nfs_server.png
nfs_server.png [ 56.11 KiB | Viewed 25546 times ]
File comment: Place this on your NFS server, should work fine for most Linux based appliances as well (FalconStor, etc)
nfs_server.sh [338 Bytes]
Downloaded 1239 times
File comment: Exported with 0.8.7a
cacti_graph_template_ucdnet_-_nfs_server.xml [140.62 KiB]
Downloaded 1136 times
Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 16, 2008 5:57 pm 
Offline

Joined: Fri Nov 09, 2007 7:52 pm
Posts: 8
This is a modified client template that works with the "extend" directive of net-snmp instead of "exec". exec has been deprecated and will no longer work in the most recent versions, but extend exposes the data in a different format.

Long story short, this is the same client xml file at the top of the thread with the following search and replace performed on it:

.66.101.
to
.66.4.1.2.10.110.102.115.95.99.108.105.101.110.116.


This was a quick hack and it Works On My Machine<tm> - your mileage may vary.


Attachments:
File comment: NFS client template supporting net-snmp &quot;extend&quot; instead of &quot;exec&quot;
cacti_graph_template_ucdnetextend__nfs_client_186.xml [121.21 KiB]
Downloaded 669 times
Top
 Profile  
 
 Post subject: Problem to configure
PostPosted: Thu Jan 31, 2008 10:14 am 
Offline

Joined: Thu Jan 31, 2008 10:12 am
Posts: 2
Hi everybody,

I'm trying to install this template, but I don't know how I can do this.

I have a Cacti server and I want to try to monitor my NFS server (which it's not the Cacti server).

Does anyone can help me ?

Thank's a lot

Bye


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 01, 2008 2:03 am 
Offline

Joined: Wed Dec 14, 2005 9:37 pm
Posts: 8
Hi Pheezy,
Very useful template, thank you very much :)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 01, 2008 3:36 am 
Offline

Joined: Thu Jan 31, 2008 10:12 am
Posts: 2
OK, I've installed the script and the template properly.

When I execute the poller.php script, I've got a timeout.

I increase the execution time in the Cacti settings, but the timeout still here.

I don't know why...

-----

Sorry, I haven't no patience. That's working perfectly.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 04, 2008 11:44 am 
Offline

Joined: Mon Jan 28, 2008 6:53 pm
Posts: 7
This works great. Thanks!

PS -- I had to adjust my graph width to 600 on both client and server stats.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 06, 2008 7:35 am 
Offline

Joined: Wed Jan 30, 2008 9:42 am
Posts: 3
[Solved]


Top
 Profile  
 
 Post subject: Error: XML parse error on cacti
PostPosted: Thu Feb 07, 2008 8:31 pm 
Offline

Joined: Thu Feb 07, 2008 8:23 pm
Posts: 1
Hi pheezy,

I received a "XML parse error" when I try to import the XML file.

I'm using version 0.8.6i of cacti.

I appreciate any inputs regarding this problem


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 08, 2008 3:03 am 
Offline

Joined: Wed Jan 30, 2008 9:42 am
Posts: 3
I had the same problem with 0.8.7 and import works after update to 0.8.7a.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 11, 2008 4:27 am 
Offline

Joined: Tue Mar 11, 2008 4:12 am
Posts: 2
Hi! I have a Problem with this Template. If I try to import the XML, the site reloads without any response. I searched two days and try many "solutions" without success. Can anybody help me ? I use Cacti v0.8.7b.

I know: bad english. Reason: I'm a idiot! :cry:


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 11, 2008 10:38 am 
Offline
Cacti User

Joined: Thu Oct 26, 2006 5:30 pm
Posts: 59
bonehead wrote:
Hi! I have a Problem with this Template. If I try to import the XML, the site reloads without any response. I searched two days and try many "solutions" without success. Can anybody help me ? I use Cacti v0.8.7b.

I know: bad english. Reason: I'm a idiot! :cry:


These were exported with cacti 0.8.7a, and I do recall some database changes with 0.8.7b.

I've exported the attached files from a 0.8.7b installation, you might want to try them, though YMMV.


Attachments:
cacti_graph_template_ucdnet_-_nfs_server.xml [140.62 KiB]
Downloaded 860 times
cacti_graph_template_ucdnet_-_nfs_client.xml [129.05 KiB]
Downloaded 716 times
Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 12, 2008 4:53 am 
Offline

Joined: Tue Mar 11, 2008 4:12 am
Posts: 2
Works great! (i'm the happiest man on this planet ^^)
Thanks for the help !


Top
 Profile  
 
 Post subject: Error when importing template.
PostPosted: Fri Apr 25, 2008 10:49 am 
Offline

Joined: Tue Apr 22, 2008 3:52 pm
Posts: 7
I'm getting the following error when I try to import the template :

Error: XML: Hash version does not exist.

Do I need to upgrade my CACTI ?. I'm using version : 0.8.6j

Thanks,
Lucas.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 30 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group