Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


pure SNMP Replacement for SNMP - Get Processor Information
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12295
Location: Muenster, Germany

PostPosted: Mon May 19, 2008 8:43 am    Post subject: Reply with quote

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
Back to top
Kro



Joined: 27 Mar 2008
Posts: 37

PostPosted: Mon May 19, 2008 2:56 pm    Post subject: Reply with quote

Much better

Thanks
Back to top
jordanr



Joined: 13 May 2008
Posts: 5

PostPosted: Mon May 19, 2008 9:47 pm    Post subject: Reply with quote

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.
Back to top
softex888



Joined: 07 Feb 2008
Posts: 7

PostPosted: Thu May 22, 2008 11:33 am    Post subject: SNMP data Reply with quote

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 <root@localhost> (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
Back to top
mokeybrains



Joined: 22 Aug 2005
Posts: 38
Location: San Francisco, CA

PostPosted: Sat Jun 14, 2008 12:24 am    Post subject: only one CPU show load -- what's up? Reply with quote

Code:
# 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...



load-ok.png
 Description:
What is the Y axis?
 Filesize:  17.61 KB
 Viewed:  2329 Time(s)

load-ok.png


Back to top
Pulsar



Joined: 06 Aug 2008
Posts: 10

PostPosted: Thu Aug 07, 2008 9:32 am    Post subject: Reply with quote

What about this ?

Code:
HOST-RESOURCES-MIB::hrProcessorFrwID.768 = OID: SNMPv2-SMI::zeroDotZero


I'm running CentOS 5.2
Back to top
hackerkatt



Joined: 30 Sep 2008
Posts: 19

PostPosted: Sun Oct 12, 2008 6:25 pm    Post subject: Reply with quote

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
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12295
Location: Muenster, Germany

PostPosted: Mon Oct 13, 2008 10:17 am    Post subject: Reply with quote

Sure, please see http://docs.cacti.net/?q=node/225
Reinhard
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group