ERROR: unknown option '--slope-mode'

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
MrKeith
Posts: 6
Joined: Fri Oct 06, 2006 1:54 pm

ERROR: unknown option '--slope-mode'

Post by MrKeith »

Hi. I'm using RRDTool 1.2.15 and my setting in Cacti for RRDTool Utility Version is set to 1.2.x. Graphs aren't getting generated.

RRDTool Command:

/usr/local/rrdtool-1.2.15/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Central Library - CPU Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="percent" \
--slope-mode \
DEF:a="/usr/local/groundwork/apache2/htdocs/cacti/rra/central_library_5min_cpu_52.rrd":5min_cpu:AVERAGE \
AREA:a#FF0000:"CPU Usage" \
GPRINT:a:LAST:"Current\:%8.0lf" \
GPRINT:a:AVERAGE:"Average\:%8.0lf" \
GPRINT:a:MAX:"Maximum\:%8.0lf"


RRDTool Says:

ERROR: unknown option '--slope-mode'


If I change my setting to 1.0.x I do get graphs but why isn't it working like it's supposed to? I was running RRDTool 1.2.12 before this and getting the same error which prompted the upgrade to 1.2.15.

Thanks for any help.
MrKeith
Posts: 6
Joined: Fri Oct 06, 2006 1:54 pm

Post by MrKeith »

If I run that command from a terminal window it seems to work as I get a large dump of binary data to the screen.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Double check the path of the rrdtool executable in the Cacti settings.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
MrKeith
Posts: 6
Joined: Fri Oct 06, 2006 1:54 pm

Post by MrKeith »

It's correct. Copy and paste from the settings window to a terminal:

darth:~ # /usr/local/rrdtool-1.2.15/bin/rrdtool
RRDtool 1.2.15 Copyright 1997-2006 by Tobias Oetiker <tobi@oetiker.ch>
Compiled Oct 6 2006 13:21:46

Usage: rrdtool [options] command command_options

Valid commands: create, update, updatev, graph, dump, restore,
last, first, info, fetch, tune, resize, xport

RRDtool is distributed under the Terms of the GNU General
Public License Version 2. (www.gnu.org/copyleft/gpl.html)

For more information read the RRD manpages

darth:~ #
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Using the mysql client run the following query and post the results:

Code: Select all

select value from settings where name = 'path_rrdtool';
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
MrKeith
Posts: 6
Joined: Fri Oct 06, 2006 1:54 pm

Post by MrKeith »

That looks good too.

Code: Select all

mysql> select value from settings where name = 'path_rrdtool';
+---------------------------------------+
| value                                 |
+---------------------------------------+
| /usr/local/rrdtool-1.2.15/bin/rrdtool |
+---------------------------------------+
1 row in set (0.00 sec)

mysql>
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Web server running in a chroot?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
MrKeith
Posts: 6
Joined: Fri Oct 06, 2006 1:54 pm

Post by MrKeith »

Sorry, you lost me on that one. :)
Hiney
Cacti User
Posts: 56
Joined: Mon Oct 16, 2006 11:50 pm

ERROR: unknown option '--slope-mode'

Post by Hiney »

apache error log is full of these. when i paste the command into a terminal session i get the error too.

I am using rrdtool-1.2.15.
I've done the rrdtool query, results below.

Any ideas ? is it just the version of rrdtool ?

H

"mysql> select value from settings where name = 'path_rrdtool';
+------------------+
| value |
+------------------+
| /usr/bin/rrdtool |
+------------------+
1 row in set (0.00 sec)

mysql> exit
Bye
nagios@crt-mfs1:/opt/nagios/cacti> which rrdtool
/usr/bin/rrdtool
nagios@server:/opt/nagios/cacti> "
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

in settings, did you choose RRDtool 1.2.x ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
Hiney
Cacti User
Posts: 56
Joined: Mon Oct 16, 2006 11:50 pm

oops

Post by Hiney »

just did a search on rrdtool.

the one in /usr/bin is v1 !!!!

the one i wanted was
/usr/local/rrdtool-1.2.15/bin/rrdtool

amn, damn and double damn.

sorry folks. Amended it in the settings and now i have partial graphs. On to the next problem.

H
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests