Notice: Undefined variable: current_user in C:\inetpub\wwwro

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

Moderators: Developers, Moderators

Post Reply
xi_guadiy
Posts: 11
Joined: Tue Apr 08, 2008 10:14 pm

Notice: Undefined variable: current_user in C:\inetpub\wwwro

Post by xi_guadiy »

when i create graphs on localhost

Notice: Undefined variable: current_user in

C:\inetpub\wwwroot\cacti\include\top_graph_header.php on line 132

and there is no graphs generate ,only with a "Red X"

ENV: windows 2003

Package : cacti-0.8.7b.1.8.exe

what does this means and how to fix it ? thanks!
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) read http://forums.cacti.net/viewtopic.php?t=11747 entirely and repost.

2) I suspect incorrect NTFS permissions.

3) when you ran the windows installer, did you disable your antivirus?
xi_guadiy
Posts: 11
Joined: Tue Apr 08, 2008 10:14 pm

Post by xi_guadiy »

BSOD2600 wrote:1) read http://forums.cacti.net/viewtopic.php?t=11747 entirely and repost.

2) I suspect incorrect NTFS permissions.

3) when you ran the windows installer, did you disable your antivirus?
Thanks, it`s NTFS permissions. But Olny After i I added the Network

Service read/access to the c:\ drive !!

Also i see another Post Prm:

http://forums.cacti.net/about24995.html ... access+den

my env is very similar with him.

But another problem generate:


RRDTool Command:

c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="localhost - Traffic" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="packets/sec" \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
AREA:#FFF200FF:"Unicast Packets In" \
GPRINT::LAST:" Current\:%8.2lf %s" \
GPRINT::AVERAGE:"Average\:%8.2lf %s" \
GPRINT::MAX:"Maximum\:%8.2lf %s\n" \
LINE1:#00234BFF:"Unicast Packets Out" \
GPRINT::LAST:"Current\:%8.2lf %s" \
GPRINT::AVERAGE:"Average\:%8.2lf %s" \
GPRINT::MAX:"Maximum\:%8.2lf %s\n"
RRDTool Says:

ERROR: parameter '#FFF200FF' does not represent a number in line AREA:#FFF200FF:Unicast Packets In

C:\Inetpub\wwwroot\cacti>php poller.php

#i also do not know why when i run php poller.php nothing

generate ,Olny when i add "--force " poller.php can work


C:\Inetpub\wwwroot\cacti>php poller.php --force
04/15/2008 02:13:46 AM - POLLER: Poller[0] WARNING: Scheduled Task is out of syn
c with the Poller Interval! The Poller Interval is '300' seconds, with a maximu
m of a '300' second Scheduled Task, but 341 seconds have passed since the last p
oll!
04/15/2008 02:13:47 AM - SYSTEM STATS: Time:1.3637 Method:cmd.php Processes:2 Th
reads:N/A Hosts:2 HostsPerProcess:1 DataSources:7 RRDsProcessed:4


CACTi LOG:

04/15/2008 02:00:01 AM - CMDPHP: Poller[0] Host[2] DS[9] WARNING: Result from SNMP not valid. Partial Result:
04/15/2008 02:00:01 AM - CMDPHP: Poller[0] Host[2] DS[9] WARNING: Result from SNMP not valid. Partial Result:
04/15/2008 02:00:01 AM - CMDPHP: Poller[0] Host[2] DS[11] WARNING: Result from SNMP not valid. Partial Result: No Such Object avail
04/15/2008 02:00:01 AM - SYSTEM STATS: Time:1.2628 Method:cmd.php Processes:2 Threads:N/A Hosts:2 HostsPerProcess:1 DataSources:7 RRDsProcessed:4
04/15/2008 02:05:01 AM - CMDPHP: Poller[0] Host[2] DS[9] WARNING: Result from SNMP not valid. Partial Result:
04/15/2008 02:05:01 AM - CMDPHP: Poller[0] Host[2] DS[9] WARNING: Result from SNMP not valid. Partial Result:
04/15/2008 02:05:01 AM - CMDPHP: Poller[0] Host[2] DS[11] WARNING: Result from SNMP not valid. Partial Result: No Such Object avail
04/15/2008 02:05:01 AM - SYSTEM STATS: Time:1.2580 Method:cmd.php Processes:2 Threads:N/A Hosts:2 HostsPerProcess:1 DataSources:7 RRDsProcessed:4
04/15/2008 02:08:06 AM - CMDPHP: Poller[0] Host[2] DS[9] WARNING: Result from SNMP not valid. Partial Result:
04/15/2008 02:08:06 AM - CMDPHP: Poller[0] Host[2] DS[9] WARNING: Result from SNMP not valid. Partial Result:
04/15/2008 02:08:06 AM - CMDPHP: Poller[0] Host[2] DS[11] WARNING: Result from SNMP not valid. Partial Result: No Such Object avail
04/15/2008 02:08:06 AM - SYSTEM STATS: Time:1.2890 Method:cmd.php Processes:2 Threads:N/A Hosts:2 HostsPerProcess:1 DataSources:7 RRDsProcessed:4
04/15/2008 02:13:46 AM - POLLER: Poller[0] WARNING: Scheduled Task is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Scheduled Task, but 341 seconds have passed since the last poll!
04/15/2008 02:13:47 AM - CMDPHP: Poller[0] Host[2] DS[9] WARNING: Result from SNMP not valid. Partial Result:
04/15/2008 02:13:47 AM - CMDPHP: Poller[0] Host[2] DS[9] WARNING: Result from SNMP not valid. Partial Result:
04/15/2008 02:13:47 AM - CMDPHP: Poller[0] Host[2] DS[11] WARNING: Result from SNMP not valid. Partial Result: No Such Object avail
04/15/2008 02:13:47 AM - SYSTEM STATS: Time:1.3637 Method:cmd.php Processes:2 Threads:N/A Hosts:2 HostsPerProcess:1 DataSources:7 RRDsProcessed:4


How can i fix that ? thanks again!
xi_guadiy
Posts: 11
Joined: Tue Apr 08, 2008 10:14 pm

Post by xi_guadiy »

i delete all my previous graph host and add new device to generate

grahps, this time RRDtool say another things:

RRDTool Command:

c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="localhost - Traffic" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
CDEF:cdefa=a,8,* \
CDEF:cdefe=a,8,* \
AREA:cdefa#00CF00FF:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefe#002A97FF:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s"
RRDTool Says:

ERROR: invalid rpn expression in: a,8,*

CACTI:

04/15/2008 02:13:46 AM - POLLER: Poller[0] WARNING: Scheduled Task is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Scheduled Task, but 341 seconds have passed since the last poll!
04/15/2008 02:13:47 AM - CMDPHP: Poller[0] Host[2] DS[9] WARNING: Result from SNMP not valid. Partial Result:
04/15/2008 02:13:47 AM - CMDPHP: Poller[0] Host[2] DS[9] WARNING: Result from SNMP not valid. Partial Result:
04/15/2008 02:13:47 AM - CMDPHP: Poller[0] Host[2] DS[11] WARNING: Result from SNMP not valid. Partial Result: No Such Object avail
04/15/2008 02:13:47 AM - SYSTEM STATS: Time:1.3637 Method:cmd.php Processes:2 Threads:N/A Hosts:2 HostsPerProcess:1 DataSources:7 RRDsProcessed:4
04/15/2008 02:20:00 AM - POLLER: Poller[0] WARNING: Scheduled Task is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Scheduled Task, but 374 seconds have passed since the last poll!
04/15/2008 02:20:01 AM - CMDPHP: Poller[0] Host[2] DS[9] WARNING: Result from SNMP not valid. Partial Result:
04/15/2008 02:20:01 AM - CMDPHP: Poller[0] Host[2] DS[9] WARNING: Result from SNMP not valid. Partial Result:
04/15/2008 02:20:01 AM - CMDPHP: Poller[0] Host[2] DS[11] WARNING: Result from SNMP not valid. Partial Result: No Such Object avail
04/15/2008 02:20:01 AM - SYSTEM STATS: Time:1.3639 Method:cmd.php Processes:2 Threads:N/A Hosts:2 HostsPerProcess:1 DataSources:7 RRDsProcessed:4
04/15/2008 02:25:01 AM - CMDPHP: Poller[0] Host[2] DS[9] WARNING: Result from SNMP not valid. Partial Result:
04/15/2008 02:25:01 AM - CMDPHP: Poller[0] Host[2] DS[9] WARNING: Result from SNMP not valid. Partial Result:
04/15/2008 02:25:01 AM - CMDPHP: Poller[0] Host[2] DS[11] WARNING: Result from SNMP not valid. Partial Result: No Such Object avail
04/15/2008 02:25:01 AM - SYSTEM STATS: Time:1.2585 Method:cmd.php Processes:2 Threads:N/A Hosts:2 HostsPerProcess:1 DataSources:7 RRDsProcessed:4
04/15/2008 02:30:01 AM - CMDPHP: Poller[0] Host[2] DS[9] WARNING: Result from SNMP not valid. Partial Result:
04/15/2008 02:30:01 AM - CMDPHP: Poller[0] Host[2] DS[9] WARNING: Result from SNMP not valid. Partial Result:
04/15/2008 02:30:01 AM - CMDPHP: Poller[0] Host[2] DS[11] WARNING: Result from SNMP not valid. Partial Result: No Such Object avail
04/15/2008 02:30:01 AM - SYSTEM STATS: Time:1.2644 Method:cmd.php Processes:2 Threads:N/A Hosts:2 HostsPerProcess:1 DataSources:7 RRDsProcessed:4
04/15/2008 02:35:01 AM - SYSTEM STATS: Time:1.3885 Method:cmd.php Processes:2 Threads:N/A Hosts:2 HostsPerProcess:1 DataSources:0 RRDsProcessed:0

any idear would be appreciate!
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) Adding the Network Service? hmm ok, should've have needed that for a vanilla install of Windows, but whatever works.

2) you shouldn't be manually running poller.php. the scheduled task should be doing that.

3) Your graphing errors; did you edit graph templates or something? The standard cacti templates which you're having problems with, shouldn't be occurring. Make sure the rrdtool version is set to 1.2 in cacti's settings.

4) Also, you should fix those errors in your cacti.log file.
xi_guadiy
Posts: 11
Joined: Tue Apr 08, 2008 10:14 pm

Post by xi_guadiy »

BSOD2600 wrote:1) Adding the Network Service? hmm ok, should've have needed that for a vanilla install of Windows, but whatever works.

2) you shouldn't be manually running poller.php. the scheduled task should be doing that.

3) Your graphing errors; did you edit graph templates or something? The standard cacti templates which you're having problems with, shouldn't be occurring. Make sure the rrdtool version is set to 1.2 in cacti's settings.

4) Also, you should fix those errors in your cacti.log file.
Hi BSOD,thanks for your reply.

Now my cacti work fine, but still need Adding the Network Service.

i do not change any graph templates, bcs i do not have any knowledge

about this.Traffic on localhost and remote are all ok. but when i

add mysql grahs, the grahs still with RED X.

RRDTool Command:

c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="localhost - MySQL - Connections" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="connections" \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
AREA:#4668E4FF:"Connections" \
GPRINT::MIN:"Min\:%8.2lf %s" \
GPRINT::MAX:"Max\:%8.2lf %s" \
GPRINT::LAST:"Current\:%8.2lf %s"
RRDTool Says:

ERROR: parameter '#4668E4FF' does not represent a number in line AREA:#4668E4FF:Connections

also i do not change any about graph templates and the username/pwd

connect to mysql is correct


CACTI LOG:
04/15/2008 05:48:11 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select value from settings where name='snmp_community'"
04/15/2008 05:48:11 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select value from settings where name='snmp_community'"
04/15/2008 05:48:11 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select value from settings where name='snmp_ver'"
04/15/2008 05:48:11 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select value from settings where name='snmp_ver'"
04/15/2008 05:48:11 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select value from settings where name='snmp_header'"
04/15/2008 05:48:11 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select value from settings where name='snmp_header'"
04/15/2008 05:48:11 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select value from settings where name='rrdtool_version'"
04/15/2008 05:48:11 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select value from settings where name='rrdtool_version'"
04/15/2008 05:48:11 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select value from settings where name='snmp_version'"
04/15/2008 05:48:11 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select value from settings where name='snmp_version'"
04/15/2008 05:48:11 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select value from settings where name='versions_header'"
04/15/2008 05:48:11 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select value from settings where name='versions_header'"
04/15/2008 05:48:11 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select value from settings where name='log_perror'"
04/15/2008 05:48:11 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select value from settings where name='log_perror'"
04/15/2008 05:48:11 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select value from settings where name='log_pwarn'"
04/15/2008 05:48:11 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select value from settings where name='log_pwarn'"
04/15/2008 05:48:11 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select value from settings where name='log_pstats'"
04/15/2008 05:48:11 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select value from settings where name='log_pstats'"
04/15/2008 05:48:11 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select value from settings where name='log_verbosity'"
04/15/2008 05:48:11 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select value from settings where name='log_verbosity'"
04/15/2008 05:48:11 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select value from settings where name='poller_header'"
04/15/2008 05:48:11 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select value from settings where name='poller_header'"
04/15/2008 05:48:11 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select value from settings where name='log_export'"
04/15/2008 05:48:11 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select value from settings where name='log_export'"
04/15/2008 05:48:11 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select value from settings where name='log_graph'"
04/15/2008 05:48:11 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select value from settings where name='log_graph'"

and i can not got any usefull inof .

many thanks for your help

Cheers,
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Go to graph templates, open the MySQL - Connections. click on each item, then click save. click save to the template. now check the mysql graph; all fixed?
xi_guadiy
Posts: 11
Joined: Tue Apr 08, 2008 10:14 pm

Post by xi_guadiy »

BSOD2600 wrote:Go to graph templates, open the MySQL - Connections. click on each item, then click save. click save to the template. now check the mysql graph; all fixed?
ah....Yes BSOD2600, mysql connection graphs is ok now !

Many thanks again for all your posts

Regards,
kvone
Posts: 15
Joined: Wed Jul 25, 2012 6:05 am
Contact:

Re: Notice: Undefined variable: current_user in C:\inetpub\w

Post by kvone »

clear
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests