When using --bindto and/or --allowedhosts nagios-statd stops accepting connections after a while
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nagios-statd (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Ubuntu 9.04 server:
nagios-
Installed: 3.12-1
Candidate: 3.12-1
Version table:
*** 3.12-1 0
500 http://
100 /var/lib/
This is happening on 3 machines now. There are 7 others with the same version of Ubuntu installed on the same hardware but do not require either of these options because they're only on a private network. Those 7 work properly with the same Nagios server. The 3 using --bindto stop allowing connections after some period of time. The 3 machines with this problem have a public and private interface and I'm trying to bind to the private interface.
There does not seem to be any logging to view but for lack of anything else here's an strace during a connection attempt using telnet. The other end just gets an immediate dropped connection.
select(4, [3], [], [], {0, 500000}) = 0 (Timeout)
select(4, [3], [], [], {0, 500000}) = 0 (Timeout)
select(4, [3], [], [], {0, 500000}) = 1 (in [3], left {0, 248772})
accept(3, {sa_family=AF_INET, sin_port=
stat("/
stat("/
stat("/
close(4) = 0
select(4, [3], [], [], {0, 500000}) = 0 (Timeout)
select(4, [3], [], [], {0, 500000}) = 0 (Timeout)
Yet the port appears to be listening:
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 10.2.2.1:1040 0.0.0.0:* LISTEN
I have been experiencing this issue as well. I've managed to work around it by disabling the service and configuring nagios_statd to operate through xinetd.