LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 09-12-2014, 06:46 AM   #1
0ddba11
Member
 
Registered: Nov 2004
Location: Derby - UK
Distribution: Ubuntu at Home, RedHat Enterprise at Work
Posts: 46

Rep: Reputation: 15
Monitoring Disk IO on HA Cluster via SNMP


Hi all!

We use Cacti to monitor various server metrics and I have recently started looking into using it for disk IO monitoring.

The method found uses the UCD-DISKIO-MIB SNMP MIB which unfortunately seems to use the dynamically created device mapper nodes (/dev/dm-##).

This of course is not only subject to change, but isn't the same on both nodes of the cluster when the service migrates to it.

In fact, according to Red Hat's documentation...

Quote:
NOTE: /dev/dm-N nodes should never be used in scripts to access the device since the N number is assigned dynamically and changes with the sequence of how devices are activated. Therefore, true names in the /dev/mapper directory should be used. This layout is to support udev requirements of how nodes/symlinks should be created.
So my questions are:
  1. Is there a way to configure snmpd to report the /dev/mapper entries which aren't subject to change instead of the device mapper nodes?
  2. Or instead, is it possibly to get UDEV to use the same persistent device mapper node for the volume in question on all nodes of the cluster?
 
Old 09-24-2014, 09:55 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,718

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by 0ddba11 View Post
Hi all!
We use Cacti to monitor various server metrics and I have recently started looking into using it for disk IO monitoring. The method found uses the UCD-DISKIO-MIB SNMP MIB which unfortunately seems to use the dynamically created device mapper nodes (/dev/dm-##). This of course is not only subject to change, but isn't the same on both nodes of the cluster when the service migrates to it.

So my questions are:
  1. Is there a way to configure snmpd to report the /dev/mapper entries which aren't subject to change instead of the device mapper nodes?
  2. Or instead, is it possibly to get UDEV to use the same persistent device mapper node for the volume in question on all nodes of the cluster?
Well, I think you've got a chance of doing it via modification of the UDEV rules, as you said...but I'd hesitate to do so. A custom udev ruleset may get vlown away by an update, and it's just one more bit of custom-code you have to keep track of when you do migrations.

There is a script that was posted to the Cacti forums a while back, that may give you a start:
http://forums.cacti.net/viewtopic.php?p=124793

I *THINK* you'd have to modify the 13-dm-disk.rules file to get what you're after.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RH Cluster monitoring using SNMP tomtom1 Linux - Server 1 06-10-2014 04:28 AM
SNMP monitoring hermy7 Linux - Networking 5 12-28-2011 04:40 AM
SNMP monitoring n0000b Linux - Server 1 03-08-2010 07:41 PM
Snmp disk monitoring help needed investmentbnker75 Linux - Newbie 11 02-19-2008 07:15 AM
SNMP master & SNMP client Script for system monitoring ratul_11 Programming 1 12-24-2007 05:32 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 08:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration