No data in graph ... HELP !!!

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

Moderators: Developers, Moderators

a2line59
Posts: 45
Joined: Mon May 23, 2005 8:20 am
Location: France

No data in graph ... HELP !!!

Post by a2line59 »

In first, sorry for my english ...

I worked on this problem since a long time and I search on this forum but I don't find a answer.

I have already try cacti on a linux and all was OK but now, I work on Cacti on a Windows XP SP2 and I have a problem. My graph have any data.

Cacti 0.8.6d
PHP 4.3.11
MySQL 4.1.11
rrdtool 1.0.49

I create a device, it find all the information on this device with netsnmp
I create a graph.
I execute poller.php with this command c:\php\php c:\...\cacti\poller.php
and i have that in the log file :

05/23/2005 03:14:29 PM - RECACHE: Poller[0] STATS: Time: 20.0506 s, Hosts Recached: 1
05/23/2005 03:14:09 PM - POLLER: Poller[0] Host[2] WARNING: Recache Event Detected for Host
05/23/2005 03:14:09 PM - SYSTEM STATS: Time: 9.0926 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 3, Hosts/Process: 3

05/23/2005 03:14:04 PM - CMDPHP: Poller[0] ASSERT: 'Unknown value type

file rrd was create but when i look the graph, there is nothing
I tried a lot of things but anything change
I tried to use cactid but when i execute poller.php, php made nothing

I don't understand what's the problem. If someone can help me ...
a2line59
Posts: 45
Joined: Mon May 23, 2005 8:20 am
Location: France

Post by a2line59 »

another information :

when the device is a windows 2000 server, all is OK, i can see traffic on the interface and the used space without problem

when the device is a cisco router, graph is blank. I have nothing inside.
but I used exactely the same operation

and when I used cacti on linux, devices was already this cisco routers and all was OK so the problem was not the device
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

The CMDPHP: Poller[0] ASSERT: 'Unknown value type is most likely the cause of your problem(s).

Turn on debugging in settings -> polling level. After one cycle through, post the log.
a2line59
Posts: 45
Joined: Mon May 23, 2005 8:20 am
Location: France

Post by a2line59 »

When I make that, i have these results :

05/24/2005 09:42:41 AM - RECACHE: Poller[0] STATS: Time: 9.0191 s, Hosts Recached: 1
05/24/2005 09:42:32 AM - POLLER: Poller[0] Host[2] WARNING: Recache Event Detected for Host
05/24/2005 09:42:32 AM - SYSTEM STATS: Time: 2.0746 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 4, Hosts/Process: 4
05/24/2005 09:42:32 AM - CMDPHP: Poller[0] Time: 1.1192 s, Theads: N/A, Hosts: 3

05/24/2005 09:42:31 AM - CMDPHP: Poller[0] Host[2] SNMP: v2: 10.0.0.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, output: 1940788499
05/24/2005 09:42:31 AM - CMDPHP: Poller[0] Host[2] SNMP: v2: 10.0.0.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, output: 1082919434

05/24/2005 09:42:31 AM - CMDPHP: Poller[0] ASSERT: 'Unknown value type

It's very strange because it obtains values of traffic_out and traffic_in
a2line59
Posts: 45
Joined: Mon May 23, 2005 8:20 am
Location: France

Post by a2line59 »

if i tried to watch interface on another device than a cisco router, it's ok, all data are correct and when i tried to execute this command :
C:\usr\bin>snmpget -v 2c -c MyCommunity 10.0.0.1 .1.3.6.1.2.1.2.2.1.16.1

I have this error :
Cannot find module (NOTIFICATION-LOG-MIB): At line 1 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 1 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 1 in (none)
IF-MIB::ifOutOctets.1 = Counter32: 2353590039

It's very strange because when i used cacti on linux, I can watch interface of cisco router and in the graph i had data

why this was OK on linux but not on Windows ?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please verify that the MIBDIRS is pointing to the Net-SNMP MIB's directory and not PHP's. For every version of PHP, there is a corresponding snmp issue (unfortunately).

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?
a2line59
Posts: 45
Joined: Mon May 23, 2005 8:20 am
Location: France

Post by a2line59 »

the mibdirs is pointing to the net-snmp mib's directory
i tried to reinstall net-snmp and nothing change

in the readme of net-snmp, i read that to verify installation of net-snmp, we can execute this command : C:\>snmptranslate -IR -Td IF-MIB::linkdown
and the result is :
Unknown object identifier: IF-MIB::linkdown
i don't know if that can help you

an other information :
SNMP's version of devices was OK is 1
and on cisco router is 2

i tried too uninstall microsoft snmp and reinstall net-snmp but nothing change
User avatar
mmartens
Cacti User
Posts: 110
Joined: Tue May 24, 2005 6:23 pm

Post by mmartens »

Hi

i have the same problems:

Module not found:

Where can you set the mibs dir? I set it in the c:\net-snmp\etc\snmp\snmp.conf is this correct?

C:\Inetpub\intranet\ICT\cacti>c:\php\php.exe poller.php
05/25/2005 12:04:17 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: c:\cactid\cactid.exe, ARGS: 0 0]
05/25/2005 12:04:17 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: c:\cactid\cactid.exe, ARGS: 5 5]
Waiting on 2/2 pollers.
c:\rrdtool\rrdtool.exe (2416): *** system shared memory version mismatch detecte
d - 0x75BE0074/0xFFFF0080.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
No log handling enabled - turning on stderr logging
No log handling enabled - turning on stderr loggingIP-MIB: Module not found

IP-MIB: Module not foundIF-MIB: Module not found

IF-MIB: Module not foundTCP-MIB: Module not found

TCP-MIB: Module not foundUDP-MIB: Module not found

UDP-MIB: Module not foundHOST-RESOURCES-MIB: Module not found

HOST-RESOURCES-MIB: Module not foundSNMPv2-MIB: Module not found

SNMPv2-MIB: Module not found
RFC1213-MIB: Module not found
RFC1213-MIB: Module not found
SNMPv2-SMI: Module not found
SNMPv2-SMI: Module not found
NOTIFICATION-LOG-MIB: Module not found
NOTIFICATION-LOG-MIB: Module not found
UCD-SNMP-MIB: Module not found
UCD-SNMP-MIB: Module not found
UCD-DEMO-MIB: Module not found
UCD-DEMO-MIB: Module not found
SNMP-TARGET-MIB: Module not found
SNMP-TARGET-MIB: Module not found
NET-SNMP-AGENT-MIB: Module not found
NET-SNMP-AGENT-MIB: Module not found
SNMP-VIEW-BASED-ACM-MIB: Module not found
SNMP-VIEW-BASED-ACM-MIB: Module not found
SNMP-COMMUNITY-MIB: Module not found
SNMP-COMMUNITY-MIB: Module not found
UCD-DLMOD-MIB: Module not found
UCD-DLMOD-MIB: Module not found
SNMP-FRAMEWORK-MIB: Module not found
SNMP-FRAMEWORK-MIB: Module not found
SNMP-MPD-MIB: Module not found
SNMP-MPD-MIB: Module not foundSNMP-USER-BASED-SM-MIB: Module not found

SNMP-USER-BASED-SM-MIB: Module not found
SNMP-NOTIFICATION-MIB: Module not found
SNMP-NOTIFICATION-MIB: Module not found
SNMPv2-TM: Module not found
SNMPv2-TM: Module not found
Waiting on 2/2 pollers.
Waiting on 1/2 pollers.
Waiting on 1/2 pollers.
05/25/2005 12:04:21 PM - SYSTEM STATS: Time: 4.1133 s, Method: cactid, Processes
: 9, Threads: 1, Hosts: 2, Hosts/Process: 1

C:\Inetpub\intranet\ICT\cacti>
a2line59
Posts: 45
Joined: Mon May 23, 2005 8:20 am
Location: France

Post by a2line59 »

after a lot of install and uninstall of net-snmp, now i have any error message for net-snmp but always the same in cacti
now when i execute this command : snmptranslate -IR -Td IF-MIB::linkDown
i have the good result :
IF-MIB::linkDown
linkDown NOTIFICATION-TYPE
-- FROM IF-MIB
OBJECTS { ifIndex, ifAdminStatus, ifOperStatus }
DESCRIPTION "A linkDown trap signifies that the SNMP entity, acting in
an agent role, has detected that the ifOperStatus object for
one of its communication links is about to enter the down
state from some other state (but not from the notPresent
state). This other state is indicated by the included value
of ifOperStatus."
::= { iso(1) org(3) dod(6) internet(1) snmpV2(6) snmpModules(3) snmpMIB(1) snmpM
IBObjects(1) snmpTraps(5) 3 }

and when I want to obtain a MIB's value on a device I have no problem
for example :
snmpget -v 2c -c mycommunity myip .1.3.6.1.2.1.2.2.1.16.10
i have this result :
IF-MIB::ifOutOctets.10 = Counter32: 797442283

so now i am sure that net-snmp is OK

but when i execute poller.php I have always the same problem :
C:\php>php ...\cacti\poller.php
Content-type: text/html
X-Powered-By: PHP/4.3.11

Waiting on 1/1 pollers.
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
Waiting on 1/1 pollers.
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
05/25/2005 04:02:18 PM - SYSTEM STATS: Time: 2.0693 s, Method: cmd.php, Processe
s: 1, Threads: N/A, Hosts: 6, Hosts/Process: 6
OK
OK
OK
05/25/2005 04:02:18 PM - POLLER: Poller[0] Host[16] WARNING: Recache Event Detec
ted for Host
05/25/2005 04:02:27 PM - POLLER: Poller[0] Host[17] WARNING: Recache Event Detec
ted for Host
05/25/2005 04:02:31 PM - RECACHE: Poller[0] STATS: Time: 12.8358 s, Hosts Recach
ed: 2

OK is for devices with i have no problem (servers, swtiches ...) but with cisco router I have always the problem
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

That output with the OKs and recaching is just fine. You're saying the cisco rra is still not getting updated?
a2line59
Posts: 45
Joined: Mon May 23, 2005 8:20 am
Location: France

Post by a2line59 »

BSOD2600 wrote:You're saying the cisco rra is still not getting updated?
yes it's that. I have not PC with cacti with me but i post a screenshot of this problem today
a2line59
Posts: 45
Joined: Mon May 23, 2005 8:20 am
Location: France

Post by a2line59 »

this is the graph i have
as you can see it's not update
Attachments
pb_routeur.JPG
pb_routeur.JPG (38.37 KiB) Viewed 4233 times
a2line59
Posts: 45
Joined: Mon May 23, 2005 8:20 am
Location: France

Post by a2line59 »

I read that on the forum : http://forums.cacti.net/viewtopic.php?t=6515
and it's my case I have no sysDescr and no sysUpTime
but i compare value of my file ping.php and value in the forum and it's good
i try to put the old version but nothing change
a2line59
Posts: 45
Joined: Mon May 23, 2005 8:20 am
Location: France

Post by a2line59 »

is it possible the problem come from version of cacti ?
do I need to use 0.8.6c ?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

No, I wouldn't go back in a version.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests