Perl script por firewall conexions working, but no graph

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
chileno
Posts: 4
Joined: Thu Aug 04, 2005 4:50 pm

Perl script por firewall conexions working, but no graph

Post by chileno »

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.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

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
chileno
Posts: 4
Joined: Thu Aug 04, 2005 4:50 pm

Post by chileno »

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
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

You're quite right. You'll have to get rid of those error messages.
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests