Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wishlist: RFC Style Document describing the NRPE Protocol #1

Open
andreas-marschke opened this issue Jan 4, 2013 · 3 comments
Open

Comments

@andreas-marschke
Copy link
Contributor

So currently there is no actual documentation regarding the contents of a TCP packet crossing the wire
in order to talk to an NRPE daemon or anything regarding the response judging from the actual source code (check_nrpe.c) there are also major flaws in the packet data sent by other perl implementations.

The best I could come up with so far as to what the packet consists of is described in share/protocol-nrpe.md which will definitely be refined as I get along.

For the forseeable future I'd wish for somebody to write an actual RFC style document describing the architecture of the request and response packets.

@mickenordin
Copy link
Contributor

@mickenordin
Copy link
Contributor

mickenordin commented Jul 5, 2017

The packet structure can be forund in the nrpe source: https://github.com/NagiosEnterprises/nrpe/blob/master/include/common.h.in

typedef struct _v2_packet {
	int16_t		packet_version;
	int16_t		packet_type;
	u_int32_t	crc32_value;
	int16_t		result_code;
	char		buffer[MAX_PACKETBUFFER_LENGTH];
} v2_packet;

typedef struct _v3_packet {
	int16_t		packet_version;
	int16_t		packet_type;
	u_int32_t	crc32_value;
	int16_t		result_code;
	int16_t		alignment;
	int32_t		buffer_length;
	char		buffer[1];
} v3_packet;

@mickenordin mickenordin changed the title Wishlist: RFC Style Document describin NRPE Protocol Wishlist: RFC Style Document describing the NRPE Protocol Nov 23, 2018
@ziccardi
Copy link

@mickenordin Some years ago I implemented a Java and (more recently) a Javascript version of NRPE.
I'm in the process of regenerating their website, so I came across this doc.
Maybe you could be interested: https://ziccardi.github.io/docs/nrpe/protocol.

The JAVA version has a fully working jcheck_nrpe too (protocol version 2).

You can find docs about the JAVA implementation here.

Documentation about the other implementations is still to come.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants