cactid dont graph bash scripts
Moderators: Developers, Moderators
cactid dont graph bash scripts
Hi we are running cacti-0.8.6h on solaris 9 server with cactid-0.8.6i.We dont have updates from some bash scripts, cbwfq with perl are running ok.
We run in debug mode:
07/19/2007 04:10:06 PM - CACTID: Poller[0] Host[54] DS[752] SCRIPT: /opt/cacti-0.8.6h/scripts/channels_active "x.x.x.x" "community", output: 1
but the rrd doesnt update.
Thanks in advance
We run in debug mode:
07/19/2007 04:10:06 PM - CACTID: Poller[0] Host[54] DS[752] SCRIPT: /opt/cacti-0.8.6h/scripts/channels_active "x.x.x.x" "community", output: 1
but the rrd doesnt update.
Thanks in advance
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Could be any number of problems. You have to follow Reinhards NAN debugging document. More than likely a permissions isssue.
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
I ve follow all steps of Reinhards NAN debbuging document but i cant fixed, i forget to comment that with the cmd.php poller all scripts are updated correctly.
This is the rrdinfo of one rrd
rrd_version = "0003"
step = 300
last_update = 1185218705
ds[dsp_active].type = "GAUGE"
ds[dsp_active].minimal_heartbeat = 600
ds[dsp_active].min = 0.0000000000e+00
ds[dsp_active].max = 1.0000000000e+06
ds[dsp_active].last_ds = "UNKN"
ds[dsp_active].value = 1.0000000000e+01
ds[dsp_active].unknown_sec = 0
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 = 5.01666666rrd_version = "0003"
step = 300
last_update = 1185218705
ds[dsp_active].type = "GAUGE"
ds[dsp_active].minimal_heartbeat = 600
ds[dsp_active].min = 0.0000000000e+00
ds[dsp_active].max = 1.0000000000e+06
ds[dsp_active].last_ds = "UNKN"
ds[dsp_active].value = 1.0000000000e+01
ds[dsp_active].unknown_sec = 0
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 = 5.0166666667e+00
rra[1].cdp_prep[0].unknown_datapoints = 3
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 = 5.0166666667e+00
rra[2].cdp_prep[0].unknown_datapoints = 15
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 = 5.0166666667e+00
rra[3].cdp_prep[0].unknown_datapoints = 231
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 = 3.0000000000e+00
rra[5].cdp_prep[0].unknown_datapoints = 3
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 = 3.0000000000e+00
rra[6].cdp_prep[0].unknown_datapoints = 15
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 = 3.0000000000e+00
rra[7].cdp_prep[0].unknown_datapoints = 231
rra[8].cf = "LAST"
rra[8].rows = 600
rra[8].pdp_per_row = 1
rra[8].xff = 5.0000000000e-01
rra[8].cdp_prep[0].value = NaN
rra[8].cdp_prep[0].unknown_datapoints = 0
rra[9].cf = "LAST"
rra[9].rows = 700
rra[9].pdp_per_row = 6
rra[9].xff = 5.0000000000e-01
rra[9].cdp_prep[0].value = 2.0166666667e+00
rra[9].cdp_prep[0].unknown_datapoints = 3
rra[10].cf = "LAST"
rra[10].rows = 775
rra[10].pdp_per_row = 24
rra[10].xff = 5.0000000000e-01
rra[10].cdp_prep[0].value = 2.0166666667e+00
rra[10].cdp_prep[0].unknown_datapoints = 15
rra[11].cf = "LAST"
rra[11].rows = 797
rra[11].pdp_per_row = 288
rra[11].xff = 5.0000000000e-01
rra[11].cdp_prep[0].value = 2.0166666667e+00
rra[11].cdp_prep[0].unknown_datapoints = 231
67e+00
rra[1].cdp_prep[0].unknown_datapoints = 3
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 = 5.0166666667e+00
rra[2].cdp_prep[0].unknown_datapoints = 15
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 = 5.0166666667e+00
rra[3].cdp_prep[0].unknown_datapoints = 231
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 = 3.0000000000e+00
rra[5].cdp_prep[0].unknown_datapoints = 3
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 = 3.0000000000e+00
rra[6].cdp_prep[0].unknown_datapoints = 15
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 = 3.0000000000e+00
rra[7].cdp_prep[0].unknown_datapoints = 231
rra[8].cf = "LAST"
rra[8].rows = 600
rra[8].pdp_per_row = 1
rra[8].xff = 5.0000000000e-01
rra[8].cdp_prep[0].value = NaN
rra[8].cdp_prep[0].unknown_datapoints = 0
rra[9].cf = "LAST"
rra[9].rows = 700
rra[9].pdp_per_row = 6
rra[9].xff = 5.0000000000e-01
rra[9].cdp_prep[0].value = 2.0166666667e+00
rra[9].cdp_prep[0].unknown_datapoints = 3
rra[10].cf = "LAST"
rra[10].rows = 775
rra[10].pdp_per_row = 24
rra[10].xff = 5.0000000000e-01
rra[10].cdp_prep[0].value = 2.0166666667e+00
rra[10].cdp_prep[0].unknown_datapoints = 15
rra[11].cf = "LAST"
rra[11].rows = 797
rra[11].pdp_per_row = 288
rra[11].xff = 5.0000000000e-01
rra[11].cdp_prep[0].value = 2.0166666667e+00
rra[11].cdp_prep[0].unknown_datapoints = 231
Thanks in advance
This is the rrdinfo of one rrd
rrd_version = "0003"
step = 300
last_update = 1185218705
ds[dsp_active].type = "GAUGE"
ds[dsp_active].minimal_heartbeat = 600
ds[dsp_active].min = 0.0000000000e+00
ds[dsp_active].max = 1.0000000000e+06
ds[dsp_active].last_ds = "UNKN"
ds[dsp_active].value = 1.0000000000e+01
ds[dsp_active].unknown_sec = 0
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 = 5.01666666rrd_version = "0003"
step = 300
last_update = 1185218705
ds[dsp_active].type = "GAUGE"
ds[dsp_active].minimal_heartbeat = 600
ds[dsp_active].min = 0.0000000000e+00
ds[dsp_active].max = 1.0000000000e+06
ds[dsp_active].last_ds = "UNKN"
ds[dsp_active].value = 1.0000000000e+01
ds[dsp_active].unknown_sec = 0
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 = 5.0166666667e+00
rra[1].cdp_prep[0].unknown_datapoints = 3
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 = 5.0166666667e+00
rra[2].cdp_prep[0].unknown_datapoints = 15
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 = 5.0166666667e+00
rra[3].cdp_prep[0].unknown_datapoints = 231
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 = 3.0000000000e+00
rra[5].cdp_prep[0].unknown_datapoints = 3
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 = 3.0000000000e+00
rra[6].cdp_prep[0].unknown_datapoints = 15
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 = 3.0000000000e+00
rra[7].cdp_prep[0].unknown_datapoints = 231
rra[8].cf = "LAST"
rra[8].rows = 600
rra[8].pdp_per_row = 1
rra[8].xff = 5.0000000000e-01
rra[8].cdp_prep[0].value = NaN
rra[8].cdp_prep[0].unknown_datapoints = 0
rra[9].cf = "LAST"
rra[9].rows = 700
rra[9].pdp_per_row = 6
rra[9].xff = 5.0000000000e-01
rra[9].cdp_prep[0].value = 2.0166666667e+00
rra[9].cdp_prep[0].unknown_datapoints = 3
rra[10].cf = "LAST"
rra[10].rows = 775
rra[10].pdp_per_row = 24
rra[10].xff = 5.0000000000e-01
rra[10].cdp_prep[0].value = 2.0166666667e+00
rra[10].cdp_prep[0].unknown_datapoints = 15
rra[11].cf = "LAST"
rra[11].rows = 797
rra[11].pdp_per_row = 288
rra[11].xff = 5.0000000000e-01
rra[11].cdp_prep[0].value = 2.0166666667e+00
rra[11].cdp_prep[0].unknown_datapoints = 231
67e+00
rra[1].cdp_prep[0].unknown_datapoints = 3
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 = 5.0166666667e+00
rra[2].cdp_prep[0].unknown_datapoints = 15
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 = 5.0166666667e+00
rra[3].cdp_prep[0].unknown_datapoints = 231
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 = 3.0000000000e+00
rra[5].cdp_prep[0].unknown_datapoints = 3
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 = 3.0000000000e+00
rra[6].cdp_prep[0].unknown_datapoints = 15
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 = 3.0000000000e+00
rra[7].cdp_prep[0].unknown_datapoints = 231
rra[8].cf = "LAST"
rra[8].rows = 600
rra[8].pdp_per_row = 1
rra[8].xff = 5.0000000000e-01
rra[8].cdp_prep[0].value = NaN
rra[8].cdp_prep[0].unknown_datapoints = 0
rra[9].cf = "LAST"
rra[9].rows = 700
rra[9].pdp_per_row = 6
rra[9].xff = 5.0000000000e-01
rra[9].cdp_prep[0].value = 2.0166666667e+00
rra[9].cdp_prep[0].unknown_datapoints = 3
rra[10].cf = "LAST"
rra[10].rows = 775
rra[10].pdp_per_row = 24
rra[10].xff = 5.0000000000e-01
rra[10].cdp_prep[0].value = 2.0166666667e+00
rra[10].cdp_prep[0].unknown_datapoints = 15
rra[11].cf = "LAST"
rra[11].rows = 797
rra[11].pdp_per_row = 288
rra[11].xff = 5.0000000000e-01
rra[11].cdp_prep[0].value = 2.0166666667e+00
rra[11].cdp_prep[0].unknown_datapoints = 231
Thanks in advance
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Or, alternatively use the SVN version (BRANCH-086), it has reverted to the prior method, although, if you elect, you can compile with the above mentioned technique. However, the default has gone back to POPENS which will work just fine. I will release as soon as I get a few days to package. It's running fine in multiple locations.
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Hi guys
Sorry for the delay, I was compiled the last SVN (0.8.6j) version of cactid but graphs from bash scripts continues without updates.I ve got declared the paths into script and Data Input Method.
This is my script
#!/bin/bash
/usr/local/bin/snmpwalk -v1 -c $2 $1 1.3.6.1.4.1.9.9.63.1.3.2.1.1 | /bin/grep Hex-STRING | /usr/bin/wc -l
Thanks in advance
Sorry for the delay, I was compiled the last SVN (0.8.6j) version of cactid but graphs from bash scripts continues without updates.I ve got declared the paths into script and Data Input Method.
This is my script
#!/bin/bash
/usr/local/bin/snmpwalk -v1 -c $2 $1 1.3.6.1.4.1.9.9.63.1.3.2.1.1 | /bin/grep Hex-STRING | /usr/bin/wc -l
Thanks in advance
Who is online
Users browsing this forum: No registered users and 2 guests