Basic startup
Moderators: Developers, Moderators
- adrianmarsh
- Cacti User
- Posts: 437
- Joined: Wed Aug 17, 2005 8:51 am
- Location: UK
Basic startup
Hi,
I'm trying to integrate Cacti into an existing IIS/MRTG setup, without breaking the old one for now. The IIS server also runs some other www based tools like WebCalender.
When I enable the snmp dll in php.ini, I get the following message at the end of each php page (WebCalendar AND Cacti):
Cannot find module (IP-MIB): At line 0 in (none) Cannot find module (IF-MIB): At line 0 in (none) Cannot find module (TCP-MIB): At line 0 in (none) Cannot find module (UDP-MIB): At line 0 in (none) Cannot find module (SNMPv2-MIB): At line 0 in (none) Cannot find module (SNMPv2-SMI): At line 0 in (none) Cannot find module (UCD-SNMP-MIB): At line 0 in (none) Cannot find module (UCD-DEMO-MIB): At line 0 in (none) Cannot find module (SNMP-TARGET-MIB): At line 0 in (none) Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none) Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none) Cannot find module (UCD-DLMOD-MIB): At line 0 in (none) Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none) Cannot find module (SNMP-MPD-MIB): At line 0 in (none) Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none) Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none) Cannot find module (SNMPv2-TM): At line 0 in (none)
Second problem:
I've been able to scan a Foundry router, and specify the graph, but when I try to look at the graphs, theres no images created. Looking on the server I see that rra/ is empty.
I've also been a little confused by the instructions about how cactid is started, and how this ties into how the Scheduled Task works.
In the log file I'm getting :
08/17/2005 02:06:28 PM - CMDPHP: Poller[0] Host[1] DS[3] WARNING: Result from CMD not valid. Partial Result:
08/17/2005 02:06:28 PM - CMDPHP: Poller[0] Host[1] DS[4] WARNING: Result from CMD not valid. Partial Result:
08/17/2005 02:06:28 PM - CMDPHP: Poller[0] Host[1] DS[5] WARNING: Result from CMD not valid. Partial Result: 1min: 5min: 10
08/17/2005 02:06:28 PM - CMDPHP: Poller[0] Host[1] DS[6] WARNING: Result from CMD not valid. Partial Result:
08/17/2005 02:06:28 PM - CMDPHP: Poller[0] Host[1] DS[7] WARNING: Result from CMD not valid. Partial Result:
08/17/2005 02:06:28 PM - CMDPHP: Poller[0] Host[2] DS[9] WARNING: Result from SNMP not valid. Partial Result:
I'm trying to integrate Cacti into an existing IIS/MRTG setup, without breaking the old one for now. The IIS server also runs some other www based tools like WebCalender.
When I enable the snmp dll in php.ini, I get the following message at the end of each php page (WebCalendar AND Cacti):
Cannot find module (IP-MIB): At line 0 in (none) Cannot find module (IF-MIB): At line 0 in (none) Cannot find module (TCP-MIB): At line 0 in (none) Cannot find module (UDP-MIB): At line 0 in (none) Cannot find module (SNMPv2-MIB): At line 0 in (none) Cannot find module (SNMPv2-SMI): At line 0 in (none) Cannot find module (UCD-SNMP-MIB): At line 0 in (none) Cannot find module (UCD-DEMO-MIB): At line 0 in (none) Cannot find module (SNMP-TARGET-MIB): At line 0 in (none) Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none) Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none) Cannot find module (UCD-DLMOD-MIB): At line 0 in (none) Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none) Cannot find module (SNMP-MPD-MIB): At line 0 in (none) Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none) Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none) Cannot find module (SNMPv2-TM): At line 0 in (none)
Second problem:
I've been able to scan a Foundry router, and specify the graph, but when I try to look at the graphs, theres no images created. Looking on the server I see that rra/ is empty.
I've also been a little confused by the instructions about how cactid is started, and how this ties into how the Scheduled Task works.
In the log file I'm getting :
08/17/2005 02:06:28 PM - CMDPHP: Poller[0] Host[1] DS[3] WARNING: Result from CMD not valid. Partial Result:
08/17/2005 02:06:28 PM - CMDPHP: Poller[0] Host[1] DS[4] WARNING: Result from CMD not valid. Partial Result:
08/17/2005 02:06:28 PM - CMDPHP: Poller[0] Host[1] DS[5] WARNING: Result from CMD not valid. Partial Result: 1min: 5min: 10
08/17/2005 02:06:28 PM - CMDPHP: Poller[0] Host[1] DS[6] WARNING: Result from CMD not valid. Partial Result:
08/17/2005 02:06:28 PM - CMDPHP: Poller[0] Host[1] DS[7] WARNING: Result from CMD not valid. Partial Result:
08/17/2005 02:06:28 PM - CMDPHP: Poller[0] Host[2] DS[9] WARNING: Result from SNMP not valid. Partial Result:
Re: Basic startup
First problem:
Second problem:
Not sure about your log messages, there. Did you delete the localhost device? Cacti sets up a default device called 'localhost' and tries to do linuxy things to it; a step for removing this device should probably be included in the windows installation instructions. Turn the logging up to 'debug' and see what you get logged for POLLER and CMDPHP.
HTH, Rick
Looks like you need to set the MIBDIRS environment variable.adrianmarsh wrote:Cannot find module (IP-MIB) [etc]
Second problem:
What I understand is that cactid is started by poller.php, but only if cactid is selected as the "poller type" on the "poller" settings webpage. The scheduled task should always execute poller.php. If you have the poller type set to CMD.PHP, you don't need to worry about cactid.adrianmarsh wrote:rra/ is empty.
I've also been a little confused by the instructions about how cactid is started, and how this ties into how the Scheduled Task works.
Not sure about your log messages, there. Did you delete the localhost device? Cacti sets up a default device called 'localhost' and tries to do linuxy things to it; a step for removing this device should probably be included in the windows installation instructions. Turn the logging up to 'debug' and see what you get logged for POLLER and CMDPHP.
HTH, Rick
- adrianmarsh
- Cacti User
- Posts: 437
- Joined: Wed Aug 17, 2005 8:51 am
- Location: UK
Right,
I fixed the first with a reboot (no idea what process didn't get restarted by an iis restart),
but the second issue is still there. Yes I've removed localhost as its a w2k machine not linux, but I'm still not getting rrd files, or any graphs, and only this in the log:
08/17/2005 07:26:43 PM - SYSTEM STATS: Time: 4.5881 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 2, Hosts/Process: 2, Data Sources 5, RRDs Processed 3
08/17/2005 07:26:42 PM - CMDPHP: Poller[0] Host[2] DS[9] WARNING: Result from SNMP not valid. Partial Result:
I've left the cactid out of the equation for now, using just cmd.php
I fixed the first with a reboot (no idea what process didn't get restarted by an iis restart),
but the second issue is still there. Yes I've removed localhost as its a w2k machine not linux, but I'm still not getting rrd files, or any graphs, and only this in the log:
08/17/2005 07:26:43 PM - SYSTEM STATS: Time: 4.5881 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 2, Hosts/Process: 2, Data Sources 5, RRDs Processed 3
08/17/2005 07:26:42 PM - CMDPHP: Poller[0] Host[2] DS[9] WARNING: Result from SNMP not valid. Partial Result:
I've left the cactid out of the equation for now, using just cmd.php
Which script are you using?
Turn the polling level in cacti to debug (Settings | Polling level) for one cycle and paste the output of the log file. If it contains WEBLOG entries, then don't bother posting since they just clutter up the log. Turn off WEBEVENTS logging and try again.
Turn the polling level in cacti to debug (Settings | Polling level) for one cycle and paste the output of the log file. If it contains WEBLOG entries, then don't bother posting since they just clutter up the log. Turn off WEBEVENTS logging and try again.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
- adrianmarsh
- Cacti User
- Posts: 437
- Joined: Wed Aug 17, 2005 8:51 am
- Location: UK
08/17/2005 07:51:01 PM - SYSTEM STATS: Time: 1.1489 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 2, Hosts/Process: 2, Data Sources 5, RRDs Processed 3
08/17/2005 07:51:01 PM - POLLER: Poller[0] CACTI2RRD: c:/mrtg/rrdtool/rrdtool/Release/rrdtool.exe update C:\inetpub\wwwroot\cacti\rra\foundry_5_sgsn5_traffic_in_10.rrd --template traffic_in:traffic_out N:2961708549:3406488101
08/17/2005 07:51:01 PM - POLLER: Poller[0] CACTI2RRD: c:/mrtg/rrdtool/rrdtool/Release/rrdtool.exe create C:\Inetpub\wwwroot\cacti/rra/foundry_5_sgsn5_traffic_in_10.rrd --step 300 DS:traffic_in:COUNTER:600:0:100000000 DS:traffic_out:COUNTER:600:0:100000000 RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797
08/17/2005 07:51:01 PM - POLLER: Poller[0] CACTI2RRD: c:/mrtg/rrdtool/rrdtool/Release/rrdtool.exe update C:\inetpub\wwwroot\cacti\rra\foundry_5_sgsn5_snmp_oid_9.rrd --template snmp_oid N:U
08/17/2005 07:51:01 PM - POLLER: Poller[0] CACTI2RRD: c:/mrtg/rrdtool/rrdtool/Release/rrdtool.exe create C:\Inetpub\wwwroot\cacti/rra/foundry_5_sgsn5_snmp_oid_9.rrd --step 300 DS:snmp_oid:GAUGE:600:0:100 RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797
08/17/2005 07:51:01 PM - POLLER: Poller[0] CACTI2RRD: c:/mrtg/rrdtool/rrdtool/Release/rrdtool.exe update C:\inetpub\wwwroot\cacti\rra\foundry_5_sgsn5_traffic_in_8.rrd --template traffic_out:traffic_in N:3406488101:2961708549
08/17/2005 07:51:01 PM - POLLER: Poller[0] CACTI2RRD: c:/mrtg/rrdtool/rrdtool/Release/rrdtool.exe create C:\Inetpub\wwwroot\cacti/rra/foundry_5_sgsn5_traffic_in_8.rrd --step 300 DS:traffic_in:COUNTER:600:0:100000000 DS:traffic_out:COUNTER:600:0:100000000 RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797
08/17/2005 07:51:01 PM - CMDPHP: Poller[0] Time: 0.4797 s, Theads: N/A, Hosts: 1
08/17/2005 07:51:01 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
08/17/2005 07:51:01 PM - CMDPHP: Poller[0] Host[2] DS[10] SNMP: v1: foundry5.uk-lab.lucent.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.13587, output: 3406488101
08/17/2005 07:51:01 PM - CMDPHP: Poller[0] Host[2] DS[10] SNMP: v1: foundry5.uk-lab.lucent.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.13587, output: 2961708549
08/17/2005 07:51:01 PM - CMDPHP: Poller[0] Host[2] DS[9] SNMP: v1: foundry5.uk-lab.lucent.com, dsname: snmp_oid, oid: , output: U
08/17/2005 07:51:01 PM - CMDPHP: Poller[0] Host[2] DS[9] WARNING: Result from SNMP not valid. Partial Result:
08/17/2005 07:51:01 PM - CMDPHP: Poller[0] Host[2] DS[8] SNMP: v1: foundry5.uk-lab.lucent.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.13587, output: 2961708549
08/17/2005 07:51:01 PM - CMDPHP: Poller[0] Host[2] DS[8] SNMP: v1: foundry5.uk-lab.lucent.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.13587, output: 3406488101
08/17/2005 07:51:01 PM - CMDPHP: Poller[0] Host[2] RECACHE: Processing 1 items in the auto reindex cache for 'foundry5.uk-lab.lucent.com'.
08/17/2005 07:51:01 PM - CMDPHP: Poller[0] Host[2] SNMP: Host responded to SNMP
08/17/2005 07:51:01 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
08/17/2005 07:51:01 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
08/17/2005 07:51:01 PM - PHPSVR: Poller[0] DEBUG: FILENM: c:\inetpub\wwwroot\cacti\script_server.php
08/17/2005 07:51:01 PM - PHPSVR: Poller[0] DEBUG: DIRNAM: c:/inetpub/wwwroot/cacti
08/17/2005 07:51:01 PM - PHPSVR: Poller[0] DEBUG: GETCWD: c:/inetpub/wwwroot/cacti
08/17/2005 07:51:01 PM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
08/17/2005 07:51:00 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:/php/php.exe, ARGS: -q c:\inetpub\wwwroot\cacti/cmd.php 0 2]
08/17/2005 07:51:01 PM - POLLER: Poller[0] CACTI2RRD: c:/mrtg/rrdtool/rrdtool/Release/rrdtool.exe update C:\inetpub\wwwroot\cacti\rra\foundry_5_sgsn5_traffic_in_10.rrd --template traffic_in:traffic_out N:2961708549:3406488101
08/17/2005 07:51:01 PM - POLLER: Poller[0] CACTI2RRD: c:/mrtg/rrdtool/rrdtool/Release/rrdtool.exe create C:\Inetpub\wwwroot\cacti/rra/foundry_5_sgsn5_traffic_in_10.rrd --step 300 DS:traffic_in:COUNTER:600:0:100000000 DS:traffic_out:COUNTER:600:0:100000000 RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797
08/17/2005 07:51:01 PM - POLLER: Poller[0] CACTI2RRD: c:/mrtg/rrdtool/rrdtool/Release/rrdtool.exe update C:\inetpub\wwwroot\cacti\rra\foundry_5_sgsn5_snmp_oid_9.rrd --template snmp_oid N:U
08/17/2005 07:51:01 PM - POLLER: Poller[0] CACTI2RRD: c:/mrtg/rrdtool/rrdtool/Release/rrdtool.exe create C:\Inetpub\wwwroot\cacti/rra/foundry_5_sgsn5_snmp_oid_9.rrd --step 300 DS:snmp_oid:GAUGE:600:0:100 RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797
08/17/2005 07:51:01 PM - POLLER: Poller[0] CACTI2RRD: c:/mrtg/rrdtool/rrdtool/Release/rrdtool.exe update C:\inetpub\wwwroot\cacti\rra\foundry_5_sgsn5_traffic_in_8.rrd --template traffic_out:traffic_in N:3406488101:2961708549
08/17/2005 07:51:01 PM - POLLER: Poller[0] CACTI2RRD: c:/mrtg/rrdtool/rrdtool/Release/rrdtool.exe create C:\Inetpub\wwwroot\cacti/rra/foundry_5_sgsn5_traffic_in_8.rrd --step 300 DS:traffic_in:COUNTER:600:0:100000000 DS:traffic_out:COUNTER:600:0:100000000 RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797
08/17/2005 07:51:01 PM - CMDPHP: Poller[0] Time: 0.4797 s, Theads: N/A, Hosts: 1
08/17/2005 07:51:01 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
08/17/2005 07:51:01 PM - CMDPHP: Poller[0] Host[2] DS[10] SNMP: v1: foundry5.uk-lab.lucent.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.13587, output: 3406488101
08/17/2005 07:51:01 PM - CMDPHP: Poller[0] Host[2] DS[10] SNMP: v1: foundry5.uk-lab.lucent.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.13587, output: 2961708549
08/17/2005 07:51:01 PM - CMDPHP: Poller[0] Host[2] DS[9] SNMP: v1: foundry5.uk-lab.lucent.com, dsname: snmp_oid, oid: , output: U
08/17/2005 07:51:01 PM - CMDPHP: Poller[0] Host[2] DS[9] WARNING: Result from SNMP not valid. Partial Result:
08/17/2005 07:51:01 PM - CMDPHP: Poller[0] Host[2] DS[8] SNMP: v1: foundry5.uk-lab.lucent.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.13587, output: 2961708549
08/17/2005 07:51:01 PM - CMDPHP: Poller[0] Host[2] DS[8] SNMP: v1: foundry5.uk-lab.lucent.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.13587, output: 3406488101
08/17/2005 07:51:01 PM - CMDPHP: Poller[0] Host[2] RECACHE: Processing 1 items in the auto reindex cache for 'foundry5.uk-lab.lucent.com'.
08/17/2005 07:51:01 PM - CMDPHP: Poller[0] Host[2] SNMP: Host responded to SNMP
08/17/2005 07:51:01 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
08/17/2005 07:51:01 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
08/17/2005 07:51:01 PM - PHPSVR: Poller[0] DEBUG: FILENM: c:\inetpub\wwwroot\cacti\script_server.php
08/17/2005 07:51:01 PM - PHPSVR: Poller[0] DEBUG: DIRNAM: c:/inetpub/wwwroot/cacti
08/17/2005 07:51:01 PM - PHPSVR: Poller[0] DEBUG: GETCWD: c:/inetpub/wwwroot/cacti
08/17/2005 07:51:01 PM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
08/17/2005 07:51:00 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:/php/php.exe, ARGS: -q c:\inetpub\wwwroot\cacti/cmd.php 0 2]
- adrianmarsh
- Cacti User
- Posts: 437
- Joined: Wed Aug 17, 2005 8:51 am
- Location: UK
- adrianmarsh
- Cacti User
- Posts: 437
- Joined: Wed Aug 17, 2005 8:51 am
- Location: UK
Hmm.. ok the rrd files are being created now (I had the incorrect version of rrdtool and just noticed the sticky). But still no graphs, just big red Xs where the graphs should be. What creates these ? Does it need a temporary directory with perms for IUSR... ??
I've tried turning on graph debug but don't see where the debug is shown. On the graph page itself it does say "RRDTOOL OK"
And running poller.php manually i get:
C:\Inetpub\wwwroot\cacti>php poller.php
Content-type: text/html
X-Powered-By: PHP/4.4.0
08/17/2005 10:38:26 PM - SYSTEM STATS: Time: 2.0871 s, Method: cmd.php, Processe
s: 1, Threads: N/A, Hosts: 3, Hosts/Process: 3, Data Sources 6, RRDs Processed 4
OK u:0.01 s:0.01 r:0.13
OK u:0.03 s:0.01 r:0.15
OK u:0.03 s:0.01 r:0.17
OK u:0.03 s:0.01 r:0.19
I've also tried adding the IUSR account to the cacti parent directory with full write permissions, but still no graphs...
.....
A bit later on now. I've figured the logs out a bit. Now I see that it tries to run rrdtool to graph the image:
:\cactirrdtool\rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-300 --title="Cisco GGSN - CPU Usage" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="percent" --slope-mode DEF:a="C\:\inetpub\wwwroot\cacti/rra/cisco_ggsn_5min_cpu_11.rrd":5min_cpu:AVERAGE AREA:a#FF0000:"CPU Usage" GPRINTLAST:"Current\:%8.0lf" GPRINTAVERAGE:"Average\:%8.0lf" GPRINTMAX:"Maximum\:%8.0lf"
When I run this from the command line it doesn't produce anything. I've been reading about the cygwin dlls so I'll try that.
----------------
A little later, and I've figured out rrdtool needs c:\cactirrdtool in the system path, and from a cmd.exe prompt I can generate the binary of a png file. I've rebooted to load the new PATH environment into the IIS config, and subsequent processes, but still no graphs via the www... so I'm guessing NOW it must be permissions or something..
onward and upward..
I've tried turning on graph debug but don't see where the debug is shown. On the graph page itself it does say "RRDTOOL OK"
And running poller.php manually i get:
C:\Inetpub\wwwroot\cacti>php poller.php
Content-type: text/html
X-Powered-By: PHP/4.4.0
08/17/2005 10:38:26 PM - SYSTEM STATS: Time: 2.0871 s, Method: cmd.php, Processe
s: 1, Threads: N/A, Hosts: 3, Hosts/Process: 3, Data Sources 6, RRDs Processed 4
OK u:0.01 s:0.01 r:0.13
OK u:0.03 s:0.01 r:0.15
OK u:0.03 s:0.01 r:0.17
OK u:0.03 s:0.01 r:0.19
I've also tried adding the IUSR account to the cacti parent directory with full write permissions, but still no graphs...
.....
A bit later on now. I've figured the logs out a bit. Now I see that it tries to run rrdtool to graph the image:
:\cactirrdtool\rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-300 --title="Cisco GGSN - CPU Usage" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="percent" --slope-mode DEF:a="C\:\inetpub\wwwroot\cacti/rra/cisco_ggsn_5min_cpu_11.rrd":5min_cpu:AVERAGE AREA:a#FF0000:"CPU Usage" GPRINTLAST:"Current\:%8.0lf" GPRINTAVERAGE:"Average\:%8.0lf" GPRINTMAX:"Maximum\:%8.0lf"
When I run this from the command line it doesn't produce anything. I've been reading about the cygwin dlls so I'll try that.
----------------
A little later, and I've figured out rrdtool needs c:\cactirrdtool in the system path, and from a cmd.exe prompt I can generate the binary of a png file. I've rebooted to load the new PATH environment into the IIS config, and subsequent processes, but still no graphs via the www... so I'm guessing NOW it must be permissions or something..
onward and upward..
- adrianmarsh
- Cacti User
- Posts: 437
- Joined: Wed Aug 17, 2005 8:51 am
- Location: UK
A little further... I found that rrdtool still errored, complaining about ttfs :
H:\>c:\cactirrdtool\rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-30
0 --title="Cisco GGSN - CPU Usage" --rigid --base=1000 --height=120 --width=500
--alt-autoscale-max --lower-limit=0 --vertical-label="percent" --slope-mode DEF:
a="C\:\inetpub\wwwroot\cacti/rra/cisco_ggsn_5min_cpu_11.rrd":5min_cpu:AVERAGE AR
EA:a#FF0000:"CPU Usage" GPRINTLAST:"Current\:%8.0lf" GPRINTAVERAGE:"Averag
e\:%8.0lf" GPRINTMAX:"Maximum\:%8.0lf" > c:\a.png
ERROR: failed to load c:/windows/fonts/cour.ttf
I'm not sure why its looking for c:/windows as this is a W2K system and the windows directory is c:\winnt, but I've fooled it by creating c:\windows\fonts\ and putting courier there. Now no complaints on cmd.exe, but still no garphs through www.
--------------
GOT IT!!! I'd tried to add Ariel as the rrdtool ttf in the settings, but once I'd removed that and created the c:\windows\fonts directory then the pngs started showing!!
So - that just leaves why rrdtool needs c:\windows?? Maybe the way it was compiled? And also how can I override it in the settings (format / or \ ? )
H:\>c:\cactirrdtool\rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-30
0 --title="Cisco GGSN - CPU Usage" --rigid --base=1000 --height=120 --width=500
--alt-autoscale-max --lower-limit=0 --vertical-label="percent" --slope-mode DEF:
a="C\:\inetpub\wwwroot\cacti/rra/cisco_ggsn_5min_cpu_11.rrd":5min_cpu:AVERAGE AR
EA:a#FF0000:"CPU Usage" GPRINTLAST:"Current\:%8.0lf" GPRINTAVERAGE:"Averag
e\:%8.0lf" GPRINTMAX:"Maximum\:%8.0lf" > c:\a.png
ERROR: failed to load c:/windows/fonts/cour.ttf
I'm not sure why its looking for c:/windows as this is a W2K system and the windows directory is c:\winnt, but I've fooled it by creating c:\windows\fonts\ and putting courier there. Now no complaints on cmd.exe, but still no garphs through www.
--------------
GOT IT!!! I'd tried to add Ariel as the rrdtool ttf in the settings, but once I'd removed that and created the c:\windows\fonts directory then the pngs started showing!!
So - that just leaves why rrdtool needs c:\windows?? Maybe the way it was compiled? And also how can I override it in the settings (format / or \ ? )
You should have specified a valid font file in the cacti path settings. Alternatively, you can create a system variable called RRD_DEFAULT_FONT and have it set to a valid font.
As I'm sure you're aware by now, rrdtool.exe creates the graphs. IUSR only needs read & execute permissions on it.
As for the cygwin dlls, I suggest you do a basic install of Cygwin. Then you will no longer need to worry about different cygwin dlls floating around your system.
As I'm sure you're aware by now, rrdtool.exe creates the graphs. IUSR only needs read & execute permissions on it.
As for the cygwin dlls, I suggest you do a basic install of Cygwin. Then you will no longer need to worry about different cygwin dlls floating around your system.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
- adrianmarsh
- Cacti User
- Posts: 437
- Joined: Wed Aug 17, 2005 8:51 am
- Location: UK
I hope you meant c:\winnt\fonts\arial.ttf
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
- adrianmarsh
- Cacti User
- Posts: 437
- Joined: Wed Aug 17, 2005 8:51 am
- Location: UK
Who is online
Users browsing this forum: No registered users and 1 guest