<Solved> SNMPGET not seeing MIB hrProcessorLoad Object
Moderators: Developers, Moderators
<Solved> SNMPGET not seeing MIB hrProcessorLoad Object
So.. I am back again with another stumper for me..
This time I am trying to add another set of graphs to show CPU usage..
hrProcessorLoad = 1.3.6.1.2.1.25.3.3.1.2
I have spent all of today trying to get this one..
I have discovered when running snmpwalk
I get the following, which is great..
C:\>snmpwalk -c public -v 1 10.0.1.20 1.3.6.1.2.1.25.3.3.1.2
HOST-RESOURCES-MIB::hrProcessorLoad.2 = INTEGER: 15
then I also found that if I run snmpgetnext
C:\>snmpgetnext -c public -v 1 10.0.1.20 1.3.6.1.2.1.25.3.3.1.2
HOST-RESOURCES-MIB::hrProcessorLoad.2 = INTEGER: 12
However, when I run snmpget
C:\>snmpget -c public -v 1 10.0.1.20 1.3.6.1.2.1.25.3.3.1.2
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: HOST-RESOURCES-MIB::hrProcessorLoad
now I have opened up the HOST-RESOURCES-MIB file and it clearly shows..
hrProcessorLoad OBJECT-TYPE
SYNTAX Integer32 (0..100)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The average, over the last minute, of the percentage
of time that this processor was not idle.
Implementations may approximate this one minute
smoothing period if necessary."
::= { hrProcessorEntry 2 }
I have even run the following SET command
set MIBDIRS=C:\net-snmp\share\snmp\mibs
one more thing... my snmpd.conf is very simple and basic, no frills..
with only one line
rocommunity public
I am not even worried about graphing in Cacti yet until I get this sorted out..anything to point me in the right direction would be great
Thanks,
Sam
This time I am trying to add another set of graphs to show CPU usage..
hrProcessorLoad = 1.3.6.1.2.1.25.3.3.1.2
I have spent all of today trying to get this one..
I have discovered when running snmpwalk
I get the following, which is great..
C:\>snmpwalk -c public -v 1 10.0.1.20 1.3.6.1.2.1.25.3.3.1.2
HOST-RESOURCES-MIB::hrProcessorLoad.2 = INTEGER: 15
then I also found that if I run snmpgetnext
C:\>snmpgetnext -c public -v 1 10.0.1.20 1.3.6.1.2.1.25.3.3.1.2
HOST-RESOURCES-MIB::hrProcessorLoad.2 = INTEGER: 12
However, when I run snmpget
C:\>snmpget -c public -v 1 10.0.1.20 1.3.6.1.2.1.25.3.3.1.2
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: HOST-RESOURCES-MIB::hrProcessorLoad
now I have opened up the HOST-RESOURCES-MIB file and it clearly shows..
hrProcessorLoad OBJECT-TYPE
SYNTAX Integer32 (0..100)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The average, over the last minute, of the percentage
of time that this processor was not idle.
Implementations may approximate this one minute
smoothing period if necessary."
::= { hrProcessorEntry 2 }
I have even run the following SET command
set MIBDIRS=C:\net-snmp\share\snmp\mibs
one more thing... my snmpd.conf is very simple and basic, no frills..
with only one line
rocommunity public
I am not even worried about graphing in Cacti yet until I get this sorted out..anything to point me in the right direction would be great
Thanks,
Sam
Last edited by swinomish on Wed Apr 22, 2009 4:28 pm, edited 1 time in total.
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
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
Several different things...
1) you snmpget the wrong OID. The correct one is 1.3.6.1.2.1.25.3.3.1.2.2 for you, which was clearly shown in the snmpwalk. Add in the -On switch to see the pure OID number.
2) Since you're using the Windows snmp agent, the mib files it/windows uses are precompiled (mibcc.exe). The net-snmp mib files have no bearing on it.
1) you snmpget the wrong OID. The correct one is 1.3.6.1.2.1.25.3.3.1.2.2 for you, which was clearly shown in the snmpwalk. Add in the -On switch to see the pure OID number.
2) Since you're using the Windows snmp agent, the mib files it/windows uses are precompiled (mibcc.exe). The net-snmp mib files have no bearing on it.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
so...
Since the Windows Agent MIBCC.exe is already set and locked there is no way for me to get a CPU Usage graph through MIB?
I have also tried to use all the other CPU type graphs and get either NaNs or no RRD files created..
I have even tried your SNMP - Running Processes template, which I really like because it includes CPU & Memory usage...and then using the Aggregate Plugin to total them up.
I wind up with over 50 graphs and NaN in the Aggregate preview, and no RRD files for the aggregate graphs when drilling down from the preview..
My traffic graphs and a Process graphs are working perfectly on all other devices..
I just can't seem to get the CPU usage stuff to work..
Since the Windows Agent MIBCC.exe is already set and locked there is no way for me to get a CPU Usage graph through MIB?
I have also tried to use all the other CPU type graphs and get either NaNs or no RRD files created..
I have even tried your SNMP - Running Processes template, which I really like because it includes CPU & Memory usage...and then using the Aggregate Plugin to total them up.
I wind up with over 50 graphs and NaN in the Aggregate preview, and no RRD files for the aggregate graphs when drilling down from the preview..
My traffic graphs and a Process graphs are working perfectly on all other devices..
I just can't seem to get the CPU usage stuff to work..
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
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
I found this via google, gonna give it a try..
Compiling a New or Updated MIB File by Using Mibcc.exe
http://technet.microsoft.com/en-us/libr ... 83142.aspx
Compiling a New or Updated MIB File by Using Mibcc.exe
http://technet.microsoft.com/en-us/libr ... 83142.aspx
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
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
Found a good alternative right here in the Cacti Forums
pure SNMP Replacement for SNMP - Get Processor Information
http://forums.cacti.net/about27099.html
Posted by Gandalf
if I could add Memory Usage to this it.. it would be a perfect world...
But this will do for now..
pure SNMP Replacement for SNMP - Get Processor Information
http://forums.cacti.net/about27099.html
Posted by Gandalf
if I could add Memory Usage to this it.. it would be a perfect world...
But this will do for now..
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
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
I don't think you really understand how SNMP, OIDs and MIBs work. Should hit up the various wiki pages for them.
Post a verbose query of 'SNMP - Get Processor Information' for this problem device in Cacti. Do other Associated Data Queries for this problem device work?
Post a verbose query of 'SNMP - Get Processor Information' for this problem device in Cacti. Do other Associated Data Queries for this problem device work?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
you are correct, i don't know how they work all work..
I do know I found a great resources in Cacti..
It took me about me about 2 days to put together all the pieces to get Cacti to Run..everything i have learned so far about any of this is thanks to the forums..when I started I did not even know what a OID or a MIB was..
thanks to the forums here, and the install guides I got the core components working all on my own..with out pestering anyone
now that I am digging deeper, I have no clue about XML scripting, creating queries..etc...
I would not have even know how to pull a verbose query like you have asked for with out these forums..
SNMP traffic and MIB Process work just fine on this device and all other devices..
NONE of the CPU templates work on this device or any other devices.., except for the one I found from Gandalf
so.. here is the query you asked fo
+ Running data query [9].
+ Found type = '6 '[script query].
+ Found data query XML file at 'C:/Apache/htdocs/Cacti/resource/script_server/host_cpu.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'c:\progra~1\php\php.exe -q C:\Apache\htdocs\Cacti\scripts\ss_host_cpu.php 10.0.1.20 3 1:161:500:1:10:public:::MD5::DES: index'
+ Executing script query 'c:\progra~1\php\php.exe -q C:\Apache\htdocs\Cacti\scripts\ss_host_cpu.php 10.0.1.20 3 1:161:500:1:10:public:::MD5::DES: query index'
+ Found data query XML file at 'C:/Apache/htdocs/Cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at 'C:/Apache/htdocs/Cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at 'C:/Apache/htdocs/Cacti/resource/script_server/host_cpu.xml'
I do know I found a great resources in Cacti..
It took me about me about 2 days to put together all the pieces to get Cacti to Run..everything i have learned so far about any of this is thanks to the forums..when I started I did not even know what a OID or a MIB was..
thanks to the forums here, and the install guides I got the core components working all on my own..with out pestering anyone
now that I am digging deeper, I have no clue about XML scripting, creating queries..etc...
I would not have even know how to pull a verbose query like you have asked for with out these forums..
SNMP traffic and MIB Process work just fine on this device and all other devices..
NONE of the CPU templates work on this device or any other devices.., except for the one I found from Gandalf
so.. here is the query you asked fo
+ Running data query [9].
+ Found type = '6 '[script query].
+ Found data query XML file at 'C:/Apache/htdocs/Cacti/resource/script_server/host_cpu.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'c:\progra~1\php\php.exe -q C:\Apache\htdocs\Cacti\scripts\ss_host_cpu.php 10.0.1.20 3 1:161:500:1:10:public:::MD5::DES: index'
+ Executing script query 'c:\progra~1\php\php.exe -q C:\Apache\htdocs\Cacti\scripts\ss_host_cpu.php 10.0.1.20 3 1:161:500:1:10:public:::MD5::DES: query index'
+ Found data query XML file at 'C:/Apache/htdocs/Cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at 'C:/Apache/htdocs/Cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at 'C:/Apache/htdocs/Cacti/resource/script_server/host_cpu.xml'
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
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
Success...
got what I wanted for now..
see attched image
using the Aggregate Plugin and Gandalf's Modified SNMP - hrProcessorLoad Template..
thanks for bearing with me, as I hack and claw my way through the learning process.
Now I just sit back and let Cacti collect & create a base line of information...
got what I wanted for now..
see attched image
using the Aggregate Plugin and Gandalf's Modified SNMP - hrProcessorLoad Template..
thanks for bearing with me, as I hack and claw my way through the learning process.
Now I just sit back and let Cacti collect & create a base line of information...
- Attachments
-
- CPU Usage & Traffic in a snapshot view..
- Cacti - CPU & Traffic.JPG (90.08 KiB) Viewed 7993 times
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
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
Who is online
Users browsing this forum: No registered users and 0 guests