Noob help required - ucd/net MEM Usage blank for RHEL3 hosts

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

Moderators: Developers, Moderators

Post Reply
Sangreal
Posts: 5
Joined: Sun Nov 19, 2006 4:04 pm

Noob help required - ucd/net MEM Usage blank for RHEL3 hosts

Post by Sangreal »

Hello,

Ive added 3-4 of our RHEL4 hosts and everything is graphing well, same for our 2 RHEL3 hosts but I cannot seem to get the Memory Usage working on the RHEL 3 hosts.

Both are running with the following RPM's

net-snmp-5.0.9-2.30E.20.i386
net-snmp-devel-5.0.9-2.30E.20.i386
net-snmp-libs-5.0.9-2.30E.20.i386
net-snmp-perl-5.0.9-2.30E.20.i386
net-snmp-utils-5.0.9-2.30E.20.i386

up2date on the servers doesnt give us any new RPM selections for RHEL3.

Any help would be greatly appreciated to allow us to get the Memory Usage information we require.

TIA
Mike
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

can you try that :

Code: Select all

$ snmpwalk -v 1 -c public xx.xx.xx.xx memory
UCD-SNMP-MIB::memIndex.0 = INTEGER: 0
UCD-SNMP-MIB::memErrorName.0 = STRING: swap
UCD-SNMP-MIB::memTotalSwap.0 = INTEGER: 2044072
UCD-SNMP-MIB::memAvailSwap.0 = INTEGER: 2044072
UCD-SNMP-MIB::memTotalReal.0 = INTEGER: 1025376
UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 409236
UCD-SNMP-MIB::memTotalFree.0 = INTEGER: 2453308
UCD-SNMP-MIB::memMinimumSwap.0 = INTEGER: 16000
UCD-SNMP-MIB::memShared.0 = INTEGER: 0
UCD-SNMP-MIB::memBuffer.0 = INTEGER: 134544
UCD-SNMP-MIB::memCached.0 = INTEGER: 225636
UCD-SNMP-MIB::memSwapError.0 = INTEGER: 0
UCD-SNMP-MIB::memSwapErrorMsg.0 = STRING:
This is on a RedHat 3 Update 8, with Net-SNMP 5.0.9-2.30E.20 packages.
[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]
Sangreal
Posts: 5
Joined: Sun Nov 19, 2006 4:04 pm

Post by Sangreal »

Thanks for responding, the output provides the following:

UCD-SNMP-MIB::memIndex.0 = INTEGER: 0
UCD-SNMP-MIB::memErrorName.0 = STRING: swap
UCD-SNMP-MIB::memTotalSwap.0 = INTEGER: 112
UCD-SNMP-MIB::memAvailSwap.0 = INTEGER: 0
UCD-SNMP-MIB::memTotalReal.0 = INTEGER: 2027
UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 0
UCD-SNMP-MIB::memTotalFree.0 = INTEGER: 0
UCD-SNMP-MIB::memMinimumSwap.0 = INTEGER: 16000
UCD-SNMP-MIB::memShared.0 = INTEGER: 0
UCD-SNMP-MIB::memBuffer.0 = INTEGER: 0
UCD-SNMP-MIB::memCached.0 = INTEGER: 0
UCD-SNMP-MIB::memSwapError.0 = INTEGER: 1
UCD-SNMP-MIB::memSwapErrorMsg.0 = STRING: Running out of swap space (0)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please make sure to use the ucd/net based host template to get the snmp based memory templates instead of the script based (when using local linux machine as a host template)
Reinhard
Sangreal
Posts: 5
Joined: Sun Nov 19, 2006 4:04 pm

Post by Sangreal »

gandalf wrote:Please make sure to use the ucd/net based host template to get the snmp based memory templates instead of the script based (when using local linux machine as a host template)
Reinhard
I am using the ucd/net templates gandalf, its not outputting any info to graph on the two RHEL 3 boxes.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please follow my "NaN Debugging" Howto to get more insight. See my signature
Reinhard
Sangreal
Posts: 5
Joined: Sun Nov 19, 2006 4:04 pm

Post by Sangreal »

Ive followed that to no avail.

It also doesnt display nan, just all values for these 2 hosts are Zero's for mem free, buffers and cache memory using the ucd/net memory template
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

What is shown, when you manually snmpwalk those OIDs found in the Data Template
Reinhard
Sangreal
Posts: 5
Joined: Sun Nov 19, 2006 4:04 pm

Post by Sangreal »

.1.3.6.1.4.1.2021.4.14.0

UCD-SNMP-MIB::memBuffer.0 = INTEGER: 0

.1.3.6.1.4.1.2021.4.15.0

UCD-SNMP-MIB::memCached.0 = INTEGER: 0

.1.3.6.1.4.1.2021.4.6.0

UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 0
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

So, if they are zero, cacti will not graph anything different. This may be a problem with the snmpd of that target host not reporting correct data.
Reinhard
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Certainly a bug in Net-SNMP, but sadly 5.0.9-2.30E.20 is the latest update for RedHat 3 :cry:
[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]
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest