How to monitor CPU and Memory Usage using Net-SNMP on Window

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
jehan
Posts: 3
Joined: Wed May 23, 2012 7:02 am

How to monitor CPU and Memory Usage using Net-SNMP on Window

Post by jehan »

Dear all

I am using Windows server 2003
net-snmp-5.6.1.1-1.x86.exe
ActivePerl-5.14.2.1402-MSWin32-x86-295342.msi

I want to monitor CPU and Memory Usage for that
I have installed and configured net-snmp on my local system, but when I run following commands then getting no output

snmpwalk -v1 -cpublic localhost ucdavis.memory
snmpwalk -v1 -cpublic localhost UCD-SNMP-MIB:::ssCpuUser.0


and when I run following then getting only following response/output
c:/snmp>snmpwalk -v1 -cpublic localhost UCD-SNMP-MIB::ucdavis
UCD-SNMP-MIB::laIndex.1 = INTEGER: 1
UCD-SNMP-MIB::laIndex.2 = INTEGER: 2
UCD-SNMP-MIB::laIndex.3 = INTEGER: 3
UCD-SNMP-MIB::laNames.1 = STRING: Load-1
UCD-SNMP-MIB::laNames.2 = STRING: Load-5
UCD-SNMP-MIB::laNames.3 = STRING: Load-15
UCD-DEMO-MIB::ucdDemoResetKeys.0 = INTEGER: 0
UCD-DEMO-MIB::ucdDemoPublicString.0 = ""
UCD-DEMO-MIB::ucdDemoUserList.0 = ""
UCD-DEMO-MIB::ucdDemoPassphrase.0 = ""
UCD-SNMP-MIB::versionIndex.0 = INTEGER: 1
UCD-SNMP-MIB::versionTag.0 = STRING: 5.6.1.1
UCD-SNMP-MIB::versionDate.0 = STRING: $Date: 2010-01-24 03:41:03 -0800 (Sun, 24
Jan 2010) $
UCD-SNMP-MIB::versionCDate.0 = STRING: Wed May 23 16:48:17 2012
UCD-SNMP-MIB::versionIdent.0 = STRING: $Id: versioninfo.c 18044 2010-01-24 11:41
:03Z bvassche $
UCD-SNMP-MIB::versionConfigureOptions.0 = STRING:
UCD-SNMP-MIB::versionClearCache.0 = INTEGER: 0
UCD-SNMP-MIB::versionUpdateConfig.0 = INTEGER: 0
UCD-SNMP-MIB::versionRestartAgent.0 = INTEGER: 0
UCD-SNMP-MIB::versionSavePersistentData.0 = INTEGER: 0
UCD-SNMP-MIB::versionDoDebugging.0 = INTEGER: 0
UCD-SNMP-MIB::snmperrIndex.0 = INTEGER: 0
UCD-SNMP-MIB::snmperrNames.0 = STRING: snmp
UCD-SNMP-MIB::snmperrErrorFlag.0 = INTEGER: noError(0)
UCD-SNMP-MIB::snmperrErrMessage.0 = STRING:
UCD-SNMP-MIB::ucdavis.254.1.0 = STRING: "life the universe and everything"
UCD-SNMP-MIB::ucdavis.254.2.1.0 = INTEGER: 42
UCD-SNMP-MIB::ucdavis.254.2.2.0 = OID: SNMPv2-SMI::private.42.42.42
UCD-SNMP-MIB::ucdavis.254.3.0 = Timeticks: (363136200) 42 days, 0:42:42.00
UCD-SNMP-MIB::ucdavis.254.4.0 = IpAddress: 127.0.0.1
UCD-SNMP-MIB::ucdavis.254.5.0 = Counter32: 42
UCD-SNMP-MIB::ucdavis.254.6.0 = Gauge32: 42
UCD-SNMP-MIB::ucdavis.254.7.0 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.254.8.0 = INTEGER: 0

Any help will be appreciate.

Thanks
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: How to monitor CPU and Memory Usage using Net-SNMP on Wi

Post by BSOD2600 »

Did you already try the cpu and memory windows templates which came with Cacti?
I strongly suggest you stick with the windows snmp agent instead of net-snmp too.
jehan
Posts: 3
Joined: Wed May 23, 2012 7:02 am

Re: How to monitor CPU and Memory Usage using Net-SNMP on Wi

Post by jehan »

Yes! I tried with window snmp agent,
while quering any UCD-SNMP-MIB i am getting empty response, only "End of MIB" is printing.

e.g.,
D:\bin>snmpwalk -v1 -cpublic localhost UCD-SNMP-MIB::ucdavis
End of MIB
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: How to monitor CPU and Memory Usage using Net-SNMP on Wi

Post by BSOD2600 »

jehan wrote:Yes! I tried with window snmp agent,
And you've decided to use the net-snmp snmp agent because?
jehan
Posts: 3
Joined: Wed May 23, 2012 7:02 am

Re: How to monitor CPU and Memory Usage using Net-SNMP on Wi

Post by jehan »

It is because with MS window SNMPT agent when I run command
snmpwalk -v1 -cpublic localhost UCD-SNMP-MIB::ucdavis
then I am getting no output except one line "End of MIB"

and when I run same command with net-snmp agent then getting following output
c:/snmp>snmpwalk -v1 -cpublic localhost UCD-SNMP-MIB::ucdavis
UCD-SNMP-MIB::laIndex.1 = INTEGER: 1
UCD-SNMP-MIB::laIndex.2 = INTEGER: 2
UCD-SNMP-MIB::laIndex.3 = INTEGER: 3
UCD-SNMP-MIB::laNames.1 = STRING: Load-1
UCD-SNMP-MIB::laNames.2 = STRING: Load-5
UCD-SNMP-MIB::laNames.3 = STRING: Load-15
UCD-DEMO-MIB::ucdDemoResetKeys.0 = INTEGER: 0
UCD-DEMO-MIB::ucdDemoPublicString.0 = ""
UCD-DEMO-MIB::ucdDemoUserList.0 = ""
UCD-DEMO-MIB::ucdDemoPassphrase.0 = ""
UCD-SNMP-MIB::versionIndex.0 = INTEGER: 1
UCD-SNMP-MIB::versionTag.0 = STRING: 5.6.1.1
UCD-SNMP-MIB::versionDate.0 = STRING: $Date: 2010-01-24 03:41:03 -0800 (Sun, 24
Jan 2010) $
UCD-SNMP-MIB::versionCDate.0 = STRING: Wed May 23 16:48:17 2012
UCD-SNMP-MIB::versionIdent.0 = STRING: $Id: versioninfo.c 18044 2010-01-24 11:41
:03Z bvassche $
UCD-SNMP-MIB::versionConfigureOptions.0 = STRING:
UCD-SNMP-MIB::versionClearCache.0 = INTEGER: 0
UCD-SNMP-MIB::versionUpdateConfig.0 = INTEGER: 0
UCD-SNMP-MIB::versionRestartAgent.0 = INTEGER: 0
UCD-SNMP-MIB::versionSavePersistentData.0 = INTEGER: 0
UCD-SNMP-MIB::versionDoDebugging.0 = INTEGER: 0
UCD-SNMP-MIB::snmperrIndex.0 = INTEGER: 0
UCD-SNMP-MIB::snmperrNames.0 = STRING: snmp
UCD-SNMP-MIB::snmperrErrorFlag.0 = INTEGER: noError(0)
UCD-SNMP-MIB::snmperrErrMessage.0 = STRING:
UCD-SNMP-MIB::ucdavis.254.1.0 = STRING: "life the universe and everything"
UCD-SNMP-MIB::ucdavis.254.2.1.0 = INTEGER: 42
UCD-SNMP-MIB::ucdavis.254.2.2.0 = OID: SNMPv2-SMI::private.42.42.42
UCD-SNMP-MIB::ucdavis.254.3.0 = Timeticks: (363136200) 42 days, 0:42:42.00
UCD-SNMP-MIB::ucdavis.254.4.0 = IpAddress: 127.0.0.1
UCD-SNMP-MIB::ucdavis.254.5.0 = Counter32: 42
UCD-SNMP-MIB::ucdavis.254.6.0 = Gauge32: 42
UCD-SNMP-MIB::ucdavis.254.7.0 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.254.8.0 = INTEGER: 0

So I though that may be window snmp agent may not be supporting ucdavis tree

even I tried command
C:\Users\admin>snmpget -M D:\usr\share\snmp\mibs localhost memAvailReal -c community
No log handling enabled - using stderr logging
snmpget: Timeout (Sub-id not found: (top) -> community)
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: How to monitor CPU and Memory Usage using Net-SNMP on Wi

Post by BSOD2600 »

I'm not sure why you keep trying ucdavis stuff...

Back to the Windows templates in Cacti for cpu and memory. Post the verbose query output.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest