nagios nrpe connection
Andreas Ericsson
ae at op5.se
Sat Apr 17 23:42:27 CEST 2004
Marcos & Marcelo wrote:
> Hi Folks,
>
> I would like to know which protocol Nagios uses in order to connect with NRPE in the client machine.
>
Nagios executes a plugin called check_nrpe, which communicates via
standard tcp sockets.
The data exchange goes a little something like this (for nrpe v2,
possible ssl handshake excluded);
struct packet_struct {
int16_t packet_version;
int16_t packet_type;
u_int32_t crc32_value;
int16_t result_code;
char buffer[1024];
};
check_nrpe (the plugin) sends {0x0002, 0x0001, (generated), 0,
"command_to_check"}
which means "NRPE Protocol version 2, Querypacket, crc32value, 0, run
command with command_name 'command_to_check'"
nrpe (the daemon) responds {0x0002, 0x0002, (generated), (return code),
"plugin output"}
which means "NRPE Protocol version 2, Responsepacket, crc32value,
(plugin exit status), "plugin output").
> Thanks
> Marcelo
--
Mvh / Best Regards
Sourcerer / Andreas Ericsson
OP5 AB
+46 (0)733 709032
andreas.ericsson at op5.se
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list