Cacti/WinXP configuration
Moderators: Developers, Moderators
Okay. Found the php.exe CLI version in c:\php\cli\php.exe. That's set. Now, when I run the scheduled command from a CMD prompt, I get:
C:\>C:\php\cli\php.exe C:\htdocs\cacti\poller.php
There are no items in your poller cache or polling is disabled. Make sure you ha
ve at least one data source created. If you do, go to 'Utilities', and select 'C
lear Poller Cache'.
When I check Data Sources, I have one called IRCFTP-Traffic defined, data input method is Get SNMP Data (Indexed)
On that data source, the Selected Data Template is "Inteface - Traffic", and host is set to IRCFTP(ircftp) <- hostname of the box itself.
Do I need to worry about the Suplemental Data Template Data fields? I left them as installed.
C:\>C:\php\cli\php.exe C:\htdocs\cacti\poller.php
There are no items in your poller cache or polling is disabled. Make sure you ha
ve at least one data source created. If you do, go to 'Utilities', and select 'C
lear Poller Cache'.
When I check Data Sources, I have one called IRCFTP-Traffic defined, data input method is Get SNMP Data (Indexed)
On that data source, the Selected Data Template is "Inteface - Traffic", and host is set to IRCFTP(ircftp) <- hostname of the box itself.
Do I need to worry about the Suplemental Data Template Data fields? I left them as installed.
I noticed a change in the cacti log after changing the php.exe setup (there's a lot less information):
11/14/2004 06:04:31 PM - WEBLOG: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe graph - --imgformat=PNG --start=1100397870 --end=1100484270 --title="IRCFTP - Traffic" --rigid --base=1000 --height=100 --width=300 --alt-autoscale-max --lower-limit=0 --no-legend COMMENT:"From 2004/11/13 18:04:30 To 2004/11/14 18:04:30\c" COMMENT:"\n" --vertical-label="bits per second" CDEF:cdefa=a,8,* CDEF:cdefe=a,8,* AREA:cdefa#00CF00:"" LINE1:cdefe#002A97:""
11/14/2004 06:04:23 PM - WEBLOG: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe graph - --imgformat=PNG --start=1100397862 --end=1100484262 --title="IRCFTP - Traffic" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 COMMENT:"From 2004/11/13 18:04:22 To 2004/11/14 18:04:22\c" COMMENT:"\n" --vertical-label="bits per second" CDEF:cdefa=a,8,* CDEF:cdefe=a,8,* AREA:cdefa#00CF00:"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#002A97:"Outbound" GPRINT:cdefe:LAST:"Current\:%8.2lf %s" GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s"
11/14/2004 06:04:31 PM - WEBLOG: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe graph - --imgformat=PNG --start=1100397870 --end=1100484270 --title="IRCFTP - Traffic" --rigid --base=1000 --height=100 --width=300 --alt-autoscale-max --lower-limit=0 --no-legend COMMENT:"From 2004/11/13 18:04:30 To 2004/11/14 18:04:30\c" COMMENT:"\n" --vertical-label="bits per second" CDEF:cdefa=a,8,* CDEF:cdefe=a,8,* AREA:cdefa#00CF00:"" LINE1:cdefe#002A97:""
11/14/2004 06:04:23 PM - WEBLOG: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe graph - --imgformat=PNG --start=1100397862 --end=1100484262 --title="IRCFTP - Traffic" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 COMMENT:"From 2004/11/13 18:04:22 To 2004/11/14 18:04:22\c" COMMENT:"\n" --vertical-label="bits per second" CDEF:cdefa=a,8,* CDEF:cdefe=a,8,* AREA:cdefa#00CF00:"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#002A97:"Outbound" GPRINT:cdefe:LAST:"Current\:%8.2lf %s" GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s"
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Your are making progress. Goto "Settings->View Poller Cache" and post the results. It appears that you have no poller items properly created.
TheWitness
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?
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?
The Poller cache is empty. The SNMP cache is now showing content coming in, it never had before. Still no graphs displaying.
SNMP cache is showing (just for example):
Host: IRCFTP, SNMP Query: SNMP - Interface Statistics
Index: 1, Field Name: ifSpeed, Field Value: 10000000
OID: .1.3.6.1.2.1.2.2.1.5.1
Host: IRCFTP, SNMP Query: SNMP - Interface Statistics
Index: 1, Field Name: ifType, Field Value: softwareLoopback(24)
OID: .1.3.6.1.2.1.2.2.1.3.1
Host: IRCFTP, SNMP Query: SNMP - Interface Statistics
Index: 1, Field Name: ifDescr, Field Value: MS TCP Loopback interface
OID: .1.3.6.1.2.1.2.2.1.2.1
Host: IRCFTP, SNMP Query: SNMP - Interface Statistics
Index: 1, Field Name: ifOperStatus, Field Value: Up
OID: .1.3.6.1.2.1.2.2.1.8.1
Host: IRCFTP, SNMP Query: SNMP - Interface Statistics
Index: 1, Field Name: ifIndex, Field Value: 1
OID: .1.3.6.1.2.1.2.2.1.1.1
<truncated>
Under Devices, IRCFTP shows a status of Up, hostname of 192.168.0.4 (it's actual IP), current (ms) of 33, average (ms) of 33, availability 100%.
SNMP cache is showing (just for example):
Host: IRCFTP, SNMP Query: SNMP - Interface Statistics
Index: 1, Field Name: ifSpeed, Field Value: 10000000
OID: .1.3.6.1.2.1.2.2.1.5.1
Host: IRCFTP, SNMP Query: SNMP - Interface Statistics
Index: 1, Field Name: ifType, Field Value: softwareLoopback(24)
OID: .1.3.6.1.2.1.2.2.1.3.1
Host: IRCFTP, SNMP Query: SNMP - Interface Statistics
Index: 1, Field Name: ifDescr, Field Value: MS TCP Loopback interface
OID: .1.3.6.1.2.1.2.2.1.2.1
Host: IRCFTP, SNMP Query: SNMP - Interface Statistics
Index: 1, Field Name: ifOperStatus, Field Value: Up
OID: .1.3.6.1.2.1.2.2.1.8.1
Host: IRCFTP, SNMP Query: SNMP - Interface Statistics
Index: 1, Field Name: ifIndex, Field Value: 1
OID: .1.3.6.1.2.1.2.2.1.1.1
<truncated>
Under Devices, IRCFTP shows a status of Up, hostname of 192.168.0.4 (it's actual IP), current (ms) of 33, average (ms) of 33, availability 100%.
Last edited by ttyR2 on Sun Nov 14, 2004 9:42 pm, edited 1 time in total.
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
That would explain things. Edit your host. Goto Create Graphs and post a jpg of the output.
TheWitness
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?
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?
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Do me a favor. Edit the data template "Interface (bit/set)" and post another JPG file. Tnen, at a minimum, delete all your graphs and data sources and start over.
When you restart, don't make the mistake of adding the Graph Template called "Interface Traffic". I know it does not make sense. It's one of the things we will be changing in future versions. Interfaces are data query based and therefore you should not be adding the graph template. To much to explain.
TheWitness
p.s. It's important to post the Interface template JPG.
When you restart, don't make the mistake of adding the Graph Template called "Interface Traffic". I know it does not make sense. It's one of the things we will be changing in future versions. Interfaces are data query based and therefore you should not be adding the graph template. To much to explain.
TheWitness
p.s. It's important to post the Interface template JPG.
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?
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?
Poller cache file does show two entries now. Getting closer
Poller cache:
Data Source: IRCFTP - Traffic - 192.168.0.4/3Com 3C920 Inte
RRD: C:\htdocs\cacti\rra\ircftp_traffic_in_10.rrd
Action: 0, OID: .1.3.6.1.2.1.2.2.1.16.65539 (Host: 192.168.0.4, Community: public)
Data Source: IRCFTP - Traffic - 192.168.0.4/3Com 3C920 Inte
RRD: C:\htdocs\cacti\rra\ircftp_traffic_in_10.rrd
Action: 0, OID: .1.3.6.1.2.1.2.2.1.10.65539 (Host: 192.168.0.4, Community: public)
No files show up in /cacti/rra yet.
Poller cache:
Data Source: IRCFTP - Traffic - 192.168.0.4/3Com 3C920 Inte
RRD: C:\htdocs\cacti\rra\ircftp_traffic_in_10.rrd
Action: 0, OID: .1.3.6.1.2.1.2.2.1.16.65539 (Host: 192.168.0.4, Community: public)
Data Source: IRCFTP - Traffic - 192.168.0.4/3Com 3C920 Inte
RRD: C:\htdocs\cacti\rra\ircftp_traffic_in_10.rrd
Action: 0, OID: .1.3.6.1.2.1.2.2.1.10.65539 (Host: 192.168.0.4, Community: public)
No files show up in /cacti/rra yet.
Last edited by ttyR2 on Sun Nov 14, 2004 10:01 pm, edited 1 time in total.
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Don't forget to post the Data Template Edit Screen JPG. You may have helped us solve a bug.
TheWitness
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?
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?
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
This one. My expectation is that your's is broken.
TheWitness.
TheWitness.
- Attachments
-
- DataTemplateInterface.JPG (160.26 KiB) Viewed 2613 times
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?
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?
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
You know, I was loosing patience with you. However, seeing your Data Template will have made both Ian's (author) and my weeks. You have just identified how our graph template problem is replacated.
Ok, just for you to know, you need to delete the duplicated items "Traffic In" and "Traffic Out".
You will delete just two not all of them. Hover over the text and look for ID's 54 and 55 in the Status Bar. You will keep those two and delete the others. This will fix your problem.
Thanks for sticking with it. Believe it or not, you helped us out.
TheWitness
Ok, just for you to know, you need to delete the duplicated items "Traffic In" and "Traffic Out".
You will delete just two not all of them. Hover over the text and look for ID's 54 and 55 in the Status Bar. You will keep those two and delete the others. This will fix your problem.
Thanks for sticking with it. Believe it or not, you helped us out.
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?
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?
Well I appreciate you being so patient.
Once I cleared out the two tabs, poller.php ran. There is a ircftp_traffic_in.10.rrd file in the /rra folder now. No graph tho.
When I enable graph debug mode, RRDTool Says: Error: invalid rpn expression 'a,8,*'
I did a search and found your response to the question in the Unix forum:
Please note the following:
'a,8.*'"
The "." must be a comma.
Where would I find this 'a,8,' to change it? Or is this totally unrelated to the Win32 install of Cacti?
Debug info for the Data Source:
Data Source Debug
c:\rrdtool\rrdtool.exe create \
C:\htdocs\cacti/rra/ircftp_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 \
Once I cleared out the two tabs, poller.php ran. There is a ircftp_traffic_in.10.rrd file in the /rra folder now. No graph tho.
When I enable graph debug mode, RRDTool Says: Error: invalid rpn expression 'a,8,*'
I did a search and found your response to the question in the Unix forum:
Please note the following:
'a,8.*'"
The "." must be a comma.
Where would I find this 'a,8,' to change it? Or is this totally unrelated to the Win32 install of Cacti?
Debug info for the Data Source:
Data Source Debug
c:\rrdtool\rrdtool.exe create \
C:\htdocs\cacti/rra/ircftp_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 \
Who is online
Users browsing this forum: No registered users and 0 guests