NRPE Invalid packet version received from server

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.

NRPE Invalid packet version received from server

Postby tonnag » Wed Jan 16, 2019 3:14 pm

Hi, I got nagios running on a debian machine which goes real well
root@monitor:# /usr/local/nagios/bin/nagios -v
Nagios Core 4.4.3
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2019-01-15
License: GPL


Now I want to add extra checks on my servers, and installed nrpe which works
root@monitor:# /usr/local/nagios/libexec/check_nrpe -V
NRPE Plugin for Nagios
Version: 3.2.1


And since i wanna use custom checks, I went for the check_mk agent which also works
root@monitor:# telnet logserver.lan 6556
Trying ::1...
Connected to localhost.
Escape character is '^]'.
<<<check_mk>>>
Version: 1.5.0
AgentOS: linux
Hostname: monitor
AgentDirectory: /etc/check_mk
.......
.......


but the two together ..... won't :(
root@monitor:# /usr/local/nagios/libexec/check_nrpe -2 -n -H logserver.lan -p 6556
CHECK_NRPE: Invalid packet version received from server.


Any suggestions ?
Thnx Ton
Last edited by tonnag on Wed Jan 16, 2019 3:30 pm, edited 1 time in total.
tonnag
 
Posts: 12
Joined: Thu Sep 06, 2018 2:27 am

Re: NRPE Invalid packet version received from server

Postby npolovenko » Wed Jan 16, 2019 5:50 pm

Hello, @tonnag. Check_nrpe requires a remote NRPE agent. The remote nrpe agent is installed on the monitored server and it's supposed to execute given commands on the monitored server and send the result back to Nagios.
https://assets.nagios.com/downloads/nagioscore/docs/nrpe/NRPE.pdf
I'm not familiar with check_mk but looks like its a monitoring tool? Is there a specific set of commands that you can run against the check_mk plugin to get the desired information about the monitored system? Can you demonstrate such commands and show me the output?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
npolovenko
Support Tech
 
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: NRPE Invalid packet version received from server

Postby tonnag » Thu Jan 17, 2019 2:17 am

npolovenko, thnx for responding, but it's my mistake.
I wanna use the check_mk agent on the remote systems and :oops: thought it would work as a 1:1 replacement of the nrpe agent.
So besides the check_mk agent I installed an nrpe agent to compare output. That's not alike so i'm off-track for that one.

the NRPE works just fine with it's own agent
tonnag
 
Posts: 12
Joined: Thu Sep 06, 2018 2:27 am

Re: NRPE Invalid packet version received from server

Postby npolovenko » Thu Jan 17, 2019 5:22 pm

@tonnag, Perhaps check by ssh would work for you? It can execute commands on the remote server without an agent.
You'd need to exchange ssh keys on servers. Here's the tutorial:
https://assets.nagios.com/downloads/nagiosxi/docs/Monitoring_Hosts_Using_SSH.pdf
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
npolovenko
Support Tech
 
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: NRPE Invalid packet version received from server

Postby tonnag » Tue Jan 22, 2019 6:45 am

great idea! thnx, it might indeed work better/faster in this case
tonnag
 
Posts: 12
Joined: Thu Sep 06, 2018 2:27 am

Re: NRPE Invalid packet version received from server

Postby npolovenko » Tue Jan 22, 2019 5:21 pm

@tonnag, Awesome. Do you have any additional questions for us before I lock this thread?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
npolovenko
Support Tech
 
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: NRPE Invalid packet version received from server

Postby tonnag » Wed Jan 30, 2019 1:45 pm

nope. THNX!
tonnag
 
Posts: 12
Joined: Thu Sep 06, 2018 2:27 am

Re: NRPE Invalid packet version received from server

Postby scottwilkerson » Wed Jan 30, 2019 1:57 pm

tonnag wrote:nope. THNX!


Great!

Locking thread
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: 15398
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises


Return to Nagios Plugin Development

Who is online

Users browsing this forum: No registered users and 1 guest