ucd/net snmp get monitored partitions not working

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
geefour
Posts: 11
Joined: Wed Apr 19, 2006 11:54 am

ucd/net snmp get monitored partitions not working

Post by geefour »

I've got a CentOS 4.2 host monitored for ucd/net CPU Load, Load average and memory usage, which are all working fine. I'm just struggling to get the monitored partitions to work. When i run the verbose query in the setup i get the following.

Code: Select all

+ Running data query [2].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/web/docroot/cacti-0.8.6g/resource/snmp_queries/net-snmp_disk.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2021.9.1.1'
+ No SNMP data returned
+ Found data query XML file at '/web/docroot/cacti-0.8.6g/resource/snmp_queries/net-snmp_disk.xml'
+ Found data query XML file at '/web/docroot/cacti-0.8.6g/resource/snmp_queries/net-snmp_disk.xml'
+ Found data query XML file at '/web/docroot/cacti-0.8.6g/resource/snmp_queries/net-snmp_disk.xml'
Any ideas as to why this isn't being picked up yet the other ucd/net queries are?

Thanks

nick
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

add this to /etc/snmp/snmpd.conf :

Code: Select all

includeAllDisks
You have to restart (or kill -1) the SNMP agent.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
geefour
Posts: 11
Joined: Wed Apr 19, 2006 11:54 am

Post by geefour »

Hey, thats got me somewhere, now the verbose query gives me this...

Code: Select all

+ Running data query [2].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/web/docroot/cacti-0.8.6g/resource/snmp_queries/net-snmp_disk.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2021.9.1.1'
+ Located input field 'dskIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.2021.9.1.1'
+ Found item [dskIndex='No Such Instance currently exists at this OID'] index: 1 [from value]
+ Located input field 'dskPath' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.2021.9.1.2'
+ Found item [dskPath='No Such Instance currently exists at this OID'] index: 2 [from value]
+ Located input field 'dskDevice' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.2021.9.1.3'
+ Found item [dskDevice='No Such Instance currently exists at this OID'] index: 3 [from value]
+ Found data query XML file at '/web/docroot/cacti-0.8.6g/resource/snmp_queries/net-snmp_disk.xml'
+ Found data query XML file at '/web/docroot/cacti-0.8.6g/resource/snmp_queries/net-snmp_disk.xml'
+ Found data query XML file at '/web/docroot/cacti-0.8.6g/resource/snmp_queries/net-snmp_disk.xml
I get the message No Such Instance currently exists at this OID when i try to add graphs.
Its a Poweredge 850 btw with SATA, if this makes any difference.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Can you post your /etc/snmp/snmpd.conf file, and run this :

Code: Select all

$ snmpwalk -v 1 -c yourcommunity yourip dsktable
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
geefour
Posts: 11
Joined: Wed Apr 19, 2006 11:54 am

Post by geefour »

Contents of snmp.conf file:

Code: Select all

rocommunity nexus
includeAllDisks
The suggested call doesn't return anything. I tried the two below and neither gave any response. Running without the dsktable gives plenty of output.

Code: Select all

snmpwalk -v 1 -c nexus 127.0.0.1 dsktable
snmpwalk -v 1 -c nexus localhost dsktable
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

What version of Net-SNMP are you using :

Code: Select all

$ snmpwalk -v 1 -c nexus 127.0.0.1 ucdavis.version
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
geefour
Posts: 11
Joined: Wed Apr 19, 2006 11:54 am

Post by geefour »

Does this look like what you need?

Code: Select all

$ snmpwalk -v 1 -c nexus 127.0.0.1 ucdavis.version
UCD-SNMP-MIB::versionIndex.0 = INTEGER: 1
UCD-SNMP-MIB::versionTag.0 = STRING: 5.1.2
UCD-SNMP-MIB::versionDate.0 = STRING: $Date: 2004/02/04 11:25:20 $
UCD-SNMP-MIB::versionCDate.0 = STRING: Fri Apr 21 13:14:52 2006
UCD-SNMP-MIB::versionIdent.0 = STRING: $Id: versioninfo.c,v 5.1.4.1 2004/02/04 11:25:20 slif Exp $
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Well, this version work fine here (RH 4 Update 2 and CentOS 4.3).

Can you try to put this in /etc/snmp/snmpd.conf :

Code: Select all

rocommunity nexus
disk /
Restart the SNMP agent, and try agin this query :

Code: Select all

$ snmpwalk -v 1 -c nexus localhost dsktable
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
geefour
Posts: 11
Joined: Wed Apr 19, 2006 11:54 am

Post by geefour »

That produces this....

Code: Select all

snmpwalk -v 1 -c nexus localhost dsktable
UCD-SNMP-MIB::dskIndex.1 = INTEGER: 1
UCD-SNMP-MIB::dskPath.1 = STRING: /
UCD-SNMP-MIB::dskDevice.1 = STRING: /dev/sda2
UCD-SNMP-MIB::dskMinimum.1 = INTEGER: 100000
UCD-SNMP-MIB::dskMinPercent.1 = INTEGER: -1
UCD-SNMP-MIB::dskTotal.1 = INTEGER: 40313996
UCD-SNMP-MIB::dskAvail.1 = INTEGER: 36763120
UCD-SNMP-MIB::dskUsed.1 = INTEGER: 1502992
UCD-SNMP-MIB::dskPercent.1 = INTEGER: 4
UCD-SNMP-MIB::dskPercentNode.1 = INTEGER: 1
UCD-SNMP-MIB::dskErrorFlag.1 = INTEGER: 0
UCD-SNMP-MIB::dskErrorMsg.1 = STRING: 
Certainly looks like an improvement!
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Sometimes "includeAllDisks" in snmpd.conf doesn't work.

You just have to add every filesystem in snmpd.conf, like this :

Code: Select all

disk /
disk /usr
disk /var
In Cacti, reload the "ucd/net - Get Monitored Partitions" data query, and you'll be able to graph your filesystems.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
geefour
Posts: 11
Joined: Wed Apr 19, 2006 11:54 am

Post by geefour »

Excellent, thanks so much. Its picking up the internal disks now, just need to get it working for fibre attached disk enclosure!
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests