My huge problem:Warning: Invalid object identifier: .1.3.6.1

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
lostbody

My huge problem:Warning: Invalid object identifier: .1.3.6.1

Post by lostbody »

I am trying to set up cacti for 1 1/2 week. I've done it at my home, but i am not able in my company, althougth I query the same devices(i can reach them also from my house and company). I've installed all the required packages but always when i try to add an snmp interface i get the following message: "Warning: Invalid object identifier: .1.3.6.1.2.1.2.2.1.2.interfaces.ifTable.ifEntry.ifIndex.2 = 2 in /var/www/html/cacti/include/snmp_functions.php on line 35" lot of times for different OIDs and
"Warning: Cannot add header information - headers already sent by (output started at /var/www/html/cacti/include/snmp_functions.php:35) in /var/www/html/cacti/snmp.php on line 55"
The specification of the system and some parts of the configuration is as follows:

PHP Binary Path: /usr/bin/php
rdtool Binary Path: /usr/local/rrdtool-1.0.35/bin/rrdtool
snmpget Path: /usr/bin/snmpget
snmpwalk Path: /usr/bin/snmpwalk
.... etc...
should these paths be as I've written them or the binary name shouldnt be contained in the whole path??

the line in my /etc/crontab is the following:
*/5 * * * * apache php /var/www/html/cacti/cmd.php > /dev/null 2>&1

and the rights in the "/var/www/html/cacti" are correct(as the documentation recomends)

from CLI when i type: snmpwalk xxx.xxx.xxx.xxx public I get the expected responce

if someone can help... I would appreciate it

Thanx
LostBody
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

This is another one of those parsing problems that can unfortunately only be fixed by turning off PHP's SNMP support and using UCD's.

You can do this by opening up 'include/config.php' and changing line 59 to:

Code: Select all

$config["php_snmp_support"] = false;
See if that helps.

-Ian
lostbody

it worked but...

Post by lostbody »

At last it worked...!!! really thanx... i would go insane.... But i have one question...
By making this change in the file you told me... where is the drawback??? The performance of the queries(snmp) are going to fall???

Looking forward to hear from u

Lostbody
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Using built-in PHP support is generally faster because cmd.php does not have to spawn a new snmpget process for each OID to monitor. If you are not monitoring tons of things via SNMP you'll probably be fine, the speed difference between internal/external SNMP support isn't that substantial either way.

-Ian
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests