Getting cciss output.

Status
Not open for further replies.

TheEditor

Dabbler
Joined
Oct 24, 2013
Messages
14
I'm trying to figure out how to get the output from cciss. I'm running FN on an HP ML350. It's running hardware raid and FN is just managing a UFS volume. EVerything works. I recently had a drive go and only noticed it due to the light indicator.

I saw that cciss_vol_status-1.10_1.txz is included in http://pkg.cdn.pcbsd.org/freenas/9.1-RELEASE/amd64/sysutils/. I don't however see the bin anywhere that I can actually run.

The plan is just to write a script to have FN send me an email on any raid status change. I don't want to try to install cciss from source if it's already included somewhere.

Thanks ahead of time.
Bruce


System specs:
FreeNAS-9.1.0-RELEASE-x64 (dff7d13)
Intel(R) Xeon(R) CPU E5410 @ 2.33GHz
4075MB
 

Dusan

Guru
Joined
Jan 29, 2013
Messages
1,165
You can extract the archive running:
tar xvzf cciss_vol_status-1.10_1.txz
The binary you are looking for will be in usr/local/bin
There will be also usr/local/etc/periodic/daily/cciss_vol_status script that you can use with periodic to check the status daily.
 

TheEditor

Dabbler
Joined
Oct 24, 2013
Messages
14
Thanks dusan. As an addition to that question, is there a way to get that to work through FN? I'd like to be able to monitor the status of the raid through FN.
 

Dusan

Guru
Joined
Jan 29, 2013
Messages
1,165
I'm not sure I understand your question. :) You can extract the file on FreeNAS and run it without problems. I just tried it, it works.
 

Melona380

Cadet
Joined
Jul 26, 2016
Messages
6
Please, Need help... I ahve to get this installed and check a drive but on the most current version of freenas i get this when i run ./configure

Config.log will be at bottom.

@Dusan how can I get this to install?

Code:
[root@nasnode1] /tmp/cciss_vol_status-1.11# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: in `/tmp/cciss_vol_status-1.11':
configure: error: C compiler cannot create executables
See `config.log' for more details.
[root@nasnode1] /tmp/cciss_vol_status-1.11#


Code:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by cciss_vol_status configure 1.11, which was
generated by GNU Autoconf 2.63.  Invocation command line was

  $ ./configure 

## --------- ##
## Platform. ##
## --------- ##

hostname = nasnode1.lps.space
uname -m = amd64
uname -r = 10.3-STABLE
uname -s = FreeBSD
uname -v = FreeBSD 10.3-STABLE #0 r295946=5327704(9.10-STABLE): Wed Aug  3 12:13:26 PDT 2016     root@build.ixsystems.com:/tank/home/nightlies/build-freenas9/_BE/objs/tank/home/nightlies/build-freenas9/_BE/os/sys/FreeNAS.amd64 

/usr/bin/uname -p = amd64
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /usr/games
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /root/bin
PATH: /usr/local/fusion-io


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1876: checking for a BSD-compatible install
configure:1944: result: /usr/bin/install -c
configure:1955: checking whether build environment is sane
configure:2015: result: yes
configure:2156: checking for a thread-safe mkdir -p
configure:2195: result: ./install-sh -c -d
configure:2208: checking for gawk
configure:2238: result: no
configure:2208: checking for mawk
configure:2238: result: no
configure:2208: checking for nawk
configure:2224: found /usr/bin/nawk
configure:2235: result: nawk
configure:2246: checking whether make sets $(MAKE)
configure:2268: result: yes
configure:2399: checking for gcc
configure:2415: found /usr/local/bin/gcc
configure:2426: result: gcc
configure:2658: checking for C compiler version
configure:2666: gcc --version >&5
gcc (FreeBSD Ports Collection) 4.8.5
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2670: $? = 0
configure:2677: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc48/gcc/x86_64-portbld-freebsd10.3/4.8.5/lto-wrapper
Target: x86_64-portbld-freebsd10.3
Configured with: ./../gcc-4.8.5/configure --disable-multilib --disable-bootstrap --disable-nls --enable-gnu-indirect-function --libdir=/usr/local/lib/gcc48 --libexecdir=/usr/local/libexec/gcc48 --program-suffix=48 --with-as=/usr/local/bin/as --with-gmp=/usr/local --with-gxx-include-dir=/usr/local/lib/gcc48/include/c++/ --with-ld=/usr/local/bin/ld --with-pkgversion='FreeBSD Ports Collection' --with-system-zlib --with-ecj-jar=/usr/local/share/java/ecj-4.5.jar --enable-languages=c,c++,objc,fortran,java --prefix=/usr/local --localstatedir=/var --mandir=/usr/local/man --infodir=/usr/local/info/gcc48 --build=x86_64-portbld-freebsd10.3
Thread model: posix
gcc version 4.8.5 (FreeBSD Ports Collection) 
configure:2681: $? = 0
configure:2688: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:2692: $? = 1
configure:2715: checking for C compiler default output file name
configure:2737: gcc    conftest.c  >&5
/usr/local/bin/ld: cannot find -lgcc
/usr/local/bin/ld: cannot find /usr/lib/libc_nonshared.a
/usr/local/bin/ld: cannot find /usr/lib/libssp_nonshared.a
collect2: error: ld returned 1 exit status
configure:2741: $? = 1
configure:2779: result: 
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "cciss_vol_status"
| #define PACKAGE_TARNAME "cciss_vol_status"
| #define PACKAGE_VERSION "1.11"
| #define PACKAGE_STRING "cciss_vol_status 1.11"
| #define PACKAGE_BUGREPORT "smcameron@users.sourceforge.net"
| #define PACKAGE "cciss_vol_status"
| #define VERSION "1.11"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2785: error: in `/tmp/cciss_vol_status-1.11':
configure:2787: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CC_set=''
ac_cv_env_CC_value=''
ac_cv_env_CFLAGS_set=''
ac_cv_env_CFLAGS_value=''
ac_cv_env_CPPFLAGS_set=''
ac_cv_env_CPPFLAGS_value=''
ac_cv_env_CPP_set=''
ac_cv_env_CPP_value=''
ac_cv_env_LDFLAGS_set=''
ac_cv_env_LDFLAGS_value=''
ac_cv_env_LIBS_set=''
ac_cv_env_LIBS_value=''
ac_cv_env_build_alias_set=''
ac_cv_env_build_alias_value=''
ac_cv_env_host_alias_set=''
ac_cv_env_host_alias_value=''
ac_cv_env_target_alias_set=''
ac_cv_env_target_alias_value=''
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=nawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /tmp/cciss_vol_status-1.11/missing --run aclocal-1.11'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /tmp/cciss_vol_status-1.11/missing --run tar'
AUTOCONF='${SHELL} /tmp/cciss_vol_status-1.11/missing --run autoconf'
AUTOHEADER='${SHELL} /tmp/cciss_vol_status-1.11/missing --run autoheader'
AUTOMAKE='${SHELL} /tmp/cciss_vol_status-1.11/missing --run automake-1.11'
AWK='nawk'
CC='gcc'
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /tmp/cciss_vol_status-1.11/missing --run makeinfo'
MKDIR_P='./install-sh -c -d'
OBJEXT=''
PACKAGE='cciss_vol_status'
PACKAGE_BUGREPORT='smcameron@users.sourceforge.net'
PACKAGE_NAME='cciss_vol_status'
PACKAGE_STRING='cciss_vol_status 1.11'
PACKAGE_TARNAME='cciss_vol_status'
PACKAGE_VERSION='1.11'
PATH_SEPARATOR=':'
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='1.11'
ac_ct_CC='gcc'
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /tmp/cciss_vol_status-1.11/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(top_builddir)/./install-sh -c -d'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME "cciss_vol_status"
#define PACKAGE_TARNAME "cciss_vol_status"
#define PACKAGE_VERSION "1.11"
#define PACKAGE_STRING "cciss_vol_status 1.11"
#define PACKAGE_BUGREPORT "smcameron@users.sourceforge.net"
#define PACKAGE "cciss_vol_status"
#define VERSION "1.11"

configure: exit 77

 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
First, you necro'd a three-year-old thread. Second, you don't install any software on the base FreeNAS system--it should go in a jail.
 
Status
Not open for further replies.
Top