[Nagiosplug-help] Check_HPasm-4.1.2 on FreeBSD

Cody Hill chill2 at uph.org
Thu Mar 18 21:11:31 CET 2010


I was wondering if anyone could help me out with the Check_HPasm-4.1.2
Plug-in on FreeBSD 8.0.
It wants me to compile it but it fails every time. Here is the output...

# sudo ./configure --prefix=/usr/local/etc/nagios
--with-perl=/usr/local/bin/perl --with-nagios-user=nagios
--with-nagios-group=nagios --with-noinst-level=warning
--with-degrees=fahrenheit --enable-perfdata --enable-hpacucli
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... gawk
checking whether make sets $(MAKE)... yes
checking how to create a pax tar archive... gnutar
checking build system type... amd64-unknown-freebsd8.0
checking host system type... amd64-unknown-freebsd8.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking for gawk... (cached) gawk
checking for sh... /bin/sh
checking for perl... /usr/bin/perl
configure: creating ./config.status
config.status: creating Makefile
config.status: creating plugins-scripts/Makefile
config.status: creating plugins-scripts/subst
                       --with-perl: /usr/local/bin/perl
                --with-nagios-user: nagios
               --with-nagios-group: nagios
               --with-noinst-level: warning
                    --with-degrees: fahrenheit
                 --enable-perfdata: yes
             --enable-extendedinfo: no
                   --enable-hwinfo: yes
                 --enable-hpacucli: yes

# sudo make
Making all in plugins-scripts
/bin/echo "#! #PERL# -w" | gawk -f ./subst > check_hpasm
/bin/echo >> check_hpasm
for m in Nagios/MiniPlugin.pm  HP/SNMP/Utils.pm
HP/Proliant/Component/PowersupplySubsystem.pm
HP/Proliant/Component/PowersupplySubsystem/CLI.pm
HP/Proliant/Component/PowersupplySubsystem/SNMP.pm
HP/Proliant/Component/TemperatureSubsystem.pm
HP/Proliant/Component/TemperatureSubsystem/CLI.pm
HP/Proliant/Component/TemperatureSubsystem/SNMP.pm
HP/Proliant/Component/CpuSubsystem.pm
HP/Proliant/Component/CpuSubsystem/CLI.pm
HP/Proliant/Component/CpuSubsystem/SNMP.pm
HP/Proliant/Component/FanSubsystem.pm
HP/Proliant/Component/FanSubsystem/CLI.pm
HP/Proliant/Component/FanSubsystem/SNMP.pm
HP/Proliant/Component/MemorySubsystem/CLI.pm
HP/Proliant/Component/MemorySubsystem/SNMP.pm
HP/Proliant/Component/MemorySubsystem.pm  HP/Proliant/Component/SNMP.pm
HP/Proliant/Component/DiskSubsystem/Da/CLI.pm
HP/Proliant/Component/DiskSubsystem/Da/SNMP.pm
HP/Proliant/Component/DiskSubsystem/Da.pm
HP/Proliant/Component/DiskSubsystem/Sas/CLI.pm
HP/Proliant/Component/DiskSubsystem/Sas/SNMP.pm
HP/Proliant/Component/DiskSubsystem/Sas.pm
HP/Proliant/Component/DiskSubsystem/Scsi/CLI.pm
HP/Proliant/Component/DiskSubsystem/Scsi/SNMP.pm
HP/Proliant/Component/DiskSubsystem/Scsi.pm
HP/Proliant/Component/DiskSubsystem/Ide/CLI.pm
HP/Proliant/Component/DiskSubsystem/Ide/SNMP.pm
HP/Proliant/Component/DiskSubsystem/Ide.pm
HP/Proliant/Component/DiskSubsystem/Fca/CLI.pm
HP/Proliant/Component/DiskSubsystem/Fca/SNMP.pm
HP/Proliant/Component/DiskSubsystem/Fca.pm
HP/Proliant/Component/DiskSubsystem.pm  HP/Proliant/Component.pm
HP/Proliant.pm  HP/BladeSystem/Component/CommonEnclosureSubsystem.pm
HP/BladeSystem/Component/CommonEnclosureSubsystem/FanSubsystem.pm
HP/BladeSystem/Component/PowerEnclosureSubsystem.pm
HP/BladeSystem/Component/PowerSupplySubsystem.pm
HP/BladeSystem/Component/NetConnectorSubsystem.pm
HP/BladeSystem/Component/ServerBladeSubsystem.pm
HP/BladeSystem/Component.pm  HP/BladeSystem.pm  HP/Storage.pm
HP/Server.pm; do  /bin/sed -e 's/^1;//g' < $m | gawk -f ./subst |
/bin/grep -v "use Nagios::Plugin" >> check_hpasm;  done
/bin/sed: not found
/bin/grep: not found
*** Error code 127

Stop in /usr/home/chill2/check_hpasm-4.1.2/plugins-scripts.
*** Error code 1

Stop in /usr/home/chill2/check_hpasm-4.1.2.


I know why it can't find /bin/sed and /bin/grep...
Because they are located in /usr/bin
But what I don't know is how to get the "make" command to know the
correct locations.

Thank you,
Cody




More information about the Help mailing list