Why graphs all "0" ?

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
netzine21
Posts: 3
Joined: Mon Apr 28, 2008 8:35 pm

Why graphs all "0" ?

Post by netzine21 »

i do run script (lvm_netstat_tcp.pl) at cacti server and result is correct

/www/cacti/scripts/lvm_netstat_tcp.pl host 1 community_name 161 500

and result is like this

established:259 listen:0 timewait:64 timeclose:0 finwait1:0 finwait2:0 synsent:0 synrecv:0 closewait:0

but the cacti graphs all data is "0" :roll:

i use cacti Version 0.6.8.b
rrdtool Version 1.2

what can i do ?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I suppose, that at least one data source of the data template was left at the default MAX setting of 100. Please test as advised at the 2nd link of my sig
Reinhard
netzine21
Posts: 3
Joined: Mon Apr 28, 2008 8:35 pm

cacti don't get the script result!!

Post by netzine21 »

gandalf wrote:I suppose, that at least one data source of the data template was left at the default MAX setting of 100. Please test as advised at the 2nd link of my sig
Reinhard
Hi gandalf~

cacti graph don't get the data from the script as usally

i think cacti don't get the result data from the script foreach()

test....

1. i set the variable($_estab, and so on) to the fixed value
ex) $_estab = 100;
in that case cacti get the data and shows the graph
2. i set the variable($_estab, and so on) to the fixed value
foreach ( @_output ) {
print $_;
$_estab = 100;
$_listen++ if /LISTEN/;
$_timewait++ if /TIMEWAIT/;
$_timeclose++ if /TIMECLOSE/;
$_finwait1++ if /FINWAIT1/;
$_finwait2++ if /FINWAIT2/;
$_synsent++ if /SYNSENT/;
$_synrecv++ if /SYNRECV/;
$_closewait++ if /CLOSEWAIT/;
}
in that case cacti don't get data and shows the "0" as usally
Why this problem happen?
i don't
please give me the advice

thanks in advanced ^^

i use cacti 0.8.7.b and rrdtool 1.0 ver
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Why graphs all "0" ?

Post by gandalf »

But this output looks very good
netzine21 wrote:established:259 listen:0 timewait:64 timeclose:0 finwait1:0 finwait2:0 synsent:0 synrecv:0 closewait:0
If the data does not show up even if this output is shown, I suppose that storing data is the issue (as I told already). I can't see anything going wrong from the above. So I can't see why the "foreach" should be an issue.
Reinhard
krpaum
Posts: 13
Joined: Mon Apr 21, 2008 2:09 am

Post by krpaum »

Hi, I have a problem with creating graph. I have scripts for monitor session on server but my graph shows all zero. I have tried to fetch rdd file and all output is NAN

I use cacti version 0.8.7b
rrdtool 1.2x
OS window
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

krpaum wrote:Hi, I have a problem with creating graph. I have scripts for monitor session on server but my graph shows all zero. I have tried to fetch rdd file and all output is NAN

I use cacti version 0.8.7b
rrdtool 1.2x
OS window
Please do not hijack threads. And no crossposts, please. I already answere to the other thread
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests