Status: Unknown, Availability: 100%, no graphs

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
User avatar
epoxi
Posts: 8
Joined: Thu Feb 01, 2007 8:19 am
Location: Buenos Aires / Argentina

Status: Unknown, Availability: 100%, no graphs

Post by epoxi »

Hi Team!

I've installed Cacti Version 0.8.6j on my Debian/Sparc.

I can graph locahost resources fine, but i can't graph a snmp (cisco) device.

Cacti can see snmp information and router interfaces, so I assume that snmp is working fine on the system.

But the graphs aren't generated, due to a device down or unknown status.

Code: Select all

SNMP Information
System: Cisco Internetwork Operating System Software IOS (tm) 3600 Software (C3640-JS-M), Version 12.2(15)ZJ, EARLY DEPLOYMENT RELEASE SOFTWARE (fc1) TAC Support: http://www.cisco.com/tac Copyright (c) 1986-2003 by cisco Systems, Inc. Compiled Thu 22-May-03
Uptime: 4292065770 (496 days, 13 hours, 13 minutes)
Hostname: ROU-L-01
Location:
Contact: 
And graph debug...

Code: Select all

 RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="ROU-L-01 - Traffic - Fa1/0.5" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes per second" \
--slope-mode \
DEF:a="/var/www/cacti-0.8.6j/rra/roul01_traffic_in_12.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/cacti-0.8.6j/rra/roul01_traffic_in_12.rrd":traffic_out:AVERAGE \
AREA:a#00CF00:"Inbound"  \
GPRINT:a:LAST:" Current\:%8.2lf %s"  \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:b#002A97:"Outbound"  \
GPRINT:b:LAST:"Current\:%8.2lf %s"  \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:b:MAX:"Maximum\:%8.2lf %s" 

RRDTool Says:

ERROR: opening '/var/www/cacti-0.8.6j/rra/roul01_traffic_in_12.rrd': No such file or directory
I've already changed my polling method from just SNMP to SNMP+PING, but nothig happends :(

Also changed the user running the poller.php

Code: Select all

# CACTI POLLER
*/5 * * * * root /var/www/cacti/poller.php > /dev/null 2>&1
Really, I don't know what do :(

I used cacti before, but never had this problem. It just worked from the begining of the installation :)

Please, help :)

BRegards.-
LC
Attachments
Device "UNKNOWN" state... but it's snmp reachable
Device "UNKNOWN" state... but it's snmp reachable
ScreenShot005.png (4.87 KiB) Viewed 1829 times
Here we can see this devide configuration in cacti, and how it's reachable by snmp.
Here we can see this devide configuration in cacti, and how it's reachable by snmp.
ScreenShot004.png (26.75 KiB) Viewed 1829 times
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

usually a device is marked "unknown" until next time the poller is run.

Can you run the poller by hand ?

Also, are you sure you want to run the poller as root ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
epoxi
Posts: 8
Joined: Thu Feb 01, 2007 8:19 am
Location: Buenos Aires / Argentina

Post by epoxi »

Hi fmangeant,

Thanks for your fast response!


I can run the poller by hand. Here's the result:

Code: Select all

BUE-LAB07:~# php /var/www/cacti/poller.php
OK u:0.01 s:0.01 r:1.02
OK u:0.01 s:0.01 r:1.03
OK u:0.01 s:0.02 r:1.03
OK u:0.01 s:0.02 r:1.03
OK u:0.01 s:0.02 r:1.03
OK u:0.01 s:0.02 r:1.03
02/01/2007 11:06:39 AM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
02/01/2007 11:06:39 AM - SYSTEM STATS: Time:292.4314 Method:cmd.php Processes:1 Threads:N/A Hosts:5 HostsPerProcess:5 DataSources:13 RRDsProcessed:6

Warning: pclose(): 48 is not a valid stream resource in /var/www/cacti-0.8.6j/lib/rrd.php on line 48
BUE-LAB07:~#
Besides, i leaved "root" in crontab as i read somewere that it's needed when the poller is configured as SNMP+PING. I'm going to change it to "www-data" again.

Any suggest?

BRegards.-
Lucas
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please follow hints of my "NaN Debugging", linked in my signature
Reinhard
User avatar
epoxi
Posts: 8
Joined: Thu Feb 01, 2007 8:19 am
Location: Buenos Aires / Argentina

Post by epoxi »

Hi Reinhard,

I'm following the "NaN Debbuging"

1. Check Cacti Log File

My log file has 500K+... so here's a 1 cycle polling log in debug mode:

Code: Select all

BUE-LAB07:/var/www/cacti/log# cat poller.log
01/30/2007 05:12:11 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/cacti-0.8.6j/cmd.php 0 4]
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
01/30/2007 05:12:13 PM - POLLER: Poller[0] Parsed MULTI output field '1min:0.00' [map 1min->load_1min]
01/30/2007 05:12:13 PM - POLLER: Poller[0] Parsed MULTI output field '5min:0.00' [map 5min->load_5min]
01/30/2007 05:12:13 PM - POLLER: Poller[0] Parsed MULTI output field '10min:0.00' [map 10min->load_15min]
01/30/2007 05:12:13 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti-0.8.6j/rra/localhost_hdd_free_10.rrd --template hdd_used:hdd_free 1170187933:347448:23758060
01/30/2007 05:12:13 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti-0.8.6j/rra/localhost_proc_7.rrd --template proc 1170187933:94
OK u:0.01 s:0.01 r:1.03
OK u:0.01 s:0.01 r:1.03
01/30/2007 05:12:13 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti-0.8.6j/rra/localhost_users_6.rrd --template users 1170187933:2
OK u:0.01 s:0.01 r:1.04
01/30/2007 05:12:13 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti-0.8.6j/rra/localhost_load_1min_5.rrd --template load_1min:load_5min:load_15min 1170187933:0.00:0.00:0.00
OK u:0.01 s:0.01 r:1.04
01/30/2007 05:12:13 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti-0.8.6j/rra/localhost_mem_swap_4.rrd --template mem_swap 1170187933:1952752
OK u:0.01 s:0.01 r:1.04
01/30/2007 05:12:13 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti-0.8.6j/rra/localhost_mem_buffers_3.rrd --template mem_buffers 1170187933:465512
OK u:0.01 s:0.02 r:1.04
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
01/30/2007 05:17:04 PM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
01/30/2007 05:17:04 PM - SYSTEM STATS: Time:292.4401 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:13 RRDsProcessed:6

Warning: pclose(): 56 is not a valid stream resource in /var/www/cacti-0.8.6j/lib/rrd.php on line 48
BUE-LAB07:/var/www/cacti/log#
2. Check Basic Data Gathering:

I'm not using my own scripts yet, so i'll go to step 2.

Code: Select all

BUE-LAB07:/var/www/cacti/log# snmpget -c xxxxx -v 2c 10.10.61.254 ifInOctets.8
IF-MIB::ifInOctets.8 = Counter32: 4271301934
3. Check cacti's poller:
Cacti 0.8.7g / PA 2.9 / Ubuntu Server 10.04.1 amd64 on VMWare ESXi
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

You may google for the pclose error to find lots of hits, e.g. http://forums.cacti.net/about8817.html. Please try this one first
Reinhard
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I would think that RRDtool is crashing. What version are your running of RRDtool and what version of PHP? How much memory in PHP.INI for Scripts. Make sure it is at least 64mbytes.

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?
User avatar
epoxi
Posts: 8
Joined: Thu Feb 01, 2007 8:19 am
Location: Buenos Aires / Argentina

Post by epoxi »

Hi Reinhard,

I'm looking that post. Thanks ;)


Mr. TheWitness,

Here's my SW configuration & versions:

RRDtool

Code: Select all

BUE-LAB07:/var/www/apache2-default# rrdtool --help
RRDtool 1.2.15  Copyright 1997-2006 by Tobias Oetiker <tobi@oetiker.ch>
               Compiled Dec 14 2006 22:11:18
PHP4

Version: PHP 4.4.4-8 (see attach)

Memory for scripts = 64MB (see attach)


Any suggest?

BRegards.-
Lucas
Attachments
PHPINFO() - main
PHPINFO() - main
ScreenShot001.png (25.15 KiB) Viewed 1748 times
PHPINFO() - php core
PHPINFO() - php core
ScreenShot002.png (15.08 KiB) Viewed 1748 times
Cacti 0.8.7g / PA 2.9 / Ubuntu Server 10.04.1 amd64 on VMWare ESXi
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Apply the three patches from the Website.

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?
User avatar
epoxi
Posts: 8
Joined: Thu Feb 01, 2007 8:19 am
Location: Buenos Aires / Argentina

Post by epoxi »

...where was my mind! PATCHES!!!

I've aplied all the patches and the devices came up at once :D

Thanks for all support folks!!! ...next time I'll first check the patches section :P

BRegards.-
Lucas
Attachments
Graphing!!! thanks to The Witness &amp;amp; Gandalf
Graphing!!! thanks to The Witness &amp; Gandalf
ScreenShot006.png (23.27 KiB) Viewed 1642 times
Cacti 0.8.7g / PA 2.9 / Ubuntu Server 10.04.1 amd64 on VMWare ESXi
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests