Cannot get rrd tool tune command syntax correct.
Moderators: Developers, Moderators
-
- Posts: 14
- Joined: Wed May 11, 2011 3:10 pm
Cannot get rrd tool tune command syntax correct.
I cannot seem to get the command syntax right on changing a ds max value on a graph with this command.
rrdtool tune <rrd file> --maximum <ds-name>:<new ds maximum>
[root@localhost rra]# rrdtool tune dp_ap_cc-21_temp_743.rrd --maximum ds.[temp].max:100.0000000000e+02
ERROR: unknown data source name 'ds'
My DS value is ds[temp].max as underlined in the info run command.
The error I am getting is underlined as well. I tried changing the settings on the graph templates, but it didn’t reflect the changes.
Here is my poller output
02/24/2012 11:04:05 AM - SPINE: Poller[0] Host[16] DS[744] SCRIPT: /var/www/html/scripts/getCanopyApStats.pl 10.16.0.21 Canopy tempF, output: U
Working snmp oid which is correct in the perl script I am using.
[root@localhost rra]# snmpget -c Canopy -v 2c 10.16.0.21 .1.3.6.1.4.1.161.19.3.3.1.36.0
SNMPv2-SMI::enterprises.161.19.3.3.1.36.0 = INTEGER: 70
70 is the Fahrenheit degree value.
I also tried changing the heartbeat in the graph template, but that didn’t work either I guess. I use spine poller with 300 second intervals. Same as Cron.
[root@localhost rra]# rrdtool info dp_ap_cc-21_temp_743.rrd filename = "dp_ap_cc-21_temp_743.rrd"
rrd_version = "0003"
step = 60
last_update = 1330102925
ds[temp].type = "GAUGE"
ds[temp].minimal_heartbeat = 120
ds[temp].min = 0.0000000000e+00
ds[temp].max = NaN
ds[temp].last_ds = "U"
ds[temp].value = NaN
ds[temp].unknown_sec = 5
rra[0].cf = "AVERAGE"
rra[0].rows = 10080
rra[0].cur_row = 5005
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 = 25920
rra[1].cur_row = 20209
rra[1].pdp_per_row = 1
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 = 9000
rra[2].cur_row = 7557
rra[2].pdp_per_row = 6
rra[2].xff = 5.0000000000e-01
rra[2].cdp_prep[0].value = NaN
rra[2].cdp_prep[0].unknown_datapoints = 2
rra[3].cf = "AVERAGE"
rra[3].rows = 2250
rra[3].cur_row = 1592
rra[3].pdp_per_row = 24
rra[3].xff = 5.0000000000e-01
rra[3].cdp_prep[0].value = NaN
rra[3].cdp_prep[0].unknown_datapoints = 14
rra[4].cf = "AVERAGE"
rra[4].rows = 797
rra[4].cur_row = 581
rra[4].pdp_per_row = 288
rra[4].xff = 5.0000000000e-01
rra[4].cdp_prep[0].value = NaN
rra[4].cdp_prep[0].unknown_datapoints = 158
rra[5].cf = "MIN"
rra[5].rows = 10080
rra[5].cur_row = 5339
rra[5].pdp_per_row = 1
rra[5].xff = 5.0000000000e-01
rra[5].cdp_prep[0].value = NaN
rra[5].cdp_prep[0].unknown_datapoints = 0
rra[6].cf = "MIN"
rra[6].rows = 25920
rra[6].cur_row = 13901
rra[6].pdp_per_row = 1
rra[6].xff = 5.0000000000e-01
rra[6].cdp_prep[0].value = NaN
rra[6].cdp_prep[0].unknown_datapoints = 0
rra[7].cf = "MIN"
rra[7].rows = 9000
rra[7].cur_row = 3056
rra[7].pdp_per_row = 6
rra[7].xff = 5.0000000000e-01
rra[7].cdp_prep[0].value = NaN
rra[7].cdp_prep[0].unknown_datapoints = 2
rra[8].cf = "MIN"
rra[8].rows = 2250
rra[8].cur_row = 1828
rra[8].pdp_per_row = 24
rra[8].xff = 5.0000000000e-01
rra[8].cdp_prep[0].value = NaN
rra[8].cdp_prep[0].unknown_datapoints = 14
rra[9].cf = "MIN"
rra[9].rows = 797
rra[9].cur_row = 772
rra[9].pdp_per_row = 288
rra[9].xff = 5.0000000000e-01
rra[9].cdp_prep[0].value = NaN
rra[9].cdp_prep[0].unknown_datapoints = 158
rra[10].cf = "MAX"
rra[10].rows = 10080
rra[10].cur_row = 6741
rra[10].pdp_per_row = 1
rra[10].xff = 5.0000000000e-01
rra[10].cdp_prep[0].value = NaN
rra[10].cdp_prep[0].unknown_datapoints = 0
rra[11].cf = "MAX"
rra[11].rows = 25920
rra[11].cur_row = 10651
rra[11].pdp_per_row = 1
rra[11].xff = 5.0000000000e-01
rra[11].cdp_prep[0].value = NaN
rra[11].cdp_prep[0].unknown_datapoints = 0
rra[12].cf = "MAX"
rra[12].rows = 2250
rra[12].cur_row = 2190
rra[12].pdp_per_row = 24
rra[12].xff = 5.0000000000e-01
rra[12].cdp_prep[0].value = NaN
rra[12].cdp_prep[0].unknown_datapoints = 14
rra[13].cf = "MAX"
rra[13].rows = 9000
rra[13].cur_row = 976
rra[13].pdp_per_row = 6
rra[13].xff = 5.0000000000e-01
rra[13].cdp_prep[0].value = NaN
rra[13].cdp_prep[0].unknown_datapoints = 2
rra[14].cf = "MAX"
rra[14].rows = 797
rra[14].cur_row = 565
rra[14].pdp_per_row = 288
rra[14].xff = 5.0000000000e-01
rra[14].cdp_prep[0].value = NaN
rra[14].cdp_prep[0].unknown_datapoints = 158
rra[15].cf = "LAST"
rra[15].rows = 10080
rra[15].cur_row = 3229
rra[15].pdp_per_row = 1
rra[15].xff = 5.0000000000e-01
rra[15].cdp_prep[0].value = NaN
rra[15].cdp_prep[0].unknown_datapoints = 0
rra[16].cf = "LAST"
rra[16].rows = 25920
rra[16].cur_row = 24837
rra[16].pdp_per_row = 1
rra[16].xff = 5.0000000000e-01
rra[16].cdp_prep[0].value = NaN
rra[16].cdp_prep[0].unknown_datapoints = 0
rra[17].cf = "LAST"
rra[17].rows = 2250
rra[17].cur_row = 426
rra[17].pdp_per_row = 24
rra[17].xff = 5.0000000000e-01
rra[17].cdp_prep[0].value = NaN
rra[17].cdp_prep[0].unknown_datapoints = 14
rra[18].cf = "LAST"
rra[18].rows = 9000
rra[18].cur_row = 6682
rra[18].pdp_per_row = 6
rra[18].xff = 5.0000000000e-01
rra[18].cdp_prep[0].value = NaN
rra[18].cdp_prep[0].unknown_datapoints = 2
rra[19].cf = "LAST"
rra[19].rows = 797
rra[19].cur_row = 521
rra[19].pdp_per_row = 288
rra[19].xff = 5.0000000000e-01
rra[19].cdp_prep[0].value = NaN
rra[19].cdp_prep[0].unknown_datapoints = 158
Thanks for you help. The forums have been a wealth of knowledge for our company, and we are happy to have chosen Cacti over other NMS applications. Thanks for all the great work-Everyone!
rrdtool tune <rrd file> --maximum <ds-name>:<new ds maximum>
[root@localhost rra]# rrdtool tune dp_ap_cc-21_temp_743.rrd --maximum ds.[temp].max:100.0000000000e+02
ERROR: unknown data source name 'ds'
My DS value is ds[temp].max as underlined in the info run command.
The error I am getting is underlined as well. I tried changing the settings on the graph templates, but it didn’t reflect the changes.
Here is my poller output
02/24/2012 11:04:05 AM - SPINE: Poller[0] Host[16] DS[744] SCRIPT: /var/www/html/scripts/getCanopyApStats.pl 10.16.0.21 Canopy tempF, output: U
Working snmp oid which is correct in the perl script I am using.
[root@localhost rra]# snmpget -c Canopy -v 2c 10.16.0.21 .1.3.6.1.4.1.161.19.3.3.1.36.0
SNMPv2-SMI::enterprises.161.19.3.3.1.36.0 = INTEGER: 70
70 is the Fahrenheit degree value.
I also tried changing the heartbeat in the graph template, but that didn’t work either I guess. I use spine poller with 300 second intervals. Same as Cron.
[root@localhost rra]# rrdtool info dp_ap_cc-21_temp_743.rrd filename = "dp_ap_cc-21_temp_743.rrd"
rrd_version = "0003"
step = 60
last_update = 1330102925
ds[temp].type = "GAUGE"
ds[temp].minimal_heartbeat = 120
ds[temp].min = 0.0000000000e+00
ds[temp].max = NaN
ds[temp].last_ds = "U"
ds[temp].value = NaN
ds[temp].unknown_sec = 5
rra[0].cf = "AVERAGE"
rra[0].rows = 10080
rra[0].cur_row = 5005
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 = 25920
rra[1].cur_row = 20209
rra[1].pdp_per_row = 1
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 = 9000
rra[2].cur_row = 7557
rra[2].pdp_per_row = 6
rra[2].xff = 5.0000000000e-01
rra[2].cdp_prep[0].value = NaN
rra[2].cdp_prep[0].unknown_datapoints = 2
rra[3].cf = "AVERAGE"
rra[3].rows = 2250
rra[3].cur_row = 1592
rra[3].pdp_per_row = 24
rra[3].xff = 5.0000000000e-01
rra[3].cdp_prep[0].value = NaN
rra[3].cdp_prep[0].unknown_datapoints = 14
rra[4].cf = "AVERAGE"
rra[4].rows = 797
rra[4].cur_row = 581
rra[4].pdp_per_row = 288
rra[4].xff = 5.0000000000e-01
rra[4].cdp_prep[0].value = NaN
rra[4].cdp_prep[0].unknown_datapoints = 158
rra[5].cf = "MIN"
rra[5].rows = 10080
rra[5].cur_row = 5339
rra[5].pdp_per_row = 1
rra[5].xff = 5.0000000000e-01
rra[5].cdp_prep[0].value = NaN
rra[5].cdp_prep[0].unknown_datapoints = 0
rra[6].cf = "MIN"
rra[6].rows = 25920
rra[6].cur_row = 13901
rra[6].pdp_per_row = 1
rra[6].xff = 5.0000000000e-01
rra[6].cdp_prep[0].value = NaN
rra[6].cdp_prep[0].unknown_datapoints = 0
rra[7].cf = "MIN"
rra[7].rows = 9000
rra[7].cur_row = 3056
rra[7].pdp_per_row = 6
rra[7].xff = 5.0000000000e-01
rra[7].cdp_prep[0].value = NaN
rra[7].cdp_prep[0].unknown_datapoints = 2
rra[8].cf = "MIN"
rra[8].rows = 2250
rra[8].cur_row = 1828
rra[8].pdp_per_row = 24
rra[8].xff = 5.0000000000e-01
rra[8].cdp_prep[0].value = NaN
rra[8].cdp_prep[0].unknown_datapoints = 14
rra[9].cf = "MIN"
rra[9].rows = 797
rra[9].cur_row = 772
rra[9].pdp_per_row = 288
rra[9].xff = 5.0000000000e-01
rra[9].cdp_prep[0].value = NaN
rra[9].cdp_prep[0].unknown_datapoints = 158
rra[10].cf = "MAX"
rra[10].rows = 10080
rra[10].cur_row = 6741
rra[10].pdp_per_row = 1
rra[10].xff = 5.0000000000e-01
rra[10].cdp_prep[0].value = NaN
rra[10].cdp_prep[0].unknown_datapoints = 0
rra[11].cf = "MAX"
rra[11].rows = 25920
rra[11].cur_row = 10651
rra[11].pdp_per_row = 1
rra[11].xff = 5.0000000000e-01
rra[11].cdp_prep[0].value = NaN
rra[11].cdp_prep[0].unknown_datapoints = 0
rra[12].cf = "MAX"
rra[12].rows = 2250
rra[12].cur_row = 2190
rra[12].pdp_per_row = 24
rra[12].xff = 5.0000000000e-01
rra[12].cdp_prep[0].value = NaN
rra[12].cdp_prep[0].unknown_datapoints = 14
rra[13].cf = "MAX"
rra[13].rows = 9000
rra[13].cur_row = 976
rra[13].pdp_per_row = 6
rra[13].xff = 5.0000000000e-01
rra[13].cdp_prep[0].value = NaN
rra[13].cdp_prep[0].unknown_datapoints = 2
rra[14].cf = "MAX"
rra[14].rows = 797
rra[14].cur_row = 565
rra[14].pdp_per_row = 288
rra[14].xff = 5.0000000000e-01
rra[14].cdp_prep[0].value = NaN
rra[14].cdp_prep[0].unknown_datapoints = 158
rra[15].cf = "LAST"
rra[15].rows = 10080
rra[15].cur_row = 3229
rra[15].pdp_per_row = 1
rra[15].xff = 5.0000000000e-01
rra[15].cdp_prep[0].value = NaN
rra[15].cdp_prep[0].unknown_datapoints = 0
rra[16].cf = "LAST"
rra[16].rows = 25920
rra[16].cur_row = 24837
rra[16].pdp_per_row = 1
rra[16].xff = 5.0000000000e-01
rra[16].cdp_prep[0].value = NaN
rra[16].cdp_prep[0].unknown_datapoints = 0
rra[17].cf = "LAST"
rra[17].rows = 2250
rra[17].cur_row = 426
rra[17].pdp_per_row = 24
rra[17].xff = 5.0000000000e-01
rra[17].cdp_prep[0].value = NaN
rra[17].cdp_prep[0].unknown_datapoints = 14
rra[18].cf = "LAST"
rra[18].rows = 9000
rra[18].cur_row = 6682
rra[18].pdp_per_row = 6
rra[18].xff = 5.0000000000e-01
rra[18].cdp_prep[0].value = NaN
rra[18].cdp_prep[0].unknown_datapoints = 2
rra[19].cf = "LAST"
rra[19].rows = 797
rra[19].cur_row = 521
rra[19].pdp_per_row = 288
rra[19].xff = 5.0000000000e-01
rra[19].cdp_prep[0].value = NaN
rra[19].cdp_prep[0].unknown_datapoints = 158
Thanks for you help. The forums have been a wealth of knowledge for our company, and we are happy to have chosen Cacti over other NMS applications. Thanks for all the great work-Everyone!
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Cannot get rrd tool tune command syntax correct.
rrdtool tune dp_ap_cc-21_temp_743.rrd --maximum temp:100
should do. In case you want a different MAX (e.g. 200), change the last number accordingly
R.
should do. In case you want a different MAX (e.g. 200), change the last number accordingly
R.
-
- Posts: 14
- Joined: Wed May 11, 2011 3:10 pm
Re: Cannot get rrd tool tune command syntax correct.
Thank you for the lightning fast response. I ran the command and now I can see the changes on the RRD file as well as the proper poller settings of 300.
Checked permisions on the new rrd file, and changed ownership to match everything else in case that was the problem. I am using cactiez 8.7c so Apache is my default user for cacti tasks.
Still getting a nan value and I am not sure why. Snmp get works fine with the OID. Can you think of anything that might help me get it working right? Poller still shows a output of U
SCRIPT: /var/www/html/scripts/getCanopyApStats.pl 10.16.0.21 Canopy tempF, output: U
[root@localhost rra]# rrdtool info dp_ap_cc-21_temp_744.rrd | grep ds
ds[temp].type = "GAUGE"
ds[temp].minimal_heartbeat = 300
ds[temp].min = 0.0000000000e+00
ds[temp].max = 1.0000000000e+02
ds[temp].last_ds = "U"
ds[temp].value = NaN
ds[temp].unknown_sec = 5
[root@localhost rra]#
Checked permisions on the new rrd file, and changed ownership to match everything else in case that was the problem. I am using cactiez 8.7c so Apache is my default user for cacti tasks.
Still getting a nan value and I am not sure why. Snmp get works fine with the OID. Can you think of anything that might help me get it working right? Poller still shows a output of U
SCRIPT: /var/www/html/scripts/getCanopyApStats.pl 10.16.0.21 Canopy tempF, output: U
[root@localhost rra]# rrdtool info dp_ap_cc-21_temp_744.rrd | grep ds
ds[temp].type = "GAUGE"
ds[temp].minimal_heartbeat = 300
ds[temp].min = 0.0000000000e+00
ds[temp].max = 1.0000000000e+02
ds[temp].last_ds = "U"
ds[temp].value = NaN
ds[temp].unknown_sec = 5
[root@localhost rra]#
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Cannot get rrd tool tune command syntax correct.
This is an issue with the script then. You know my debugging help already? This will show how to debug step-by-stepvincentmr9 wrote:Poller still shows a output of U
SCRIPT: /var/www/html/scripts/getCanopyApStats.pl 10.16.0.21 Canopy tempF, output: U
R.
-
- Posts: 14
- Joined: Wed May 11, 2011 3:10 pm
Re: Cannot get rrd tool tune command syntax correct.
Thanks I agree. I am running the command but cannot get any output
[root@localhost bin]# /usr/bin/perl /var/www/html/scripts/getCanopyApStats.pl
I just get sent to another bash prompt with out displaying any output.
[root@localhost bin]# /usr/bin/perl /var/www/html/scripts/getCanopyApStats.pl
I just get sent to another bash prompt with out displaying any output.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Cannot get rrd tool tune command syntax correct.
I'm quite sure, that this script requires at least a parameter to know which Canopy device to pollvincentmr9 wrote:Thanks I agree. I am running the command but cannot get any output
[root@localhost bin]# /usr/bin/perl /var/www/html/scripts/getCanopyApStats.pl
I just get sent to another bash prompt with out displaying any output.
R.
-
- Posts: 14
- Joined: Wed May 11, 2011 3:10 pm
Re: Cannot get rrd tool tune command syntax correct.
Yes, here is part of the script that pertains to the temperature graph.
elsif ($argv2 eq "tempF") {
$string = `snmpget -v 2c -c $argv1 $argv0 .1.3.6.1.4.1.161.19.3.3.1.36.0`;
$string =~ s/.*C\///;
$string =~ s/°\;F\"\n//;
print $string;
elsif ($argv2 eq "tempF") {
$string = `snmpget -v 2c -c $argv1 $argv0 .1.3.6.1.4.1.161.19.3.3.1.36.0`;
$string =~ s/.*C\///;
$string =~ s/°\;F\"\n//;
print $string;
- Attachments
-
- getCanopyApStats.pl
- get canopy AP stats script
- (1.63 KiB) Downloaded 134 times
-
- Posts: 14
- Joined: Wed May 11, 2011 3:10 pm
Re: Cannot get rrd tool tune command syntax correct.
On the instructions what does the P1 and P2 stand for?
For scripts, run them as cactiuser from cli to check basic functionality. E.g. for a perl script named your-perl-script.pl with parameters “p1 p2” under *nix this would look like:
su - cactiuser
/full/path/to/perl your-perl-script.pl p1 p2
... (check output)
For scripts, run them as cactiuser from cli to check basic functionality. E.g. for a perl script named your-perl-script.pl with parameters “p1 p2” under *nix this would look like:
su - cactiuser
/full/path/to/perl your-perl-script.pl p1 p2
... (check output)
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Cannot get rrd tool tune command syntax correct.
p stands for "parameter". Depending on the script you may have 0 to n parameters. Usually, the script owner will tell you which parameters are required
R.
R.
-
- Posts: 14
- Joined: Wed May 11, 2011 3:10 pm
Re: Cannot get rrd tool tune command syntax correct.
Thanks for helping me with this Gandalf. I am currently working with bsod2600 on getting his canopy scripts working. I hate the fact that I have wasted your time, or not provided anything educational to the forums. Maybe I can soon send some worthy scripts that will help the Cacti community. I truly get a lot of the program and thanks to everyone for all their help.
Who is online
Users browsing this forum: No registered users and 5 guests