Monitor Suse server with NRPE Agent

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vinish098
Posts: 136
Joined: Fri Oct 21, 2016 6:30 am

Monitor Suse server with NRPE Agent

Post by vinish098 »

Dera Team,

I am installing nagiosxi at one of the client place who has a SUSE system in their infrastructure.When i am trying to install NRPE agent on SUSE linux its throwing error "NRPE is not supported on SUSE linux"
Please help us in installing NRPE on SUSE linux.Our client is using SLES11,SLES12 all service pack.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitor Suse server with NRPE Agent

Post by scottwilkerson »

You will likely have to install with the non pre-packaged version. Instructions are here

https://support.nagios.com/kb/article.php?id=515
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
vinish098
Posts: 136
Joined: Fri Oct 21, 2016 6:30 am

Re: Monitor Suse server with NRPE Agent

Post by vinish098 »

Dear Team,

The Link given by you for nrpe on suse linux only support SLES11 SP-3 and upward version.In our envirement we have SLES 11 SP-2.

How can we install NRPE on SLES 12-SP2 version.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Monitor Suse server with NRPE Agent

Post by cdienger »

Use the instructions for SP3. There may be other packages or additional steps that need to be taken for older versions of SUSE which should result in errors or warnings when trying to do the install.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
vinish098
Posts: 136
Joined: Fri Oct 21, 2016 6:30 am

Re: Monitor Suse server with NRPE Agent

Post by vinish098 »

We have done all the configuration as per the document. Also referred one more doc:
https://assets.nagios.com/downloads/nag ... e/NRPE.pdf

After doing all configuration, the port 5666 is not listening in suse server.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitor Suse server with NRPE Agent

Post by scottwilkerson »

Did you start the service?

Is the process running?

Code: Select all

ps -ef|grep nrpe
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
vinish098
Posts: 136
Joined: Fri Oct 21, 2016 6:30 am

Re: Monitor Suse server with NRPE Agent

Post by vinish098 »

No, there is no nrpe process. please find below output:

susemgr:~ # systemctl restart xinetd
susemgr:~ # systemctl status xinetd
● xinetd.service - Xinetd A Powerful Replacement For Inetd
Loaded: loaded (/usr/lib/systemd/system/xinetd.service; disabled; vendor preset: disabled)
Active: active (running) since Thu 2018-06-21 23:34:43 IST; 8s ago
Main PID: 23984 (xinetd)
Tasks: 1 (limit: 512)
CGroup: /system.slice/xinetd.service
└─23984 /usr/sbin/xinetd -stayalive -dontfork

Jun 21 23:34:43 susemgr xinetd[23984]: bind failed (Address already in use (errno = 98)). service = tftp
Jun 21 23:34:43 susemgr xinetd[23984]: bind retry attempt 8
Jun 21 23:34:43 susemgr xinetd[23984]: bind failed (Address already in use (errno = 98)). service = tftp
Jun 21 23:34:43 susemgr xinetd[23984]: bind retry attempt 9
Jun 21 23:34:43 susemgr xinetd[23984]: bind failed (Address already in use (errno = 98)). service = tftp
Jun 21 23:34:43 susemgr xinetd[23984]: bind retry attempt 10
Jun 21 23:34:43 susemgr xinetd[23984]: bind failed (Address already in use (errno = 98)). service = tftp
Jun 21 23:34:43 susemgr xinetd[23984]: Service tftp failed to start and is deactivated.
Jun 21 23:34:43 susemgr xinetd[23984]: xinetd Version 2.3.15 started with libwrap loadavg options compiled in.
Jun 21 23:34:43 susemgr xinetd[23984]: Started working: 1 available service
susemgr:~ # ps -ef | grep nrpe
root 23988 31595 0 23:34 pts/0 00:00:00 grep --color=auto nrpe
susemgr:~ #
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitor Suse server with NRPE Agent

Post by scottwilkerson »

Oh you installed it under xinetd, can you share

Code: Select all

cat /etc/xinetd.d/nrpe
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
vinish098
Posts: 136
Joined: Fri Oct 21, 2016 6:30 am

Re: Monitor Suse server with NRPE Agent

Post by vinish098 »

This is the original file:
susemgr:~ # cat /etc/xinetd.d/nrpe.bak
# default: off
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
disable = yes
socket_type = stream
port = 5666
wait = no
user = nagios
group = nagios
server = /usr/local/nagios/bin/nrpe
server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
only_from = 152.63.2.94
log_on_success =
}


But as it was not working, so we have copied a nrpe file from some different working environment. posting here:

susemgr:~ # cat /etc/xinetd.d/nrpe
# default: off
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
flags = REUSE
socket_type = stream
port = 5666
wait = no
user = nagios
group = nagios
server = /usr/local/nagios/bin/nrpe
server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
log_on_failure += USERID
disable = no
only_from = 152.63.2.94
}
susemgr:~ #
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitor Suse server with NRPE Agent

Post by scottwilkerson »

so do either work?
can you see the port open here?

Code: Select all

netstat -nlp|grep 5666
If not after restarting xinetd can you run the following and post the contents

Code: Select all

grep nrpe /var/log/messages
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked