Poller working, rrd file created, no graphs

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

Moderators: Developers, Moderators

Post Reply
New User

Poller working, rrd file created, no graphs

Post by New User »

running cacti 8.6b with php5 on windows 2k3 and iis6. Everything seems to be working fine. Poller works fine...and creates the rrd files. However, graphs show up as a broken link...a big red x. I have downloaded the patches and put them in place. I can post cacti.log if needed.

Thanks...
New User

Post by New User »

Here is the cacti.log after one polling cycle. I have only one device it is polling right now. Not sure if this helps at all, or is totally not related.

12/09/2004 11:28:50 AM - SYSTEM STATS: Time: 2.7162 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 2, Hosts/Process: 2
12/09/2004 11:28:50 AM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update C:\cacti\rra\itfadmin_dir_total_10.rrd --template dir_total:dir_used 1102609728:459776:218380
12/09/2004 11:28:50 AM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update C:\cacti\rra\itfadmin_traffic_in_14.rrd --template traffic_out:traffic_in 1102609728:2344881569:4062351620
12/09/2004 11:28:50 AM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update C:\cacti\rra\itfadmin_cpu_13.rrd --template cpu 1102609728:5
12/09/2004 11:28:50 AM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update C:\cacti\rra\itfadmin_dir_total_12.rrd --template dir_used:dir_total 1102609728:1836225:5112320
12/09/2004 11:28:50 AM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update C:\cacti\rra\itfadmin_dir_total_11.rrd --template dir_total:dir_used 1102609728:2147483647:0
12/09/2004 11:28:49 AM - CMDPHP: Poller[0] Time: 0.9527 s, Theads: N/A, Hosts: 1
12/09/2004 11:28:49 AM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
12/09/2004 11:28:49 AM - CMDPHP: Poller[0] Host[3] SNMP: v1: it-fadmin.co.kent.mi.us, dsname: dir_used, oid: .1.3.6.1.4.1.23.2.28.2.14.1.12.1, output: 218380
12/09/2004 11:28:49 AM - CMDPHP: Poller[0] Host[3] SNMP: v1: it-fadmin.co.kent.mi.us, dsname: dir_total, oid: .1.3.6.1.4.1.23.2.28.2.14.1.11.1, output: 459776
12/09/2004 11:28:49 AM - CMDPHP: Poller[0] Host[3] SNMP: v1: it-fadmin.co.kent.mi.us, dsname: dir_used, oid: .1.3.6.1.4.1.23.2.28.2.14.1.12.2, output: 0
12/09/2004 11:28:49 AM - CMDPHP: Poller[0] Host[3] SNMP: v1: it-fadmin.co.kent.mi.us, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, output: 4062351620
12/09/2004 11:28:49 AM - CMDPHP: Poller[0] Host[3] SNMP: v1: it-fadmin.co.kent.mi.us, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, output: 2344881569
12/09/2004 11:28:49 AM - CMDPHP: Poller[0] Host[3] SNMP: v1: it-fadmin.co.kent.mi.us, dsname: cpu, oid: .1.3.6.1.4.1.23.2.27.3.16.1.4.1, output: 5
12/09/2004 11:28:49 AM - CMDPHP: Poller[0] Host[3] SNMP: v1: it-fadmin.co.kent.mi.us, dsname: dir_total, oid: .1.3.6.1.4.1.23.2.28.2.14.1.11.3, output: 5112320
12/09/2004 11:28:49 AM - CMDPHP: Poller[0] Host[3] SNMP: v1: it-fadmin.co.kent.mi.us, dsname: dir_used, oid: .1.3.6.1.4.1.23.2.28.2.14.1.12.3, output: 1836225
12/09/2004 11:28:49 AM - CMDPHP: Poller[0] Host[3] SNMP: v1: it-fadmin.co.kent.mi.us, dsname: dir_total, oid: .1.3.6.1.4.1.23.2.28.2.14.1.11.2, output: 2147483647
12/09/2004 11:28:49 AM - CMDPHP: Poller[0] Host[3] RECACHE: Processing 3 items in the auto reindex cache for 'it-fadmin.co.kent.mi.us'.
12/09/2004 11:28:49 AM - CMDPHP: Poller[0] Host[3] SNMP: Host responded to SNMP
12/09/2004 11:28:49 AM - CMDPHP: Poller[0] PHP Script Server Started Properly
12/09/2004 11:28:49 AM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
12/09/2004 11:28:49 AM - PHPSVR: Poller[0] DEBUG: FILENM: c:\cacti\script_server.php
12/09/2004 11:28:49 AM - PHPSVR: Poller[0] DEBUG: DIRNAM: c:/cacti
12/09/2004 11:28:49 AM - PHPSVR: Poller[0] DEBUG: GETCWD: c:/rrdtool
12/09/2004 11:28:49 AM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
12/09/2004 11:28:47 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:/php/php-win.exe, ARGS: -q c:\cacti/cmd.php 0 3]
Willie

IIS6

Post by Willie »

Hey,

Try adjusting the settings that your cacti web sites runs under to administrator. i think that you will see that the problem goes away. I bet if you turn on debug for the graph you will find a popen error.

I am sure that there is a way not to run it as administrator, I just have not found it yet. I am running a very similar setup.

Regards,

Willie
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

1) RRD's being created Ok - Good
2) Goto Graphs and Edit One of the Graphs
3) Turn on Graph Debug Mode and Post the Response

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?
New User

Post by New User »

Warning: popen(c:/rrdtool/rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-300 --title="IT-FADMIN - Logged In Users" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="users" DEF:a="C\:\cacti/rra/itfadmin_total_logins_15.rrd":total_logins:AVERAGE AREA:a#FFC73B:"Current Logins" GPRINT:a:LAST:"Current\:%8.0lf" GPRINT:a:AVERAGE:"Average\:%8.0lf" GPRINT:a:MAX:"Maximum\:%8.0lf\n" 2>&1,rb) [function.popen]: No error in C:\cacti\lib\rrd.php on line 89

Warning: fgets(): supplied argument is not a valid stream resource in C:\cacti\lib\rrd.php on line 112

Debug Graph Mode...Still not sure the problem. I know the file itfadmin_total_logins_15.rrd does exist....not sure the syntax of that line though with the c\:
Thanks for you help...
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

PHP version please. Also, are you running CGI or CLI?

"php -v" will get it for you.

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?
New User

Post by New User »

PHP 5.0.2
We are using CLI....
It is running on Windows 2003 Server with IIS6. So cacti poller runs with php-win.exe.
cacti 8.6b with the pre-patched files.
The latest rrdtool is installed as well.

Thanks,

Mike
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Ok, there is a table called settings. Edit that table and look for "path_webroot" change it to "c:/cacti" and let me know what the net-net is.

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
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

What is interesting is that you should not event have been in that section of code. You PHP version is too recent.

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?
LA
Posts: 31
Joined: Fri Nov 12, 2004 4:21 am
Location: sttutgart, germany

PHP issue

Post by LA »

Hi,

I am using 5.02 php with windows, and I had to explicitly change the security setting on cmd.exe to IUSR and IWAN execute priveleges. Then I had no more Fget errors or popen.

Hope that helps you... :lol:
LIfe is very hard without the proper tools.....I am but a Slave...
Guest

Post by Guest »

That worked....I think changing that security is even in the documentation, but I must have overlooked that. The documentation is a little different running W2k3 with iis6.

Thanks for your help.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests