Page 1 of 1
Monitor Suse server with NRPE Agent
Posted: Thu Jun 14, 2018 7:00 am
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.
Re: Monitor Suse server with NRPE Agent
Posted: Thu Jun 14, 2018 9:24 am
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
Re: Monitor Suse server with NRPE Agent
Posted: Fri Jun 15, 2018 6:00 am
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.
Re: Monitor Suse server with NRPE Agent
Posted: Fri Jun 15, 2018 1:49 pm
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.
Re: Monitor Suse server with NRPE Agent
Posted: Thu Jun 21, 2018 3:36 am
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.
Re: Monitor Suse server with NRPE Agent
Posted: Thu Jun 21, 2018 1:02 pm
by scottwilkerson
Did you start the service?
Is the process running?
Re: Monitor Suse server with NRPE Agent
Posted: Thu Jun 21, 2018 1:06 pm
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:~ #
Re: Monitor Suse server with NRPE Agent
Posted: Thu Jun 21, 2018 1:08 pm
by scottwilkerson
Oh you installed it under xinetd, can you share
Re: Monitor Suse server with NRPE Agent
Posted: Thu Jun 21, 2018 1:15 pm
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:~ #
Re: Monitor Suse server with NRPE Agent
Posted: Thu Jun 21, 2018 2:33 pm
by scottwilkerson
so do either work?
can you see the port open here?
If not after restarting xinetd can you run the following and post the contents