pure SNMP Replacement for SNMP - Get Processor Information

Templates, scripts for templates, scripts and requests for templates.

Moderators: Moderators, Developers

Author
Message
User avatar
gandalf
Developer
Posts: 22375
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

#16 Post by gandalf » Mon May 19, 2008 8:43 am

Wow, it's not supposed to work this way.
Please scratch the Graph Template from the list of Associated Graph Template for that host. Instead, please add the Data Query!
Reinhard

Kro
Posts: 38
Joined: Thu Mar 27, 2008 11:39 am

#17 Post by Kro » Mon May 19, 2008 2:56 pm

Much better :o

Thanks

jordanr
Posts: 5
Joined: Tue May 13, 2008 1:17 am

#18 Post by jordanr » Mon May 19, 2008 9:47 pm

Hi, what version of net-snmp would I need to have installed for this graph to work? I'm currently running 5.2.3-7 but the first snmpwalk command that was talked about returns no data.

softex888
Posts: 7
Joined: Thu Feb 07, 2008 5:23 pm
Contact:

SNMP data

#19 Post by softex888 » Thu May 22, 2008 11:33 am

Hi I have the following cnmp installed on my RHEL ES4 server
net-snmp-devel-5.1.2-11.el4_6.11.2
php-snmp-4.3.9-3.22.9
net-snmp-libs-5.1.2-11.el4_6.11.2
net-snmp-perl-5.1.2-11.el4_6.11.2
net-snmp-5.1.2-11.el4_6.11.2
net-snmp-utils-5.1.2-11.el4_6.11.2

When i do snmpwalk -c public -v 1 -On localhost
am getting the below result and can you plz tell me which value should i use to get the dick space data or process data

.1.3.6.1.2.1.1.1.0 = STRING: Linux itevmd3 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:32:02 EDT 2006 x86_64
.1.3.6.1.2.1.1.2.0 = OID: .1.3.6.1.4.1.8072.3.2.10
.1.3.6.1.2.1.1.3.0 = Timeticks: (177539) 0:29:35.39
.1.3.6.1.2.1.1.4.0 = STRING: Root <[email protected]> (configure /etc/snmp/snmp.local.conf)
.1.3.6.1.2.1.1.5.0 = STRING: itevmd3
.1.3.6.1.2.1.1.6.0 = STRING: Unknown (edit /etc/snmp/snmpd.conf)
.1.3.6.1.2.1.1.8.0 = Timeticks: (1) 0:00:00.01
.1.3.6.1.2.1.1.9.1.2.1 = OID: .1.3.6.1.2.1.31
.1.3.6.1.2.1.1.9.1.2.2 = OID: .1.3.6.1.6.3.1
.1.3.6.1.2.1.1.9.1.2.3 = OID: .1.3.6.1.2.1.49
.1.3.6.1.2.1.1.9.1.2.4 = OID: .1.3.6.1.2.1.4
.1.3.6.1.2.1.1.9.1.2.5 = OID: .1.3.6.1.2.1.50
.1.3.6.1.2.1.1.9.1.2.6 = OID: .1.3.6.1.6.3.16.2.2.1
.1.3.6.1.2.1.1.9.1.2.7 = OID: .1.3.6.1.6.3.10.3.1.1
.1.3.6.1.2.1.1.9.1.2.8 = OID: .1.3.6.1.6.3.11.3.1.1
.1.3.6.1.2.1.1.9.1.2.9 = OID: .1.3.6.1.6.3.15.2.1.1
.1.3.6.1.2.1.1.9.1.3.1 = STRING: The MIB module to describe generic objects for network interface sub-layers
.1.3.6.1.2.1.1.9.1.3.2 = STRING: The MIB module for SNMPv2 entities
.1.3.6.1.2.1.1.9.1.3.3 = STRING: The MIB module for managing TCP implementations
.1.3.6.1.2.1.1.9.1.3.4 = STRING: The MIB module for managing IP and ICMP implementations
.1.3.6.1.2.1.1.9.1.3.5 = STRING: The MIB module for managing UDP implementations
.1.3.6.1.2.1.1.9.1.3.6 = STRING: View-based Access Control Model for SNMP.
.1.3.6.1.2.1.1.9.1.3.7 = STRING: The SNMP Management Architecture MIB.
.1.3.6.1.2.1.1.9.1.3.8 = STRING: The MIB for Message Processing and Dispatching.
.1.3.6.1.2.1.1.9.1.3.9 = STRING: The management information definitions for the SNMP User-based Security Model.
.1.3.6.1.2.1.1.9.1.4.1 = Timeticks: (0) 0:00:00.00
.1.3.6.1.2.1.1.9.1.4.2 = Timeticks: (0) 0:00:00.00
.1.3.6.1.2.1.1.9.1.4.3 = Timeticks: (0) 0:00:00.00
.1.3.6.1.2.1.1.9.1.4.4 = Timeticks: (0) 0:00:00.00
.1.3.6.1.2.1.1.9.1.4.5 = Timeticks: (0) 0:00:00.00
.1.3.6.1.2.1.1.9.1.4.6 = Timeticks: (0) 0:00:00.00
.1.3.6.1.2.1.1.9.1.4.7 = Timeticks: (1) 0:00:00.01
.1.3.6.1.2.1.1.9.1.4.8 = Timeticks: (1) 0:00:00.01
.1.3.6.1.2.1.1.9.1.4.9 = Timeticks: (1) 0:00:00.01
.1.3.6.1.2.1.25.1.1.0 = Timeticks: (4235888) 11:45:58.88
End of MIB

User avatar
mokeybrains
Posts: 42
Joined: Mon Aug 22, 2005 9:39 pm
Location: San Francisco, CA
Contact:

only one CPU show load -- what's up?

#20 Post by mokeybrains » Sat Jun 14, 2008 12:24 am

Code: Select all

# snmpwalk -c public -v2c example .1.3.6.1.2.1.25.3.3
SNMPv2-SMI::mib-2.25.3.3.1.1.768 = OID: SNMPv2-SMI::zeroDotZero
SNMPv2-SMI::mib-2.25.3.3.1.1.769 = OID: SNMPv2-SMI::zeroDotZero
SNMPv2-SMI::mib-2.25.3.3.1.2.768 = INTEGER: 18

# snmpwalk -c public -v2c example .1.3.6.1.2.1.25.3 | grep Core
SNMPv2-SMI::mib-2.25.3.2.1.3.768 = STRING: "Intel(R) Core(TM)2 Duo CPU     E8300  @ 2.83GHz"
SNMPv2-SMI::mib-2.25.3.2.1.3.769 = STRING: "Intel(R) Core(TM)2 Duo CPU     E8300  @ 2.83GHz"
Why don't I have another INTEGER line for the other core? Is this a 'per CPU' or 'per core' query? I created two graphs, one shows '20' and the other nothing. Also, is this number a percentage? Unix 'load' is not a percentage...
Attachments
load-ok.png
What is the Y axis?
load-ok.png (17.61 KiB) Viewed 9006 times

Pulsar
Posts: 10
Joined: Wed Aug 06, 2008 3:49 pm

#21 Post by Pulsar » Thu Aug 07, 2008 9:32 am

What about this ?

Code: Select all

HOST-RESOURCES-MIB::hrProcessorFrwID.768 = OID: SNMPv2-SMI::zeroDotZero
I'm running CentOS 5.2 :(

hackerkatt
Posts: 24
Joined: Tue Sep 30, 2008 10:23 pm

#22 Post by hackerkatt » Sun Oct 12, 2008 6:25 pm

This is interesting. Even more so because I want to pull in text information from a script or SNMP and place it on the Legend such as you've done here gandalf. I posted a question to this affect http://forums.cacti.net/about29341.html&highlight= with no result. I see that you're getting the text info from your "query_" macro. Can I get this info in a similar fashion from a Script/Query? Is there any documentation on this and the available macros? Thanks! Appreciate your help.

HK

User avatar
gandalf
Developer
Posts: 22375
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

#23 Post by gandalf » Mon Oct 13, 2008 10:17 am

Sure, please see http://docs.cacti.net/?q=node/225
Reinhard

swinomish
Posts: 22
Joined: Wed Oct 01, 2008 12:58 pm

#24 Post by swinomish » Wed Apr 22, 2009 11:11 am

first off I know this is a really old thread...

But I love this template, i could not get any other method to work for pulling CPU loads..

was wondering if there are any updates to it planned??

More cosemetic is what I am looking for..

I would like to force the graph to show 0-100%, the full range if possible.. that way I can see the high and low spikes at a glance

Is it possible to then add a % symbol on the Y Axis (Load) just for looks really..

Thanks for a great template.. it works great on 0.8.7d
Operating System: 2003 Standard Edition SP2
Webserver: Apache 2.2.6
Cacti: 0.8.7d
Plugin Architecture: cacti-plugin-0.8.7d-PA-v2.4
Installed Plugin: Aggregate-070B2
Installed Plugin: Settings - 0.6
Installed Plugin: Thold - 0.41
MySQL: 5.0.45
PHP: 5.2.4
NET-SNMP: 5.4.2.1-1.win32
RRDTool Win32: 1.2.27-1
phpMyAdmin: 2.11.1

Onkel_Tom
Posts: 12
Joined: Sat Apr 23, 2005 7:48 pm

Re: pure SNMP Replacement for SNMP - Get Processor Informati

#25 Post by Onkel_Tom » Wed Aug 15, 2012 10:55 am

Hi all,
i tried today to install this version but I'm missing a instruction to implement it right.
I changed the data query for "SNMP-Get Processor Information" but still no output.

output from snmpwalk -v2c -c xxx localhost .1.3.6.1.2.1.25.3.3.1.2

Code: Select all

HOST-RESOURCES-MIB::hrProcessorLoad.768 = INTEGER: 2
HOST-RESOURCES-MIB::hrProcessorLoad.769 = INTEGER: 1
HOST-RESOURCES-MIB::hrProcessorLoad.770 = INTEGER: 1
HOST-RESOURCES-MIB::hrProcessorLoad.771 = INTEGER: 1
HOST-RESOURCES-MIB::hrProcessorLoad.772 = INTEGER: 2
HOST-RESOURCES-MIB::hrProcessorLoad.773 = INTEGER: 1
HOST-RESOURCES-MIB::hrProcessorLoad.774 = INTEGER: 1
HOST-RESOURCES-MIB::hrProcessorLoad.775 = INTEGER: 1
but still no data on the graphs.
I think I still missed something in the config...

Post Reply