http://www.cacti.net/downloads/docs/htm ... graph.html
hey i did that STEP BY STEP
all other stuff work
i got memory remote stuff all ok..
now im trying to just run one simple thing this example and it wont..
also im using keychain and sourcing it from .sh file before doing my stuff
i dont even see any referencve to my scripts or rrd file in cacti.log
please advise
my Input String from data input methods
/usr/local/bin/bash /myweb/httpdocs/scripts/getchannels.sh
if i run manually i get the number its supposed to give.. but i neever see data in graphs..
is there a way to call poller JUST for this rrd and see wht it does ?
logs are useless
what rrd file is made
/usr/local/bin/rrdtool create \
/myweb/httpdocs/rra/nbrchan_60.rrd \
--step 300 \
DS:nbrchan:GAUGE:600:0:300 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
heres the rdttool info for it
rrdtool info nbrchan_60.rrd
filename = "nbrchan_60.rrd"
rrd_version = "0001"
step = 300
last_update = 1113530517
ds[nbrchan].type = "GAUGE"
ds[nbrchan].minimal_heartbeat = 600
ds[nbrchan].min = 0.0000000000e+00
ds[nbrchan].max = 3.0000000000e+02
ds[nbrchan].last_ds = "UNKN"
ds[nbrchan].value = 0.0000000000e+00
ds[nbrchan].unknown_sec = 117
rra[0].cf = "AVERAGE"
rra[0].rows = 600
rra[0].pdp_per_row = 1
rra[0].xff = 5.0000000000e-01
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0
rra[1].cf = "AVERAGE"
rra[1].rows = 700
rra[1].pdp_per_row = 6
rra[1].xff = 5.0000000000e-01
rra[1].cdp_prep[0].value = NaN
rra[1].cdp_prep[0].unknown_datapoints = 0
rra[2].cf = "AVERAGE"
rra[2].rows = 775
rra[2].pdp_per_row = 24
rra[2].xff = 5.0000000000e-01
rra[2].cdp_prep[0].value = NaN
rra[2].cdp_prep[0].unknown_datapoints = 0
rra[3].cf = "AVERAGE"
rra[3].rows = 797
rra[3].pdp_per_row = 288
rra[3].xff = 5.0000000000e-01
rra[3].cdp_prep[0].value = NaN
rra[3].cdp_prep[0].unknown_datapoints = 24
rra[4].cf = "MAX"
rra[4].rows = 600
rra[4].pdp_per_row = 1
rra[4].xff = 5.0000000000e-01
rra[4].cdp_prep[0].value = NaN
rra[4].cdp_prep[0].unknown_datapoints = 0
rra[5].cf = "MAX"
rra[5].rows = 700
rra[5].pdp_per_row = 6
rra[5].xff = 5.0000000000e-01
rra[5].cdp_prep[0].value = NaN
rra[5].cdp_prep[0].unknown_datapoints = 0
rra[6].cf = "MAX"
rra[6].rows = 775
rra[6].pdp_per_row = 24
rra[6].xff = 5.0000000000e-01
rra[6].cdp_prep[0].value = NaN
rra[6].cdp_prep[0].unknown_datapoints = 0
rra[7].cf = "MAX"
rra[7].rows = 797
rra[7].pdp_per_row = 288
rra[7].xff = 5.0000000000e-01
rra[7].cdp_prep[0].value = NaN
rra[7].cdp_prep[0].unknown_datapoints = 24
basicaly works but custom data source from example page NOT
Moderators: Developers, Moderators
can someone pose a how to to create a graph in my case a concurent calls on a pbx server
i run a getchannels.sh shell with a ssh tuneling and it returns
a 3 digit number
my graphs still never contain data...
HOW can i log the dat received or error it does ? whats the options needed to be check in the settings for loggging..
i got lots of hosts being checked and seem this RRD never gets done
its a no host: get chanels thing
why doesnt cacti run it ?
i run a getchannels.sh shell with a ssh tuneling and it returns
a 3 digit number
my graphs still never contain data...
HOW can i log the dat received or error it does ? whats the options needed to be check in the settings for loggging..
i got lots of hosts being checked and seem this RRD never gets done
its a no host: get chanels thing
why doesnt cacti run it ?
In order for Cacti to latch on to values returned by a script, it should be in the format: Name:value name2:value2 etc Make sure there is no trailing space.
You can turn on debugging the loggin section to see exactly what cacti is doing.
You can turn on debugging the loggin section to see exactly what cacti is doing.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
ok so you saying cacti themselves don't know how to do this..BSOD2600 wrote:In order for Cacti to latch on to values returned by a script, it should be in the format: Name:value name2:value2 etc Make sure there is no trailing space.
You can turn on debugging the loggin section to see exactly what cacti is doing.
from
http://www.cacti.net/downloads/docs/htm ... graph.html
Have a tested script ready to go. I used the following script located in /home/cactiuser/bin called random2.pl:
#!/usr/bin/perl -w
print int(rand(10));
that returns only a number
not the varname
also i did what u said..
thing is
CACTI is not even running this...
I see not mention of this in logs
and Data Source Active =yes
weird
the rrd NEVER gets updated
or written to
so i coped pasted the debug one and chmod 777 and chown cacti:cacti
still nothing
You should read this: http://www.cacti.net/downloads/docs/htm ... cacti.html
To turn on debugging for logging to go Settings -> general. turn off Web Events logging. Change the Poller Logging Level to Debug. Post one cycle of the poller with debugging.
To turn on debugging for logging to go Settings -> general. turn off Web Events logging. Change the Poller Logging Level to Debug. Post one cycle of the poller with debugging.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Who is online
Users browsing this forum: No registered users and 0 guests