[resolved] Graphics doesn't display

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

Moderators: Developers, Moderators

vinczente
Posts: 22
Joined: Thu Aug 31, 2006 4:43 am

[resolved] Graphics doesn't display

Post by vinczente »

Hi,

I have a big problem, my graphics doesn't display (for localhost as for my other server)...
I really dont know why... Can you help me?
(excuse my poor english I'm french)
Attachments
prblm.JPG
prblm.JPG (101.85 KiB) Viewed 3391 times
Last edited by vinczente on Fri Sep 01, 2006 8:07 am, edited 1 time in total.
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

have you run the poller at least once ?
[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]
vinczente
Posts: 22
Joined: Thu Aug 31, 2006 4:43 am

?

Post by vinczente »

how do i run that?

http://serveur/cacti/poller.php - This script is only meant to run at the command line.

then ./poller ? -> Fatal error: Call to undefined function: mysql_pconnect() in /var/www/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 356

:s strange because cacti is runnig then it use php and mysql...
Last edited by vinczente on Thu Aug 31, 2006 6:42 am, edited 1 time in total.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

You have to run it through the crontab, or by hand.

Add this to your cactiuser crontab :

Code: Select all

*/5 * * * * /usr/bin/php /path/to/cacti/poller.php > /dev/null 2>&1
The complete documentation is here : http://www.cacti.net/downloads/docs/htm ... _unix.html
[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]
vinczente
Posts: 22
Joined: Thu Aug 31, 2006 4:43 am

Post by vinczente »

Yes, I had this line in my crontabs..
but if I run the command line, there is an error -> Fatal error: Call to undefined function: mysql_pconnect() in /var/www/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 356


strange...

Tanks for your help
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

What Linux distribution are you using ?
[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]
vinczente
Posts: 22
Joined: Thu Aug 31, 2006 4:43 am

Post by vinczente »

Debian sarge with apache2 php4 and mysql

I found the error

What i made :
locate php.ini
and enable in the extension mysql.so in all files.

Then I have the graphs, but no data.....
Attachments
prblm2.JPG
prblm2.JPG (239.34 KiB) Viewed 3362 times
Last edited by vinczente on Thu Aug 31, 2006 7:20 am, edited 1 time in total.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

vinczente wrote:Fatal error: Call to undefined function: mysql_pconnect() in /var/www/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 356
You seem to be missing MySQL support in PHP CLI.

Try to run dpkg-reconfigure php4-mysql as root and then select Yes to the "Should MySQL be added to /etc/php4/(cli|cgi)/php.ini?" question.
[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]
vinczente
Posts: 22
Joined: Thu Aug 31, 2006 4:43 am

Post by vinczente »

It works, but always no data...

Thank you so much for your help
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

You have to wait for at least 2 polling cycles (the first one will create the RRDtool databases, the second one will fill them with values).
[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]
vinczente
Posts: 22
Joined: Thu Aug 31, 2006 4:43 am

Post by vinczente »

Thank you very much I will wait :)
vinczente
Posts: 22
Joined: Thu Aug 31, 2006 4:43 am

Post by vinczente »

Hi,

I think the is a problem with poller.php.... Always no graphs...

when I execute manually poller.php I got that :

10:24 cactiuser@Server /var/www/cacti% ./poller.php
Missing object name
USAGE: snmpget [OPTIONS] AGENT OID [OID]...

Version: 5.1.2
Web: http://www.net-snmp.org/
Email: net-snmp-coders@lists.sourceforge.net

OPTIONS:
-h, --help display this help message
-H display configuration file directives understood
-v 1|2c|3 specifies SNMP version to use
-V, --version display package version number
SNMP Version 1 or 2c specific
-c COMMUNITY set the community string
SNMP Version 3 specific
-a PROTOCOL set authentication protocol (MD5|SHA)
-A PASSPHRASE set authentication protocol pass phrase
-e ENGINE-ID set security engine ID (e.g. 800000020109840301)
-E ENGINE-ID set context engine ID (e.g. 800000020109840301)
-l LEVEL set security level (noAuthNoPriv|authNoPriv|authPriv)
-n CONTEXT set context name (e.g. bridge1)
-u USER-NAME set security name (e.g. bert)
-x PROTOCOL set privacy protocol (DES)
-X PASSPHRASE set privacy protocol pass phrase
-Z BOOTS,TIME set destination engine boots/time
General communication options
-r RETRIES set the number of retries
-t TIMEOUT set the request timeout (in seconds)
Debugging
-d dump input/output packets in hexadecimal
-D TOKEN[,...] turn on debugging output for the specified TOKENs
(ALL gives extremely verbose debugging output)
General options
-m MIB[:...] load given list of MIBs (ALL loads everything)
-M DIR[:...] look in given list of directories for MIBs
-P MIBOPTS Toggle various defaults controlling MIB parsing:
u: allow the use of underlines in MIB symbols
c: disallow the use of "--" to terminate comments
d: save the DESCRIPTIONs of the MIB objects
e: disable errors when MIB symbols conflict
w: enable warnings when MIB symbols conflict
W: enable detailed warnings when MIB symbols conflict
R: replace MIB symbols from latest module
-O OUTOPTS Toggle various defaults controlling output display:
a: print all strings in ascii format
b: do not break OID indexes down
e: print enums numerically
E: escape quotes in string indices
f: print full OIDs on output
n: print OIDs numerically
q: quick print for easier parsing
Q: quick print with equal-signs
s: print only last symbolic element of OID
S: print MIB module-id plus last element
t: print timeticks unparsed as numeric integers
T: print human-readable text along with hex strings
u: print OIDs using UCD-style prefix suppression
U: don't print units
v: print values only (not OID = value)
x: print all strings in hex format
X: extended index format
-I INOPTS Toggle various defaults controlling input parsing:
b: do best/regex matching to find a MIB node
h: don't apply DISPLAY-HINTs
r: do not check values for range/type legality
R: do random access to OID labels
u: top-level OIDs must have '.' prefix (UCD-style)
s SUFFIX: Append all textual OIDs with SUFFIX before parsing
S PREFIX: Prepend all textual OIDs with PREFIX before parsing
-L LOGOPTS Toggle various defaults controlling logging:
e: log to standard error
o: log to standard output
f file: log to the specified file
s facility: log to syslog (via the specified facility)

(variants)
[EO] pri: log to standard error/output for level 'pri' and above
[EO] p1-p2: log to standard error/output for levels 'p1' to 'p2'
[FS] pri token: log to file/syslog for level 'pri' and above
[FS] p1-p2 token: log to file/syslog for levels 'p1' to 'p2'
-C APPOPTS Set various application specific behaviours:
f: do not fix errors and retry the request
OK u:0.01 s:0.02 r:1.06
OK u:0.01 s:0.02 r:1.06
OK u:0.01 s:0.02 r:1.07
OK u:0.01 s:0.02 r:2.08
OK u:0.01 s:0.02 r:2.08
OK u:0.01 s:0.02 r:2.08
OK u:0.01 s:0.02 r:2.08
OK u:0.01 s:0.02 r:3.16
OK u:0.01 s:0.02 r:3.16
OK u:0.01 s:0.02 r:3.16
OK u:0.01 s:0.02 r:3.16
OK u:0.01 s:0.02 r:3.17
OK u:0.01 s:0.02 r:3.17
OK u:0.01 s:0.02 r:3.17
OK u:0.02 s:0.02 r:3.17
OK u:0.02 s:0.02 r:3.17
OK u:0.02 s:0.02 r:3.17
OK u:0.02 s:0.02 r:3.17
OK u:0.02 s:0.02 r:3.17
OK u:0.02 s:0.02 r:3.17
OK u:0.02 s:0.02 r:3.18
OK u:0.02 s:0.02 r:3.18
OK u:0.02 s:0.02 r:3.18
OK u:0.02 s:0.02 r:3.18
OK u:0.02 s:0.02 r:3.18
OK u:0.02 s:0.02 r:3.18
OK u:0.02 s:0.02 r:3.18
OK u:0.02 s:0.02 r:3.18
OK u:0.02 s:0.02 r:3.18
OK u:0.02 s:0.02 r:3.19
OK u:0.02 s:0.02 r:3.19
OK u:0.02 s:0.02 r:3.19
OK u:0.02 s:0.02 r:3.19
OK u:0.02 s:0.02 r:3.19
OK u:0.02 s:0.02 r:3.19
OK u:0.02 s:0.02 r:3.19
OK u:0.02 s:0.02 r:3.19
OK u:0.02 s:0.02 r:3.19
OK u:0.02 s:0.02 r:3.20
OK u:0.02 s:0.02 r:3.20
OK u:0.02 s:0.02 r:3.20
OK u:0.02 s:0.02 r:3.20
OK u:0.02 s:0.02 r:3.20
OK u:0.02 s:0.02 r:3.20
OK u:0.02 s:0.02 r:3.20
OK u:0.02 s:0.02 r:3.20
OK u:0.02 s:0.02 r:3.20
OK u:0.02 s:0.02 r:3.20
OK u:0.02 s:0.02 r:3.21
OK u:0.02 s:0.02 r:3.21
OK u:0.02 s:0.02 r:3.21
OK u:0.02 s:0.03 r:3.21
OK u:0.02 s:0.03 r:3.21
OK u:0.02 s:0.03 r:3.21
OK u:0.02 s:0.03 r:3.21
OK u:0.02 s:0.03 r:3.21
OK u:0.02 s:0.03 r:3.21
OK u:0.02 s:0.03 r:3.22
OK u:0.02 s:0.03 r:3.22
OK u:0.02 s:0.03 r:3.22
OK u:0.02 s:0.03 r:3.22
OK u:0.02 s:0.03 r:3.22
OK u:0.02 s:0.03 r:3.22
09/01/2006 10:24:09 AM - SYSTEM STATS: Time:4.3688 Method:cmd.php Processes:1 Threads:N/A Hosts:7 HostsPerProcess:7 DataSources:66 RRDsProcessed:63

Thanks for your help.....

vincent
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Do you have PHP SNMP support ?

You can see it by clicking on the cactus.
[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]
vinczente
Posts: 22
Joined: Thu Aug 31, 2006 4:43 am

Post by vinczente »

:cry:

No i Dont have it.....

"PHP SNMP Support: no"

Can you told me how to get it please...?

Thank you.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

IMO you need to install the php4-snmp package and restart your web server.
[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]
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests