i got a script that shows the number of conecctions to a specific Ip on my packet filter state table, so I try to create a graph for that, but is not showing anything, the graph looks ok, but no data is graph..... can anyone tell me how to graph data from scripts ?
thanks in advance.
Perl script por firewall conexions working, but no graph
Moderators: Developers, Moderators
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
There's a guide at http://www.cacti.net/downloads/docs/htm ... thods.html. If you still are experiencing problems, it would help to see
- the output of your script when run from cli
- a snipped of the cacti.log file when run in DEBUG mode
Reinhard
- the output of your script when run from cli
- a snipped of the cacti.log file when run in DEBUG mode
Reinhard
THANKS FOR YOUR QUICK REPLY lvm
Ok,. looks like the whole problem is because when I run the script I get this output:
machine#perl state_table_firewall.pl
No ALTQ support in kernel
ALTQ related functions disabled
139machine#
as you can see, I get a lot of trash before the output cacti is searching for "139" (number of conections to specific IP)
I checked on the cacti log file, and everything is fine, with the graph creation and data gathering, but all the data I'm getting from the script is the value "0", so I guess I need to get rid of all the "extra" trash I'm getting..... I need to filter the output to just grab the number I need.
Anyone can tell me how to do that ????
Thanks in advance
Ok,. looks like the whole problem is because when I run the script I get this output:
machine#perl state_table_firewall.pl
No ALTQ support in kernel
ALTQ related functions disabled
139machine#
as you can see, I get a lot of trash before the output cacti is searching for "139" (number of conections to specific IP)
I checked on the cacti log file, and everything is fine, with the graph creation and data gathering, but all the data I'm getting from the script is the value "0", so I guess I need to get rid of all the "extra" trash I'm getting..... I need to filter the output to just grab the number I need.
Anyone can tell me how to do that ????
Thanks in advance
Who is online
Users browsing this forum: No registered users and 1 guest