Operating System - HP-UX
1832516 Members
5129 Online
110043 Solutions
New Discussion

nrpe configuration on hpux 11.11

 
jaivinder
Frequent Advisor

nrpe configuration on hpux 11.11

Hi ,

I am having Nagios installed on RHEL system, and want to monitor my HP boxes using nagios, but i am not able to configure the nrpe on hpux. I had downloaded the plugins from nagios site but while installing i am facing may issues. I had installed all the prerequisites. But i am not able to install it. Please give u r suggestions.

Thanks in advance.

Regards,
Jaivinder
4 REPLIES 4
Ralph Grothe
Honored Contributor

Re: nrpe configuration on hpux 11.11

Hi Jaivinder,

the installation of nrpe on most Unices is pretty easy and outlined in the README of the source code tarball.

The common way is to have nrpe started by inetd.

Add a line like this to your service:

# grep nrpe /etc/services
nrpe 5666/tcp # Nagios Remote Plug-in Executor


Then configure your inetd similar to this.
Make sure that the paths to the nrpe binary and nrpe.cfg file are correct and make a choice under what user nrpe should be run.

# grep nrpe /etc/inetd.conf
nrpe stream tcp nowait nagios /usr/local/nagios/sbin/nrpe nrpe -c /usr/local/nagios/etc/nrpe
.cfg -i

If all looks correct make inetd reload its conf.

# /usr/sbin/inetd -c

and check that it registered the new service

# tail /var/adm/syslog/syslog.log

# netstat -an -f inet|grep LISTEN|grep 5666

The most configuration part involves adapting nrpe.cfg to your needs and checks that work on hpux.

You can start trying with some of the more common ones like

$ /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1 -c check_total_procs
PROCS CRITICAL: 369 processes

Oops, I never use this preconfigured check
that's why its threshold don't fit this box.
Better comment all checks you don't require out in nrpe.cfg.

If the local check_nrpe works
try next from your Nagios server.

Sometimes firewalls and tcpwrappers get in the way.
Then you need to allow access for port 5666/tcp (or whatever you configured)

Madness, thy name is system administration
Patrick Wallek
Honored Contributor

Re: nrpe configuration on hpux 11.11

>>I had downloaded the plugins from nagios site
>>but while installing i am facing may issues.

Like what?

>>I had installed all the prerequisites. But i
>>am not able to install it.

OK, so what is the problem? What steps did you take? What errors are you getting? What specific problems are you having?

>>Please give u r suggestions.

Based on what? How do you expect us to suggest something without any real specific information regarding errors or problems?
jaivinder
Frequent Advisor

Re: nrpe configuration on hpux 11.11

I had installed the gcc automake autoconf perl and the nagios pulgins. After it i had configured it and after it i had started make. During make the error about syntex came and the process stopped by giving exit status 1.The error is described below
:
root@ggnhrdv02:/tmp/nagios/nagios/nagios-plugins-1.4.2# make
No suffix list.
make all-recursive
No suffix list.
Making all in intl
Making all in lib
make all-am
No suffix list.
rm -f libcoreutils.a
ar cru libcoreutils.a cloexec.o exitfail.o full-read.o full-write.o getopt.o getopt1.o safe-read.o safe-write.o xmalloc.o xstrdup.o realloc.o error.o getloadavg.o mountlist.o
fsusage.o
ranlib libcoreutils.a
rm -f libnagiosplug.a
ar cru libnagiosplug.a snprintf.o
ranlib libnagiosplug.a
Making all in plugins
No suffix list.
gcc -g -O2 -L. -L/usr/lib -o check_dhcp check_dhcp.o netutils.o utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a -ldce -lnsl -lintl -lgen -I/usr/include
gcc -g -O2 -L. -L/usr/lib -o check_disk check_disk.o utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a popen.o -lintl -lgen -I/usr/include
gcc -g -O2 -L. -L/usr/lib -o check_dummy check_dummy.o utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a -lintl -lgen -I/usr/include
gcc -g -O2 -L. -L/usr/lib -o check_http check_http.o netutils.o utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a -ldce -lnsl -lssl -lcrypto -lintl -lgen -I/usr/include
gcc -g -O2 -L. -L/usr/lib -o check_load check_load.o utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a popen.o -lintl -lgen -I/usr/include
gcc -g -O2 -L. -L/usr/lib -o check_mrtgtraf check_mrtgtraf.o utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a -lintl -lgen -I/usr/include
gcc -g -O2 -L. -L/usr/lib -o check_nwstat check_nwstat.o netutils.o utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a -ldce -lnsl -lintl -lgen -I/usr/include
gcc -g -O2 -L. -L/usr/lib -o check_overcr check_overcr.o netutils.o utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a -ldce -lnsl -lintl -lgen -I/usr/include
gcc -g -O2 -L. -L/usr/lib -o check_ping check_ping.o netutils.o utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a -ldce -lnsl popen.o -lintl -lgen -I/usr/include
gcc -g -O2 -L. -L/usr/lib -o check_real check_real.o netutils.o utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a -ldce -lnsl -lintl -lgen -I/usr/include
gcc -g -O2 -L. -L/usr/lib -o check_smtp check_smtp.o netutils.o utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a -ldce -lnsl -lssl -lcrypto -lintl -lgen -I/usr/include
gcc -g -O2 -L. -L/usr/lib -o check_ssh check_ssh.o netutils.o utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a -ldce -lnsl -lintl -lgen -I/usr/include
gcc -g -O2 -L. -L/usr/lib -o check_tcp check_tcp.o netutils.o utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a -ldce -lnsl -lssl -lcrypto -lintl -lgen -I/usr/include
gcc -g -O2 -L. -L/usr/lib -o check_time check_time.o netutils.o utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a -ldce -lnsl -lintl -lgen -I/usr/include
gcc -g -O2 -L. -L/usr/lib -o check_udp check_udp.o netutils.o utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a -ldce -lnsl -lintl -lgen -I/usr/include
gcc -g -O2 -L. -L/usr/lib -o check_ups check_ups.o netutils.o utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a -ldce -lnsl -lintl -lgen -I/usr/include
gcc -g -O2 -L. -L/usr/lib -o check_users check_users.o utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a popen.o -lintl -lgen -I/usr/include
gcc -g -O2 -L. -L/usr/lib -o negate negate.o utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a popen.o -lintl -lgen -I/usr/include
gcc -g -O2 -L. -L/usr/lib -o urlize urlize.o utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a popen.o -lintl -lgen -I/usr/include
gcc -g -O2 -L. -L/usr/lib -o check_ldap check_ldap.o netutils.o utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a -ldce -lnsl -lldap -llber -lintl -lgen -I/usr/include
gcc -g -O2 -L. -L/usr/lib -o check_procs check_procs.o utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a popen.o -lintl -lgen -I/usr/include
gcc -g -O2 -L. -L/usr/lib -o check_nagios check_nagios.o utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a popen.o -lintl -lgen -I/usr/include
gcc -g -O2 -L. -L/usr/lib -o check_dns check_dns.o netutils.o utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a -ldce -lnsl popen.o -lintl -lgen -I/usr/include
gcc -g -O2 -L. -L/usr/lib -o check_by_ssh check_by_ssh.o netutils.o utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a -ldce -lnsl popen.o -lintl -lgen -I/usr/include
gcc -g -O2 -L. -L/usr/lib -o check_swap check_swap.o -lm utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a popen.o -lintl -lgen -I/usr/include
gcc -g -O2 -L. -L/usr/lib -o check_nt check_nt.o netutils.o utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a -ldce -lnsl -lintl -lgen -I/usr/include
rm -f check_ftp
ln -s check_tcp check_ftp
rm -f check_imap
ln -s check_tcp check_imap
rm -f check_nntp
ln -s check_tcp check_nntp
rm -f check_pop
ln -s check_tcp check_pop
rm -f check_udp2
ln -s check_tcp check_udp2
rm -f check_simap
ln -s check_tcp check_simap
rm -f check_spop
ln -s check_tcp check_spop
rm -f check_jabber
ln -s check_tcp check_jabber
rm -f check_nntps
ln -s check_tcp check_nntps
rm -f check_ssmtp
ln -s check_tcp check_ssmtp
Making all in plugins-scripts
Making all in m4
No suffix list.
No suffix list.
Making all in po
Make: line 174: syntax error. Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
root@ggnhrdv02:/tmp/nagios/nagios/nagios-plugins-1.4.2#
Ralph Grothe
Honored Contributor

Re: nrpe configuration on hpux 11.11

Certain compile failures for some of the plugins is probably only detracting.
Remember that you really only need those check_commands from the compile run of Nagios Plugins for services that you actually need to be actively checked on your HP-UX NRPE host!
If you don't run a Jabber server or similar more exotic services there is no need to have a working check_* binary for them.
Besides, such services should rather be checked directly from your Nagios server.
What you essentially require is a working nrpe, check_nrpe binary, as well as binaries for all the checks that you configure in nrpe.cfg.
So for an nrpe host the latter usually build down to check_procs, check_disk, check_log or check_log2.pl, check_load, check_users etc.
You can quick check for most likely successfully compiled binaries by running from your build directory something like

$ ls -FR|grep \*\$
or
$ find . -type f -perm -0100 -exec ll {} +

If you don't mind the additional installation of Nagios itself you can avoid the hassel of compiling Nagios Plugins yourself by simply fetching Nagios from the Internet Express special distribution and installing it on your nrpe host.
You can also install it only on one, say development or fiddle HP-UX box, and then simply copy the check_* binaries to your other HP-UX nrpe hosts.

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1111

Btw, I sent a request for addition of NRPE and NSCA to the Internet Express Distribution to the IE Team, and they replied me that they will be including both together with Nagios on the forthcoming December 2007 release.
So if you are a bit patient
it will be as easy as an swinstall.
Isn't that great?
Madness, thy name is system administration