OID for processor usage changes after a restart

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

Moderators: Developers, Moderators

Post Reply
jagbarcelo
Posts: 23
Joined: Mon Nov 21, 2005 4:28 am
Location: Spain

OID for processor usage changes after a restart

Post by jagbarcelo »

This is a simple one, but I cannot find a single word in cacti documentation about this subject.

OID for processor usage is .1.3.6.1.2.1.25.3.3.1.2.X where X is the id of the processor.

For whatever the reason (I don't know), this X is not fixed for my servers (I don't know if this happens to everyone). This number changes sometimes after a restart and the processor usage informatinon stops being monitored.

If I define the whole OID for the processor, i.e. .1.3.6.1.2.1.25.3.3.1.2.1 (note the last 1), it runs fine for some time, but after a restart of the server this 1 might have changed to another number, 5 for instance. When I note the graph is not showing correctly, I have to go and find the new value that should be used in the OID field of the datasource, and change it accordingly (to .1.3.6.1.2.1.25.3.3.1.2.5 in this case). This manual fix is not a nice/elegant solution to the problem.

I thought there would be a feature such as not defining this OID completely and leave it as .1.3.6.1.2.1.25.3.3.1.2.X so that cacti (or cactid) do a walk of that branch and retrieve the correct value (whatever X is). So I tried to define the OID of my datasource to .1.3.6.1.2.1.25.3.3.1.2.X and recieve the following error message in cacti.log:

Code: Select all

11/28/2005 11:20:29 AM - CACTID: Poller[0] Host[9] ERROR: Problems parsing Multi SNMP OID! (oid: .1.3.6.1.2.1.25.3.3.1.2.X)
Is there any documentation about defining multi snmp oids? Will multi snmp oids solve my problem or should I use other feature?

Regards.
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Can you please test with the attached version of Cactid and provide feedback. There was a corner case problem in the prior version that was causing issues if the number of OID's to retrieve was larger than the MAX OID GET size and the first round of OID's has "U" results.

TheWitness
Attachments
cactid086g-pre-beta-win32-multi-ss-process.zip
(552.53 KiB) Downloaded 125 times
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
jagbarcelo
Posts: 23
Joined: Mon Nov 21, 2005 4:28 am
Location: Spain

Post by jagbarcelo »

I'm now using the version of cactid you have just uploaded. I have also set poller looging level to DEBUG. Here are the results:

Code: Select all

11/28/2005 01:45:10 PM - CACTID: Poller[0] Host[9] DS[96] SCRIPT: c:/perl/bin/perl.exe C:/Inetpub/webs/www.my-domain.com/cacti/scripts/w32_query_logicaldisk.pl 10.0.3.2 get freespace,size C:, output: freespace:52020338688 size:80015491072
11/28/2005 01:45:10 PM - CACTID: Poller[0] Host[9] DEBUG: The POPEN returned the following File Descriptor 7
11/28/2005 01:45:14 PM - CACTID: Poller[0] Host[9] DS[97] SCRIPT: c:/perl/bin/perl.exe C:/Inetpub/webs/www.my-domain.com/cacti/scripts/w32_query_logicaldisk.pl 10.0.3.2 get freespace,size D:, output: freespace:45496889344 size:120031477760
11/28/2005 01:45:14 PM - CACTID: Poller[0] Host[9] DEBUG: The POPEN returned the following File Descriptor 7
11/28/2005 01:45:19 PM - CACTID: Poller[0] Host[9] DS[98] SCRIPT: c:/perl/bin/perl.exe C:/Inetpub/webs/www.my-domain.com/cacti/scripts/w32_query_logicaldisk.pl 10.0.3.2 get freespace,size E:, output: freespace:0 size:581152768
11/28/2005 01:45:19 PM - CACTID: Poller[0] Host[9] DEBUG: The POPEN returned the following File Descriptor 7
11/28/2005 01:45:23 PM - CACTID: Poller[0] Host[9] DS[99] WARNING: Result from SCRIPT not valid. Partial Result: ...
11/28/2005 01:45:23 PM - CACTID: Poller[0] Host[9] DS[99] SCRIPT: c:/perl/bin/perl.exe C:/Inetpub/webs/www.my-domain.com/cacti/scripts/w32_query_logicaldisk.pl 10.0.3.2 get freespace,size F:, output: U
11/28/2005 01:45:23 PM - CACTID: Poller[0] Host[9] ERROR: Problems parsing Multi SNMP OID! (oid: .1.3.6.1.2.1.25.3.3.1.2.X)
11/28/2005 01:45:23 PM - CACTID: Poller[0] Host[9] DS[116] SNMP: v1: 10.0.3.2, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, value: 346885533
11/28/2005 01:45:23 PM - CACTID: Poller[0] Host[9] DS[68] SNMP: v1: 10.0.3.2, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.3, value: 1438467708
11/28/2005 01:45:23 PM - CACTID: Poller[0] Host[9] DS[116] SNMP: v1: 10.0.3.2, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, value: 1307422054
11/28/2005 01:45:23 PM - CACTID: Poller[0] Host[9] DS[68] SNMP: v1: 10.0.3.2, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.3, value: 428397330
11/28/2005 01:45:23 PM - CACTID: Poller[0] Host[9] DS[65] SNMP: v1: 10.0.3.2, dsname: users, oid: .1.3.6.1.2.1.25.1.5.0, value: 7
11/28/2005 01:45:23 PM - CACTID: Poller[0] Host[9] DS[66] SNMP: v1: 10.0.3.2, dsname: proc, oid: .1.3.6.1.2.1.25.1.6.0, value: 50
11/28/2005 01:45:23 PM - CACTID: Poller[0] Host[9] DS[64] WARNING: Result from SNMP not valid. Partial Result: ...
11/28/2005 01:45:23 PM - CACTID: Poller[0] Host[9] DS[64] SNMP: v1: 10.0.3.2, dsname: cpu, oid: .1.3.6.1.2.1.25.3.3.1.2.X, value: U
11/28/2005 01:45:23 PM - CACTID: Poller[0] Host[9] DS[79] SNMP: v1: 10.0.3.2, dsname: ups_capacity, oid: .1.3.6.1.4.1.318.1.1.1.2.2.1.0, value: 100
11/28/2005 01:45:23 PM - CACTID: Poller[0] Host[9] DS[77] SNMP: v1: 10.0.3.2, dsname: temp, oid: .1.3.6.1.4.1.318.1.1.1.2.2.2.0, value: 23
11/28/2005 01:45:23 PM - CACTID: Poller[0] Host[9] DS[78] SNMP: v1: 10.0.3.2, dsname: ups_load, oid: .1.3.6.1.4.1.318.1.1.1.4.2.3.0, value: 4
Data set 64 is defined for host 10.0.3.2 and OID .1.3.6.1.2.1.25.3.3.1.2.X
Still the same behaviour. Should I define OID to a different value? What kind of feedback do u need?

Thanks and regards.
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

'.X' can never be valid. Should always be numeric.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests