Cacti/WinXP configuration

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

Moderators: Developers, Moderators

ttyR2
Posts: 49
Joined: Sat Nov 13, 2004 1:30 am

Post by ttyR2 »

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.
ttyR2
Posts: 49
Joined: Sat Nov 13, 2004 1:30 am

Post by ttyR2 »

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

Post by TheWitness »

Your are making progress. Goto "Settings->View Poller Cache" and post the results. It appears that you have no poller items properly created.

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?
ttyR2
Posts: 49
Joined: Sat Nov 13, 2004 1:30 am

Post by ttyR2 »

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%.
Last edited by ttyR2 on Sun Nov 14, 2004 9:42 pm, edited 1 time in total.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

That would explain things. Edit your host. Goto Create Graphs and post a jpg of the output.

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 »

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.
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?
ttyR2
Posts: 49
Joined: Sat Nov 13, 2004 1:30 am

Post by ttyR2 »

The graph setup has me a bit confused (big suprise):

Image
ttyR2
Posts: 49
Joined: Sat Nov 13, 2004 1:30 am

Post by ttyR2 »

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.
Last edited by ttyR2 on Sun Nov 14, 2004 10:01 pm, edited 1 time in total.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Don't forget to post the Data Template Edit Screen JPG. You may have helped us solve a bug.

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?
ttyR2
Posts: 49
Joined: Sat Nov 13, 2004 1:30 am

Post by ttyR2 »

Which data template edit do you need a picture of?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

This one. My expectation is that your's is broken.

TheWitness.
Attachments
DataTemplateInterface.JPG
DataTemplateInterface.JPG (160.26 KiB) Viewed 2621 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?
ttyR2
Posts: 49
Joined: Sat Nov 13, 2004 1:30 am

Post by ttyR2 »

Here it is:

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

Post by TheWitness »

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
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?
ttyR2
Posts: 49
Joined: Sat Nov 13, 2004 1:30 am

Post by ttyR2 »

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 \
ttyR2
Posts: 49
Joined: Sat Nov 13, 2004 1:30 am

Post by ttyR2 »

In desperation, I nuked the device I was monitoring, all interfaces on said device, deleted all the graphs, and recreated the one device again. It's working now, althought I'm not sure what was broke before.

Thanks again for your help.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests