check_nrpe and check_disk mismatch

This forum is intended for the discussion of Nagios plugin development. Feature requests, patches, bug fixes, and all types of development-related discussions are welcome!

NOTE: The SourceForge.net nagiosplug-devel mailing list has been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Re: check_nrpe and check_disk mismatch

Postby hemak88 » Sat Jul 28, 2018 11:37 pm

NRPE not recognized as a service.
Code: Select all
[root@client ~]# service nrpe restart
nrpe: unrecognized service
[root@client ~]#
hemak88
 
Posts: 13
Joined: Wed Mar 29, 2017 2:31 am

Re: check_nrpe and check_disk mismatch

Postby scottwilkerson » Mon Jul 30, 2018 7:38 am

how was nrpe started on Jul05 ?

This may solve the issue
Code: Select all
killall -9 nrpe
service xinetd restart
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 11144
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: check_nrpe and check_disk mismatch

Postby hemak88 » Tue Jul 31, 2018 6:14 am

nrpe is configured under xinetd service. Hence the process exist.
Code: Select all
[root@clientname ~]# cat /etc/xinetd.d/nrpe
# default: off
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
    disable         = no
    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       = 127.0.0.1 <nagiosserverIP>
    log_on_failure  += USERID
}
hemak88
 
Posts: 13
Joined: Wed Mar 29, 2017 2:31 am

Re: check_nrpe and check_disk mismatch

Postby scottwilkerson » Tue Jul 31, 2018 8:18 am

hemak88 wrote:nrpe is configured under xinetd service. Hence the process exist.

When running under xinetd it will not show in the process list like you showed.

Did you run the commands like I recommended?
scottwilkerson wrote:
Code: Select all
killall -9 nrpe
service xinetd restart
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 11144
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: check_nrpe and check_disk mismatch

Postby hemak88 » Thu Aug 02, 2018 12:14 am

Did you run the commands like I recommended?

Yes I did.
Code: Select all
[root@clientname ~]# kill -9 nrpe
-bash: kill: nrpe: arguments must be process or job IDs
[root@clientname~]# ps -ef |grep nrpe
root     57074 57017  0 09:12 pts/0    00:00:00 grep nrpe
nagios   61841     1  0 Jul31 ?        00:00:02 /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -f
[root@clientname ~]# kill -9 61841
[root@clientname ~]# service xinetd restart
Stopping xinetd:                                           [  OK  ]
Starting xinetd:                                           [  OK  ]
[root@clientname ~]# ps -ef |grep nrpe
nagios   57222     1  0 09:13 ?        00:00:00 /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -f
root     57277 57017  0 09:13 pts/0    00:00:00 grep nrpe
[root@clientname ~]#
hemak88
 
Posts: 13
Joined: Wed Mar 29, 2017 2:31 am

Re: check_nrpe and check_disk mismatch

Postby scottwilkerson » Thu Aug 02, 2018 7:50 am

Lets try it this way:
Code: Select all
systemctl disable nrpe
systemctl stop nrpe
service xinetd restart
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 11144
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: check_nrpe and check_disk mismatch

Postby hemak88 » Sun Aug 12, 2018 1:43 am

Code: Select all
[root@clientname ~]# service nrpe stop
nrpe: unrecognized service
[root@clientname ~]# service xinetd restart
Stopping xinetd:                                           [  OK  ]
Starting xinetd:                                           [  OK  ]
[root@clientname ~]#

It is an RHEL 6 server.
hemak88
 
Posts: 13
Joined: Wed Mar 29, 2017 2:31 am

Re: check_nrpe and check_disk mismatch

Postby scottwilkerson » Mon Aug 13, 2018 8:59 am

do you get correct results now?

If not what shows here now
Code: Select all
ps -ef |grep nrpe
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 11144
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: check_nrpe and check_disk mismatch

Postby hemak88 » Tue Aug 14, 2018 7:07 am

Code: Select all
[root@clientname ~]# ps -ef |grep nrpe
root     37690 37661  0 16:06 pts/0    00:00:00 grep nrpe
nagios   57222     1  0 Aug02 ?        00:00:13 /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -f
[root@clientname ~]#


Still the same
hemak88
 
Posts: 13
Joined: Wed Mar 29, 2017 2:31 am

Re: check_nrpe and check_disk mismatch

Postby scottwilkerson » Tue Aug 14, 2018 7:54 am

So this process is running since Aug02 and is not part of xinetd

run
Code: Select all
kill -9 57222
service xinetd restart
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 11144
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Previous

Return to Nagios Plugin Development

Who is online

Users browsing this forum: No registered users and 3 guests