NRPE installation on HP-UX
-
progressive.nagiosXI
- Posts: 277
- Joined: Mon Jul 31, 2017 5:54 am
NRPE installation on HP-UX
Hi team,
Can you please help how to install NRPE in HP_UX 11.31 , as we have checked the document but NRPE installation document does not support HP_UX.
Please help!!
Thanks
Can you please help how to install NRPE in HP_UX 11.31 , as we have checked the document but NRPE installation document does not support HP_UX.
Please help!!
Thanks
Re: NRPE installation on HP-UX
We don't have anything specific for HP-UX but the generic steps are covered in https://assets.nagios.com/downloads/nag ... e/NRPE.pdf.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
progressive.nagiosXI
- Posts: 277
- Joined: Mon Jul 31, 2017 5:54 am
Re: NRPE installation on HP-UX
With the help of document we tried to install NRPE but didn't get success.
we are getting below error while doing a telnet on the port 5666 to localhost and also from monitoring server (10.100.1.16)
============================================
HECCAPP5:/ #telnet localhost 5666
Trying...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
==============================================
Also when we tried to run command /usr/local/nagios/libexec/check_nrpe -H localhost it's giving an error
============================================================================
HECCAPP5:/ #/usr/local/nagios/libexec/check_nrpe -H localhost
Incorrect command line arguments supplied
NRPE Plugin for Nagios
Version: 3.2.1
Copyright (c) 2009-2017 Nagios Enterprises
1999-2008 Ethan Galstad ([email protected])
Last Modified: 2017-09-01
License: GPL v2 with exemptions (-l for more info)
SSL/TLS Available: OpenSSL 0.9.6 or higher required
Usage: check_nrpe -H <host> [-2] [-4] [-6] [-n] [-u] [-V] [-l] [-d <dhopt>]
[-P <size>] [-S <ssl version>] [-L <cipherlist>] [-C <clientcert>]
[-K <key>] [-A <ca-certificate>] [-s <logopts>] [-b <bindaddr>]
[-f <cfg-file>] [-p <port>] [-t <interval>:<state>] [-g <log-file>]
[-c <command>] [-E] [-a <arglist...>]
========================================================================
we have attached inetd.conf file and nrpe.cfg file plz check and suggest what we can do
inetd.conf file entry
===========================================================
# Enable the following entry to enable the nrpe daemon
#nrpe stream tcp nowait nagios /usr/local/nagios/bin/nrpe nrpe -c /usr/local/nagios/etc/nrpe.cfg --inetd
# Enable the following entry if the nrpe daemon didn't link with libwrap
#nrpe stream tcp nowait nagios /usr/sbin/tcpd /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg --inetd
nrpe stream tcp nowait nagios /usr/local/nagios/sbin/nrpe nrpe -c /usr/local/nagios/etc/nrpe.cfg -i
=================================================================================================
netstat output
=======================================================
HECCAPP5:/ #netstat -a | grep nrpe
tcp 0 0 *.nrpe *.* LISTEN
===========================================================
but we are not seeing anything for nrpe in ps-ef command
===============================================
HECCAPP5:/ #ps -ef | grep nrpe
root 6634 6608 0 16:39:17 pts/0 0:00 grep nrpe
HECCAPP5:/ #ps -ef | grep inetd
root 6636 6608 0 16:39:54 pts/0 0:00 grep inetd
root 5809 1 0 15:02:51 ? 0:00 /usr/sbin/inetd
HECCAPP5:/ #
================================================
we are getting below error while doing a telnet on the port 5666 to localhost and also from monitoring server (10.100.1.16)
============================================
HECCAPP5:/ #telnet localhost 5666
Trying...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
==============================================
Also when we tried to run command /usr/local/nagios/libexec/check_nrpe -H localhost it's giving an error
============================================================================
HECCAPP5:/ #/usr/local/nagios/libexec/check_nrpe -H localhost
Incorrect command line arguments supplied
NRPE Plugin for Nagios
Version: 3.2.1
Copyright (c) 2009-2017 Nagios Enterprises
1999-2008 Ethan Galstad ([email protected])
Last Modified: 2017-09-01
License: GPL v2 with exemptions (-l for more info)
SSL/TLS Available: OpenSSL 0.9.6 or higher required
Usage: check_nrpe -H <host> [-2] [-4] [-6] [-n] [-u] [-V] [-l] [-d <dhopt>]
[-P <size>] [-S <ssl version>] [-L <cipherlist>] [-C <clientcert>]
[-K <key>] [-A <ca-certificate>] [-s <logopts>] [-b <bindaddr>]
[-f <cfg-file>] [-p <port>] [-t <interval>:<state>] [-g <log-file>]
[-c <command>] [-E] [-a <arglist...>]
========================================================================
we have attached inetd.conf file and nrpe.cfg file plz check and suggest what we can do
inetd.conf file entry
===========================================================
# Enable the following entry to enable the nrpe daemon
#nrpe stream tcp nowait nagios /usr/local/nagios/bin/nrpe nrpe -c /usr/local/nagios/etc/nrpe.cfg --inetd
# Enable the following entry if the nrpe daemon didn't link with libwrap
#nrpe stream tcp nowait nagios /usr/sbin/tcpd /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg --inetd
nrpe stream tcp nowait nagios /usr/local/nagios/sbin/nrpe nrpe -c /usr/local/nagios/etc/nrpe.cfg -i
=================================================================================================
netstat output
=======================================================
HECCAPP5:/ #netstat -a | grep nrpe
tcp 0 0 *.nrpe *.* LISTEN
===========================================================
but we are not seeing anything for nrpe in ps-ef command
===============================================
HECCAPP5:/ #ps -ef | grep nrpe
root 6634 6608 0 16:39:17 pts/0 0:00 grep nrpe
HECCAPP5:/ #ps -ef | grep inetd
root 6636 6608 0 16:39:54 pts/0 0:00 grep inetd
root 5809 1 0 15:02:51 ? 0:00 /usr/sbin/inetd
HECCAPP5:/ #
================================================
-
progressive.nagiosXI
- Posts: 277
- Joined: Mon Jul 31, 2017 5:54 am
Re: NRPE installation on HP-UX
attached is nrpe file.
You do not have the required permissions to view the files attached to this post.
-
progressive.nagiosXI
- Posts: 277
- Joined: Mon Jul 31, 2017 5:54 am
Re: NRPE installation on HP-UX
Hi Team,
We have solved the problem it was occuring due to wrong entry in inetd.conf file.
however we are now facing problem that via NRPE monitoring we are not able to pass arguments what we need to do.
we are able to only run command which are defined in nrpe.cfg file.
we have already nrpe.cfg file plz check
command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
command[check_load]=/usr/local/nagios/libexec/check_load -r -w .15,.10,.05 -c .30,.25,.20
command[check_hda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/hda1
command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200
# The following examples allow user-supplied arguments and can
# only be used if the NRPE daemon was compiled with support for
# command arguments *AND* the dont_blame_nrpe directive in this
# config file is set to '1'. This poses a potential security risk, so
# make sure you read the SECURITY file before doing this.
### MISC SYSTEM METRICS ###
command[check_disk]=/usr/local/nagios/libexec/check_disk $ARG1$
please suggest, we would like to share a document of NRPE monitoring here to avoid trouble for any of users.
We have solved the problem it was occuring due to wrong entry in inetd.conf file.
however we are now facing problem that via NRPE monitoring we are not able to pass arguments what we need to do.
we are able to only run command which are defined in nrpe.cfg file.
we have already nrpe.cfg file plz check
command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
command[check_load]=/usr/local/nagios/libexec/check_load -r -w .15,.10,.05 -c .30,.25,.20
command[check_hda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/hda1
command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200
# The following examples allow user-supplied arguments and can
# only be used if the NRPE daemon was compiled with support for
# command arguments *AND* the dont_blame_nrpe directive in this
# config file is set to '1'. This poses a potential security risk, so
# make sure you read the SECURITY file before doing this.
### MISC SYSTEM METRICS ###
command[check_disk]=/usr/local/nagios/libexec/check_disk $ARG1$
please suggest, we would like to share a document of NRPE monitoring here to avoid trouble for any of users.
Re: NRPE installation on HP-UX
You already have:
in the nrpe.cfg file. Have you restarted nrpe after making these changes?
Note: It is possible that you didn't compile NRPE with the --enable-command-args option. If this is the case, even after setting dont_blame_nrpe=1, you wouldn't be able to pass arguments. You will need to recompile NRPE with --enable-command-args.
Code: Select all
dont_blame_nrpe=1Note: It is possible that you didn't compile NRPE with the --enable-command-args option. If this is the case, even after setting dont_blame_nrpe=1, you wouldn't be able to pass arguments. You will need to recompile NRPE with --enable-command-args.
# COMMAND ARGUMENT PROCESSING
# This option determines whether or not the NRPE daemon will allow clients
# to specify arguments to commands that are executed. This option only works
# if the daemon was configured with the --enable-command-args configure script
# option.
#
# *** ENABLING THIS OPTION IS A SECURITY RISK! ***
# Read the SECURITY file for information on some of the security implications
# of enabling this variable.
#
# Values: 0=do not allow arguments, 1=allow command arguments
# Values: 0=do not allow arguments, 1=allow command arguments
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
progressive.nagiosXI
- Posts: 277
- Joined: Mon Jul 31, 2017 5:54 am
Re: NRPE installation on HP-UX
yes you are right i haven't run with " --enable-command-args "How can i do these please suggest. do i need to uninstall nrpe then install it again or i just need to nrpe directory and run command "configure --enable-command-args"
Re: NRPE installation on HP-UX
I don't believe you need to remove the "old" NRPE - just run:
Code: Select all
./configure --enable-command-args
make all
make installBe sure to check out our Knowledgebase for helpful articles and solutions!
-
progressive.nagiosXI
- Posts: 277
- Joined: Mon Jul 31, 2017 5:54 am
Re: NRPE installation on HP-UX
Thanks it worked but i"m listing down plugins and have not found any plugin to monitor memory can you help, i have installed
HECCAPP5:/usr/local/nagios/libexec #ls
check_apt check_disk_smb check_ifoperstatus check_mrtg check_ntp_peer check_real check_swap urlize
check_breeze check_dns check_ifstatus check_mrtgtraf check_ntp_time check_rpc check_tcp utils.pm
check_by_ssh check_dummy check_imap check_nagios check_nwstat check_sensors check_time utils.sh
check_clamd check_file_age check_ircd check_nntp check_oracle check_simap check_udp
check_cluster check_flexlm check_jabber check_nntps check_overcr check_smtp check_ups
check_dhcp check_ftp check_load check_nrpe check_ping check_spop check_users
check_dig check_http check_log check_nt check_pop check_ssh check_wave
check_disk check_icmp check_mailq check_ntp check_procs check_ssmtp negate
HECCAPP5:/usr/local/nagios/libexec #
I have used this nagios-plugins-2.2.1.tar.gz
HECCAPP5:/usr/local/nagios/libexec #ls
check_apt check_disk_smb check_ifoperstatus check_mrtg check_ntp_peer check_real check_swap urlize
check_breeze check_dns check_ifstatus check_mrtgtraf check_ntp_time check_rpc check_tcp utils.pm
check_by_ssh check_dummy check_imap check_nagios check_nwstat check_sensors check_time utils.sh
check_clamd check_file_age check_ircd check_nntp check_oracle check_simap check_udp
check_cluster check_flexlm check_jabber check_nntps check_overcr check_smtp check_ups
check_dhcp check_ftp check_load check_nrpe check_ping check_spop check_users
check_dig check_http check_log check_nt check_pop check_ssh check_wave
check_disk check_icmp check_mailq check_ntp check_procs check_ssmtp negate
HECCAPP5:/usr/local/nagios/libexec #
I have used this nagios-plugins-2.2.1.tar.gz
Re: NRPE installation on HP-UX
There are some 3rd party plugins on the Nagios Exchange that may work for you. A quick search for hp-us and memory produced the results below:
https://exchange.nagios.org/index.php?o ... d%20memory
https://exchange.nagios.org/index.php?o ... d%20memory
Be sure to check out our Knowledgebase for helpful articles and solutions!