Monitor Suse server with NRPE Agent
Monitor Suse server with NRPE Agent
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.
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.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Monitor Suse server with NRPE Agent
You will likely have to install with the non pre-packaged version. Instructions are here
https://support.nagios.com/kb/article.php?id=515
https://support.nagios.com/kb/article.php?id=515
Re: Monitor Suse server with NRPE Agent
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.
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
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.
Re: Monitor Suse server with NRPE Agent
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.
https://assets.nagios.com/downloads/nag ... e/NRPE.pdf
After doing all configuration, the port 5666 is not listening in suse server.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Monitor Suse server with NRPE Agent
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:~ #
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:~ #
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Monitor Suse server with NRPE Agent
Oh you installed it under xinetd, can you share
Code: Select all
cat /etc/xinetd.d/nrpe
Re: Monitor Suse server with NRPE Agent
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:~ #
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:~ #
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Monitor Suse server with NRPE Agent
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
can you see the port open here?
Code: Select all
netstat -nlp|grep 5666
Code: Select all
grep nrpe /var/log/messages