jrobin RrdCommander()

2 messages Options
Embed this post
Permalink
matthew sporleder

jrobin RrdCommander()

Reply Threaded More More options
Print post
Permalink
Does anyone have a working example of using the graph command in
jrobin's RrdCommander?  I keep getting NullPointerExceptions in
ParseDef when trying to make my own graph from CpuRawUser.

java -cp /opt/opennms/lib/jrobin-1.5.9.jar -Djava.awt.headless=true
org.jrobin.cmd.RrdCommander
== JRobin's RRDTool commander ==
Type a RRDTool command after the dollar sign and press Enter.
Start your RRDTool command with 'create', 'update', 'fetch' etc.
Start line with 'create', 'update', 'fetch' etc.
Enter dot ('.') to bail out
Current directory is: /local/home/sporlem
================================
$ graph cpu.png DEF:CpuRawUser=./CpuRawUsr.jrb:CpuRawUser:AVERAGE
AREA:CpuRawUser#0000FF:CPU
java.lang.NullPointerException
        at org.jrobin.cmd.RrdGraphCmd.parseDef(RrdGraphCmd.java:325)
        at org.jrobin.cmd.RrdGraphCmd.getGraphDef(RrdGraphCmd.java:196)
        at org.jrobin.cmd.RrdGraphCmd.execute(RrdGraphCmd.java:47)
        at org.jrobin.cmd.RrdToolCmd.executeCommand(RrdToolCmd.java:45)
        at org.jrobin.cmd.RrdCommander.execute(RrdCommander.java:134)
        at org.jrobin.cmd.RrdCommander.main(RrdCommander.java:162)
$

Any hints?

Thanks,
Matt

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
matthew sporleder

Re: jrobin RrdCommander()

Reply Threaded More More options
Print post
Permalink
I thought I would give this one more try.  Does anyone have any
experience with jrobin?  It feels like "gdef" is what's actually null
since the error is here:
                gdef.datasource(tokens2[0], tokens2[1], tokens1[2], tokens1[3]);
And according to jdb tokens1 and tokens2 are fully populated.

On Fri, Nov 6, 2009 at 8:55 PM, matthew sporleder <[hidden email]> wrote:

> Does anyone have a working example of using the graph command in
> jrobin's RrdCommander?  I keep getting NullPointerExceptions in
> ParseDef when trying to make my own graph from CpuRawUser.
>
> java -cp /opt/opennms/lib/jrobin-1.5.9.jar -Djava.awt.headless=true
> org.jrobin.cmd.RrdCommander
> == JRobin's RRDTool commander ==
> Type a RRDTool command after the dollar sign and press Enter.
> Start your RRDTool command with 'create', 'update', 'fetch' etc.
> Start line with 'create', 'update', 'fetch' etc.
> Enter dot ('.') to bail out
> Current directory is: /local/home/sporlem
> ================================
> $ graph cpu.png DEF:CpuRawUser=./CpuRawUsr.jrb:CpuRawUser:AVERAGE
> AREA:CpuRawUser#0000FF:CPU
> java.lang.NullPointerException
>        at org.jrobin.cmd.RrdGraphCmd.parseDef(RrdGraphCmd.java:325)
>        at org.jrobin.cmd.RrdGraphCmd.getGraphDef(RrdGraphCmd.java:196)
>        at org.jrobin.cmd.RrdGraphCmd.execute(RrdGraphCmd.java:47)
>        at org.jrobin.cmd.RrdToolCmd.executeCommand(RrdToolCmd.java:45)
>        at org.jrobin.cmd.RrdCommander.execute(RrdCommander.java:134)
>        at org.jrobin.cmd.RrdCommander.main(RrdCommander.java:162)
> $
>
> Any hints?
>
> Thanks,
> Matt
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss