Re: Nagios and NRPE

From: Robert Binkley (rbinkl@COMCAST.NET)
Date: Mon Dec 15 2003 - 11:37:24 EST


Try using Nmon.

The cool thing about NMON is that it provides the output from known commands
like iostat, vmstat, and netstat in the spreadsheet. Plus a user guide to
understand the figures and how the graph was derived. This is essential to
you sosome num-nuts doesn't try to say you don't know what you are
monitoring.

Steps: (Each machine)

1) Create a directory called /usr/local/bin/cron_scripts (Central
location for all cron_scripts you use)

a. Copy the file nmon_stats.sh to this directory

b. Copy the file nmon_stats_day.sh to this directory

c. Copy the file nmon_stats_week.sh to this directory

d. Copy the file nmon_stats_month.sh to this directory

e. Copy the file nmon_stats_current.sh to this directory

f. Update each file for the server name

g. Copy ftpp.sh to the Master machine

2) Create a directory called /usr/nmon
(Central location for the nmon utilities)

a. Copy the file nmon to this directory (32 bit)

b. Copy the file nmon64 to this directory (64 bit)

3) Update your crontab for root; add the following (Assumes the
directory usr/local/bin)

a. 00 07 * * * /usr/local/bin/cron_scripts/nmon_stats_day.sh

b. 00 07 * * 0 /usr/local/bin/cron_scripts/nmon_stats_week.sh

c. 00 07 1 * * /usr/local/bin/cron_scripts/nmon_stats_month.sh

d. 45 23 * * * /usr/local/bin/cron_scripts/nmon_stats.sh

e. 0,5,10,15,20,25,30,35,40,45,50,55 * * * *
/usr/local/bin/cron_scripts/nmon_stats_current.sh

f. 2,7,12,17,22,27,32,37,42,47,52,57 * * * *
/usr/local/bin/cron_scripts/ftpp.sh

 Check out the test output I have included (gemapp1_current_day.csv) from
excel.

I hope this is helpful..

Regards
Robert Lee Binkley
5009 Silver Oak
Sherwood, Ar 72120
rbinkl@Comcast.net <mailto:rbinkl@Comcast.net>

-----Original Message-----
From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU]On Behalf Of
Davies Sue
Sent: Monday, December 15, 2003 7:57 AM
To: aix-l@Princeton.EDU
Subject: Nagios and NRPE

Is anyone using nagios to monitor their servers. I asked for the
Performance toolbox to monitor our servers and was told it's too expensive,
either I had to find freeware or write my own. Being cowardly I've found
Nagios which is running fine on the monitoring host but I can't get the nrpe
daemon to compile on an AIX box. I would really appreciate any help anyone
can give me

I've tried installing nrpe several times, every time being able to reduce
the errors a bit but I'm left with one I can't get rid of:

cd ./src/; make ; cd ..
        gcc -g -O2 -I/usr/local/include/openssl -I/usr/local/include
-DHAVE_CONFIG_H -o nrpe nrpe.c utils.c -L/usr/local/lib -lssl -lcrypto
-lnsl

nrpe.c: In function 'main':
nrpe.c:198:warning:assignment makes pointer from integer without a cast
ld: 0711-317 ERROR: Undefined symbol: .get_dh512
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 2
Stop

Many Thanks

Sue Davies
Technical Support Officer
Civic Centre
Wood Lane
Dagenham
Essex
RM10 7BY
020 8227 2737

**********************************************************************
http://www.barking-dagenham.gov.uk
E-mail confidentiality notice.
This message is intended for the addressee(s) only.
It may be private, confidential and may be covered by legal
professional privilege or other confidentiality requirements.
If you are not one of the intended recipients, please notify
the sender immediately on +44(0)20-8592-4500 and delete the
message from all locations in your computer network.
Do not copy this e-mail or use it for any purpose or disclose
its contents to any person: to do so may be unlawful'
**********************************************************************











This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:24 EDT