Help: Create a graph for a specified OID

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

Moderators: Developers, Moderators

Post Reply
francestsi
Posts: 3
Joined: Thu Apr 26, 2007 3:14 am

Help: Create a graph for a specified OID

Post by francestsi »

I want to create a graph for a specified OID, which is in a enterprise
MIB. When I run
$ php poller.php

return:

Error in packet.
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: .0.1

04/25/2007 03:32:55 PM - SYSTEM STATS: Time:1.0713 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:8 RRDsProcessed:6
OK u:0.00 s:0.00 r:0.02
OK u:0.00 s:0.00 r:0.02
OK u:0.00 s:0.00 r:0.03
OK u:0.00 s:0.00 r:0.03
OK u:0.00 s:0.00 r:0.03
OK u:0.00 s:0.00 r:0.03


When i use snmpget to get the OID, it can get the value
$ snmpget -v 2c -c public A.B.C.D:PORT 1.3.6.1.4.1.791.2.9.4.5.2.2.2
SNMPv2-SMI::enterprises.791.2.9.4.5.2.2.2.0 = INTEGER: 9


What is the object .0.1 ? Cacti use it to get the system information?
If the MIB doesn't contain the object .0.1, can i use cacti to create the graph? Or i have to modify the php source? Which module should i modify?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

How did you create the Graph? D
francestsi
Posts: 3
Joined: Thu Apr 26, 2007 3:14 am

Post by francestsi »

gandalf wrote:How did you create the Graph? D
the poller.php cann't get the value, then cann't create the rrd file, so
cann't create the graph.
smilerpt
Posts: 30
Joined: Tue Apr 24, 2007 8:00 pm
Location: Portugal, Lisbon

Post by smilerpt »

I would tcpdump my traffic to try to understand what it
smilerpt
Posts: 30
Joined: Tue Apr 24, 2007 8:00 pm
Location: Portugal, Lisbon

Post by smilerpt »

I would tcpdump my traffic to try to understand what it is trying to query and see the answer from the equipment...

rs
francestsi
Posts: 3
Joined: Thu Apr 26, 2007 3:14 am

Post by francestsi »

I changed the user who runs the apache to 'cacti', then it works.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests