LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   RRDTOOL on Solaris 11 to install nagiosgraph (https://www.linuxquestions.org/questions/solaris-opensolaris-20/rrdtool-on-solaris-11-to-install-nagiosgraph-4175510007/)

keziacp 07-03-2014 02:13 PM

RRDTOOL on Solaris 11 to install nagiosgraph
 
Hi all,
Plese could someone help me?
I need to install nagiosgraph, but I cant do this, I am trying this for about 1 month. Actually I am trying to do the libary works, rrdtool.

It is installed when i put on my server: rrdtool -v I can see it.

root@nagios:/opt# rrdtool -v
RRDtool 1.4.8 Copyright 1997-2013 by Tobias Oetiker <tobi@oetiker.ch>
Compiled Jun 20 2014 10:05:43

Usage: rrdtool [options] command command_options
Valid commands: create, update, updatev, graph, graphv, dump, restore,
last, lastupdate, first, info, fetch, tune,
resize, xport, flushcached

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

But I dont know to do it work. Look:

root@nagios:/opt# rrdtool create temperature.rrd --step 300 \
> DS:temp:GAUGE:600:-273:5000 \
> RRA:AVERAGE:0.5:1:1200 \
> RRA:MIN:0.5:12:2400 \
> RRA:MAX:0.5:12:2400 \
> RRA:AVERAGE:0.5:12:2400
Bus Error (core dumped)

I dont know now what to do. Some idea?
I am actually workink on a Solaris 11 on a Sun SPARC T3.

Thanks

jlliagre 07-08-2014 04:54 PM

It seems you aren't using the Solaris rrdtool package but a custom built one.

I have no problem with the regular one:

Code:

$ cat /etc/release
                            Oracle Solaris 11.2 X86
  Copyright (c) 1983, 2014, Oracle and/or its affiliates.  All rights reserved.
                            Assembled 23 April 2014
$ pkg search -l /usr/bin/rrdtool
INDEX      ACTION VALUE          PACKAGE
path      file  usr/bin/rrdtool pkg:/image/rrdtool@1.4.3-0.175.2.0.0.22.0
$ rrdtool -v                                                                                                               
RRDtool 1.4.3  Copyright 1997-2009 by Tobias Oetiker <tobi@oetiker.ch>
              Compiled Aug 22 2013 10:59:49

Usage: rrdtool [options] command command_options
Valid commands: create, update, updatev, graph, graphv,  dump, restore,
                last, lastupdate, first, info, fetch, tune,
                resize, xport, flushcached

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
$ rrdtool create temperature.rrd --step 300 \
      DS:temp:GAUGE:600:-273:5000 \
      RRA:AVERAGE:0.5:1:1200 \
      RRA:MIN:0.5:12:2400 \
      RRA:MAX:0.5:12:2400 \
      RRA:AVERAGE:0.5:12:2400

$ ls -lo temperature.rrd
-rw-r--r--  1 jlliagre  68324 Jul  8 23:37 temperature.rrd


keziacp 07-15-2014 10:31 AM

Hi,

Now I am actualy trying to test this.
perl -e 'use RRDs; print "OK\n";'
Can't locate loadable object for module RRDs in @INC (@INC contains: /usr/perl5/5.8.4/lib/sun4-solaris-64int /usr/perl5/5.8.4/lib /usr/perl5/site_perl/5.8.4/sun4-solaris-64int /usr/perl5/site_perl/5.8.4 /usr/perl5/site_perl /usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int /usr/perl5/vendor_perl/5.8.4 /usr/perl5/vendor_perl .) at -e line 1
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

But I got a error and I try to fix this copying the archive that it wants for the folder in the INC, but it still doesnt work.

Any idea?

keziacp 07-15-2014 10:34 AM

root@nagios:/opt/rrdtool-1.4.7/lib/perl/5.8.4# cp -r /usr/perl5/5.8.4/lib/sun4-solaris-64int/RRDs /usr/perl5/5.8.4/lib/sun4-solaris-64int
cp: /usr/perl5/5.8.4/lib/sun4-solaris-64int/RRDs and /usr/perl5/5.8.4/lib/sun4-solaris-64int/RRDs are identical

root@nagios:/opt/rrdtool-1.4.7/lib/perl/5.8.4# perl -e 'use RRDs; print "OK\n";'
Can't locate loadable object for module RRDs in @INC (@INC contains: /usr/perl5/5.8.4/lib/sun4-solaris-64int /usr/perl5/5.8.4/lib /usr/perl5/site_perl/5.4/sun4-solaris-64int /usr/perl5/site_perl/5.8.4 /usr/perl5/site_perl /usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int /usr/perl5/vendor_perl/5.8.4 /usr/pe5/vendor_perl .) at -e line 1
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

I already tried to do this:
root@nagios:/opt/rrdtool-1.4.7/lib/perl/5.8.4# perl -e 'use lib qw(/opt/rrdtool-1.4.7/lib/perl/5.8.4); use RRDs; print "OK\n";'
Can't locate loadable object for module RRDs in @INC (@INC contains: /opt/rrdtool-1.4.7/lib/perl/5.8.4/sun4-solaris-64int /opt/rrdtool-1.4.7/lib/perl/5.8.4 /usr/perl5/5.8.4/lib/sun4-solaris-64int /usr/perl5/5.8.4/lib /usr/perl5/site_perl/5.8.4/sun4-solaris-64int /usr/perl5/site_perl/5.8.4 /usr/perl5/site_perl /usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int /usr/perl5/vendor_perl/5.8.4 /usr/perl5/vendor_perl .) at -e line 1
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

and copy the folder that it is asking about, but still the same error.

Please, someone help me ;(


All times are GMT -5. The time now is 03:07 PM.