(sovled)Trying to do TARGET textfile , not work

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
hsyah
Posts: 4
Joined: Sat Sep 26, 2020 8:59 am

(sovled)Trying to do TARGET textfile , not work

Post by hsyah »

Excuse me, which part is wrong,Please help me


LINK link1
VIASTYLE angled
INFOURL http://x.x.x.x/id=21829/
OVERLIBGRAPH http://http://x.x.x.x/id=21829/&type=po ... &legend=no
INBWFORMAT {link:this:bandwidth_in:%k} {link:this:inpercent:%.1f}%
OUTBWFORMAT {link:this:bandwidth_out:%k} {link:this:outpercent:%.1f}%
TARGET ./1.txt
NODES node1 node2
VIA 1574 24

/opt/html/plugins/Weathermap/1.txt
[root@lWeathermap]#

[root@lWeathermap]# chown apache:apache 1.txt
[root@Weathermap]# cat 1.txt
link1 1M 3M
link2 2M 4M
[root@Weathermap]#

chrome check 1.txt
http://x.x.x.x/plugins/Weathermap/1.txt

chrome show
link1 1M 3M
link2 2M 4M


solved by Use TAB key , Don't use the blank key

Tab-separated text
TARGET textfile
For tab-delimited data files, the format is plain-text, with three tab-seperated columns. The first one is a linkname, and the second and third are traffic-in and traffic-out, respectively. The linkname should match the name in the configuration file. This allows you to create one text file for the entire map from some outside source. Traffic in & out values can use the same "K,M,G,T" abbreviated forms as the BANDWIDTH configuration command. The file should have an extension of .txt or .tsv to be recognised as a tab-delimited file by Weathermap.

A suitable tab-delimited data file
link1 3M 4M
link2 66K 1.8M
link3 34.6K 113
Attachments
截圖 2020-09-26 下午10.10.16.jpg
截圖 2020-09-26 下午10.10.16.jpg (10.39 KiB) Viewed 5661 times
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: (sovled)Trying to do TARGET textfile , not work

Post by Howie »

Yep. When it says tab-separated it does mean tab-separated! :D
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests