nath_e
June 18, 2008, 8:20am
1
Hi,
I recently built two servers, exactly the same and set up nrpe the same on both. On one of them however, nrpe doesn’t start autmatically. I have to manully restart the nagios remote plugin executor.
I see this error in the event viewer:
NRPE_NT: bind() failed with error 10049
Can anyone help me shed any light on this please as I cannot understand how this works on one server but not the other. I’ve tried uninstalling nrpe_nt.exe and then copying it over from the working server and installing it again and it still hasn’t solved the issue.
Any help/info appreciated.
Cheers
Loose
June 18, 2008, 1:29pm
2
Hi!
Just an idea: I would think that the port 5666 (default port of NRPE) is already occupied.
Try to type “netstat -a” and see if the port is listed or not (try netstat -b to have the .exe responsible for the bind).
I hope this will help you;
don’t hesitate to post again if not
nath_e
June 18, 2008, 2:57pm
3
Hi, thanks for the response. I ran netstat -b and it is being used by the nagios host IP address.
If I restart the nrpre service manually it seems to work. When I reboot the server though the service fails to start and that’s where the error above is generated.
nath_e
June 20, 2008, 2:09pm
4
Can anyone help me with this? Or suggest an alternative location where someone might be able to help me please.
Thanks
nath_e
June 20, 2008, 2:37pm
5
Here is a snapshot of some recent events form the log file. The failed to bind to port error was following a reboot.
2008-06-07 14:50:31; 4600; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-07 21:53:29; 4720; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-08 04:55:54; 4852; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-08 13:58:16; 4480; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-09 00:00:41; 980; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-09 03:02:52; 4788; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-09 06:05:01; 1332; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-09 12:09:28; 4300; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-09 15:11:55; 4476; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-09 22:15:24; 968; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-10 02:19:00; 736; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-10 09:22:32; 2732; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-10 11:25:05; 4980; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-10 13:58:44; 1632; 4;Error: Socket read failed (NonSSL)…
2008-06-10 16:32:03; 4608; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-10 21:38:03; 4284; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-11 00:42:18; 4472; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-11 04:47:03; 3124; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-11 06:50:04; 1348; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-11 08:08:15; 4340; 6;NRPE_NT shutting down…
2008-06-11 08:09:26; 1888; 4;bind() failed with error 10049
2008-06-11 08:12:56; 4340; 6;Listening on port 5666
2008-06-11 09:38:05; 4936; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-11 14:11:20; 4856; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-11 17:59:02; 3664; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-11 21:01:17; 4180; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-12 02:05:48; 4104; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-12 05:09:52; 3416; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-12 08:13:40; 2500; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-12 09:15:45; 2816; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-12 12:18:12; 1164; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-12 19:32:25; 4824; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-12 21:35:58; 3316; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-13 01:38:41; 3264; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-13 02:59:09; 5080; 4;Error: Socket read failed (NonSSL)…
2008-06-13 02:59:13; 4300; 4;Error: Socket read failed (NonSSL)…
2008-06-13 03:41:11; 4132; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-13 05:43:28; 3260; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-13 09:48:11; 3084; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-13 12:15:57; 796; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-13 16:18:20; 2728; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-13 19:20:54; 3116; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-13 21:23:32; 3752; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-14 00:26:17; 2932; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-14 06:29:31; 2988; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-14 15:33:54; 3512; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-14 21:36:18; 3664; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-15 01:39:54; 1384; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-15 07:42:43; 4312; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-15 16:45:05; 4868; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-15 22:47:31; 3896; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-16 05:51:10; 4264; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-16 07:54:13; 3288; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-16 11:57:36; 4300; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-16 17:01:12; 4784; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-16 20:17:31; 4272; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-17 01:22:08; 4892; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-17 03:25:22; 3480; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-17 08:29:35; 3020; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-17 14:29:56; 5060; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-17 16:14:32; 4132; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-17 17:18:16; 4012; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-17 21:25:56; 4648; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-18 01:34:06; 3604; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-18 04:40:03; 4356; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-18 06:43:51; 2500; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-18 13:47:50; 4144; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-18 16:50:29; 3228; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-18 17:53:00; 2716; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-18 20:55:14; 4000; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-18 21:00:32; 4332; 6;NRPE_NT shutting down…
2008-06-18 21:01:55; 1944; 4;bind() failed with error 10049
2008-06-19 07:18:25; 3916; 6;Listening on port 5666
2008-06-19 08:19:16; 3032; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-19 12:20:31; 4088; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-19 16:23:21; 3236; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-19 21:27:44; 1548; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-20 01:30:00; 716; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-20 02:32:42; 3320; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-20 06:35:05; 3820; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-20 08:37:20; 3236; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
2008-06-20 13:41:43; 1680; 4;Bad return code for [The check didn’t respond within the timeout period!]: 5
Loose
June 20, 2008, 3:11pm
6
pretty weird …
Firstly, you should check if, but some mysterious ways (windows power!), your nrpe is not trying to be launched twice (like having 2 services configured, or 1 service and 1 in your start menu …etc)
Also, I had a look at my own nrpe logs on NT, and they don’t really look as yours (my logs are a bit more extensive …). So, maybe you could try to uninstall every thing that is NRPE related, and install a more recent version.
Or, if it doesn’t work, get rid of nrpe and install NsClient++ (it is an agent that combines nrpe, nsca and maybe some other things I didn’t care about at the time :))