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"
i use cacti Version 0.6.8.b
rrdtool Version 1.2
what can i do ?
Why graphs all "0" ?
Moderators: Developers, Moderators
cacti don't get the script result!!
Hi gandalf~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
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
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Why graphs all "0" ?
But this output looks very good
Reinhard
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.netzine21 wrote:established:259 listen:0 timewait:64 timeclose:0 finwait1:0 finwait2:0 synsent:0 synrecv:0 closewait:0
Reinhard
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Please do not hijack threads. And no crossposts, please. I already answere to the other threadkrpaum 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
Reinhard
Who is online
Users browsing this forum: No registered users and 2 guests