nrpe ver. 2 on AIX 5.2
Daniel Jimenez
djimenez at membersourcecu.org
Fri Nov 25 22:18:20 CET 2005
Okay with this fixed I get the following
# /usr/local/nagios/libexec/check_disk -w 20 -c 10 -p /dev/hd2
INPUT ERROR: C_IDFP (0.000000) should be less than W_IDFP (0.0) and both
should be between zero and 100 percent, inclusive for /dev/hd2
check_disk: Could not parse arguments
Usage: check_disk -w limit -c limit [-p path | -x device] [-t
timeout][-m] [-e] [-W limit] [-K limit] [-v] [-q]
Thanks for any help you can provide,
Daniel
_____
From: Daniel Jimenez
Sent: Friday, November 25, 2005 3:06 PM
To: Ayotunde Itayemi; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] nrpe ver. 2 on AIX 5.2
Ahh a quick google showed me that I need to run on CVS for this issue to
be repaired.
Thanks!
Daniel
_____
From: Daniel Jimenez
Sent: Friday, November 25, 2005 12:48 PM
To: Ayotunde Itayemi; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] nrpe ver. 2 on AIX 5.2
I'm trying to compile the Nagios plugins. I get the following on both
the stable and the alpha versions during make:
Making all in plugins
if gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\"
-DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../intl -g -O2 -MT
check_disk.o -MD -MP -MF ".deps/check_disk.Tpo" -c -o check_disk.o
`test -f 'check_disk.c' || echo './'`check_disk.c; then mv -f
".deps/check_disk.Tpo" ".deps/check_disk.Po"; else rm -f
".deps/check_disk.Tpo"; exit 1; fi
if gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\"
-DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../intl -g -O2 -MT
utils.o -MD -MP -MF ".deps/utils.Tpo" -c -o utils.o `test -f 'utils.c'
|| echo './'`utils.c; then mv -f ".deps/utils.Tpo" ".deps/utils.Po";
else rm -f ".deps/utils.Tpo"; exit 1; fi
if gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\"
-DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../intl -g -O2 -MT
popen.o -MD -MP -MF ".deps/popen.Tpo" -c -o popen.o `test -f 'popen.c'
|| echo './'`popen.c; then mv -f ".deps/popen.Tpo" ".deps/popen.Po";
else rm -f ".deps/popen.Tpo"; exit 1; fi
gcc -g -O2 -L. -o check_disk check_disk.o utils.o
../lib/libnagiosplug.a popen.o ../intl/libintl.a -liconv
ld: 0711-317 ERROR: Undefined symbol: .VA_COPY
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
collect2: ld returned 8 exit status
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 2.
Stop.
Any ideas?
Thanks,
Daniel
_____
From: Ayotunde Itayemi [mailto:aitayemi at vmobile-nigeria.com]
Sent: Friday, November 04, 2005 2:40 PM
To: Rudy Montemayor; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] nrpe ver. 2 on AIX 5.2
Hi,
Did you compile it yourself?
I was getting the same message yesterday and for the life of me I can't
remember how I solved it.
But let me just take you through my compile
Running as user/group nagios/nagios
I installed under /nagios but you can modify to suit yourself
installing NRPE and nagios plugin (without ssl)
extract nrpe archive nrpe-2.0b4.tar.gz
gunzip nrpe-2.0b4.tar.gz
tar -xvf nrpe-2.0b4.tar
cd nrpe-2.0b4
install NRPE by:
./configure --enable-command-args --disable-ssl
make all
mkdir -p /nagios/sbin
cp src/nrpe src/check_nrpe /nagios/sbin
mkdir -p /nagios/etc
cp -p nrpe.cfg /nagios/etc/
edit nrpe.cfg as required
Installing NAGIOS plugins
-------------------------------------
Unarchive nagios-plugins-HEAD-200510261647.tar.gz
gunzip nagios-plugins-HEAD-200510261647.tar.gz
tar -xvf nagios-plugins-HEAD-200510261647.tar
cd nagios-plugins-HEAD-200510261647
./configure --without-ssl
make
copy all executables to your preferred directory e.g., /nagios/libexec
cd plugins
find ./ -type f -perm 644 -exec cp {} /nagios/libexec \;
start nrpe with command similar to
/nagios/sbin/nrpe -d -c /nagios/etc/nrpe.cfg
You may have to edit nrpe.cfg especially if running it standalone
allowed_hosts=127.0.0.1,ip-address-of-other-hosts-that-will-talk-to-nrpe
Sample commands that you may put in your nrpe.cfg to test with
command[check_disk1]=/nagios/libexec/check_disk -w 20 -c 10 -p /dev/hd4
command[check_disk2]=/nagios/libexec/check_disk -w 20 -c 10 -p /dev/hd2
command[check_disk3]=/nagios/libexec/check_disk -w 20 -c 10 -p
/dev/hd9var
command[check_disk4]=/nagios/libexec/check_disk -w 20 -c 10 -p /dev/hd3
command[check_disk5]=/nagios/libexec/check_disk -w 20 -c 10 -p /dev/hd1
command[check_disk6]=/nagios/libexec/check_disk -w 20 -c 10 -p
/dev/hd10opt
command[check_users]=/nagios/libexec/check_users -w 5 -c 10
command[check_load]=/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
command[check_zombie_procs]=/nagios/libexec/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=/nagios/libexec/check_procs -w 150 -c 200
(remember to restart nrpe if you edit its config file)
Test from the command line after starting nrpe (you should get replies):
/nagios/libexec/check_disk -w 20 -c 10 -p /dev/hd4
/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
Let me know if there are any issues. Wrote all these in a hurry :-)
_____
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Rudy
Montemayor
Sent: 04 November 2005 18:20
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] nrpe ver. 2 on AIX 5.2
Hi,
I have Nagios and nrpe running on both HP and Sun systems; however I can
not get the nrpe daemon on AIX to work at all. Here is a little info on
what I'm using:
AIX oslevel 5.2.0.0
NRPE Version: 2.0b5
On AIX system:
netstat -a | grep 5666
tcp4 0 0 *.5666 *.*
LISTEN
When I try the check_nrpe from my HP system where I have Nagios running
to the AIX system I get the following:
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs
for error messages.
I have nrpe ruuning as a standalone daemon on the AIX system:
ps -ef | grep nrpe
www 258078 1 0 10:39:44 - 0:00
/usr/local/nagios/nrpe-2.0/bin/nrpe.old -c
/usr/local/nagios/nrpe-2.0/nrpe.cfg -d
Any help to get this going would be appreciated. Thanks.
Rudy Montemayor
Sr. Unix System Admin
Hunt Oil Company
214-978-8357
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20051125/ce8b8b1e/attachment.html>
More information about the Users
mailing list