- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- nrpe configuration on hpux 11.11
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2007 01:41 AM
12-06-2007 01:41 AM
nrpe configuration on hpux 11.11
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2007 05:45 AM
12-06-2007 05:45 AM
Re: nrpe configuration on hpux 11.11
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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2007 06:14 AM
12-06-2007 06:14 AM
Re: nrpe configuration on hpux 11.11
>>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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2007 08:52 PM
12-06-2007 08:52 PM
Re: nrpe configuration on hpux 11.11
:
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#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2007 02:29 AM
12-07-2007 02:29 AM
Re: nrpe configuration on hpux 11.11
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?