[Nagios-devel] NSCA in standalone single-process daemon mode
Posted: Tue May 02, 2006 12:42 pm
This is a multi-part message in MIME format.
------=_NextPart_000_0080_01C66E07.50B7D850
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Hi list,
I'm running a big Nagios monitoring system which has about a hundred of
remote passive checks reporting trough NSCA. Lately when I added more
passive checks I noticed that the number of "Failed" checks (No results
received) increased (For most of the checks it's impossible to say if it did
run or not).
I'm currently running NSCA in inetd mode using D. J. Bernstein's tcpserver
program. Since most checks are run by Vixie Cron, and therefore will run at
the exact same time, my two guess were that either:
1. I'm jamming up the monitoring server for more that 10 seconds will all
the checks.
Or
2. All NSCA processes writing at the same command file trigger some obscure
OS or Nagios bug.
I have reasons to think it's not #1, so to test #2 I wanted to run NSCA in
single-process daemon mode. When I do this it get the first passive check
correctly and send_nsca fail on all other checks. Running strace I see that
it block on the poll syscall after processing the first check, and send_nsca
timeouts after 10 seconds.
I'm running Nagios 2.0b3 on Slackware 10.1.0, Dual Athlon MP with 4G of ram,
NSCA Version 2.6, Official & unpatched.
Compiled with Gcc:
Configured with: ../gcc-3.3.4/configure --prefix=/usr --enable-shared
--enable-threads=posix --enable-__cxa_atexit --disable-checking
--with-gnu-ld --verbose --target=i486-slackware-linux
--host=i486-slackware-linux
Thread model: posix
gcc version 3.3.4
Any thoutht on what's going wrong here?
Thanks,
Thomas Guyot-Sionnest
------=_NextPart_000_0080_01C66E07.50B7D850
Content-Type: application/x-pkcs7-signature;
name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="smime.p7s"
MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIIwTCCAkkw
ggGyoAMCAQICAw+pBzANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhh
d3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcn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2FwZTESMBAGA1UEBxMJQ2Fw
ZSBUb3duMRowGAYDVQQKExFUaGF3dGUgQ29uc3VsdGluZzEoMCYGA1UECxMfQ2VydGlmaWNhdGlv
biBTZXJ2aWNlcyBEaXZpc2lvbjEkMCIGA1UEAxMbVGhhd3RlIFBlcnNvbmFsIEZyZWVtYWlsIENB
MSswKQYJKoZIhvcNAQkBFhxwZXJzb25hbC1mcmVlbWFpbEB0aGF3dGUuY29tMIGfMA0GCSqGSIb3
DQEBAQUAA4GNADCBiQKBgQDUadfUsJRkW3HpR9gMUbbqcpGwhF59LQ2PexLfhSV1KHQ6QixjJ5+V
e0vvfhmHHYbqo925zpZkGsIUbkSsfOaP6E0PcR9AOKYAo4d49vmUhl6t6sBeduvZFKNdbnp8DKVL
VX8GGSl/npom1Wq7OCQIapjHsdqjmJH9edvlWsQcuQIDAQABoxMwETAPBgNVHRMBAf8EBTADAQH/
MA0GCSqGSIb3DQEBBAUAA4GBAMfskn5O+PWWpWdiKqTwTRFg0G+NYFhhrCa7UjVcCM8w+6hKloof
YkIjjBcP9LpknBesRynfnZhe0mxgcVyirNx54+duAEcftQ0o6AKd5Jr9E/Sm2Xyx+NxfIyYJkYBz
0BQb3kOpgyXy5pwvFcr+pquKB3WLDN1RhGvk+NHOd6KBMIIDPzCCAqigAwIBAgIBDTANBgkqhkiG
9w0BAQUFADCB0TELMAkGA1UEBhMCWkExFTATBgNVBAgTDFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJ
Q2FwZSBUb3duMRowGAYDVQQKExFUaGF3dGUgQ29uc3VsdGluZzEoMCYGA1UECxMfQ2VydGlmaWNh
dGlvbiBTZXJ2aWNlcyBEaXZpc2lvbjEkMCIGA1UEAxMbVGhhd3RlIFBlcnNvbmFsIEZyZWVtYWls
...[email truncated]...
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
------=_NextPart_000_0080_01C66E07.50B7D850
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Hi list,
I'm running a big Nagios monitoring system which has about a hundred of
remote passive checks reporting trough NSCA. Lately when I added more
passive checks I noticed that the number of "Failed" checks (No results
received) increased (For most of the checks it's impossible to say if it did
run or not).
I'm currently running NSCA in inetd mode using D. J. Bernstein's tcpserver
program. Since most checks are run by Vixie Cron, and therefore will run at
the exact same time, my two guess were that either:
1. I'm jamming up the monitoring server for more that 10 seconds will all
the checks.
Or
2. All NSCA processes writing at the same command file trigger some obscure
OS or Nagios bug.
I have reasons to think it's not #1, so to test #2 I wanted to run NSCA in
single-process daemon mode. When I do this it get the first passive check
correctly and send_nsca fail on all other checks. Running strace I see that
it block on the poll syscall after processing the first check, and send_nsca
timeouts after 10 seconds.
I'm running Nagios 2.0b3 on Slackware 10.1.0, Dual Athlon MP with 4G of ram,
NSCA Version 2.6, Official & unpatched.
Compiled with Gcc:
Configured with: ../gcc-3.3.4/configure --prefix=/usr --enable-shared
--enable-threads=posix --enable-__cxa_atexit --disable-checking
--with-gnu-ld --verbose --target=i486-slackware-linux
--host=i486-slackware-linux
Thread model: posix
gcc version 3.3.4
Any thoutht on what's going wrong here?
Thanks,
Thomas Guyot-Sionnest
------=_NextPart_000_0080_01C66E07.50B7D850
Content-Type: application/x-pkcs7-signature;
name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="smime.p7s"
MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIIwTCCAkkw
ggGyoAMCAQICAw+pBzANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhh
d3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVt
YWlsIElzc3VpbmcgQ0EwHhcNMDUxMDEzMjE1NDQ2WhcNMDYxMDEzMjE1NDQ2WjBCMR8wHQYDVQQD
ExZUaGF3dGUgRnJlZW1haWwgTWVtYmVyMR8w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GA1UEAxMbVGhhd3RlIFBlcnNvbmFsIEZyZWVtYWlsIENB
MSswKQYJKoZIhvcNAQkBFhxwZXJzb25hbC1mcmVlbWFpbEB0aGF3dGUuY29tMIGfMA0GCSqGSIb3
DQEBAQUAA4GNADCBiQKBgQDUadfUsJRkW3HpR9gMUbbqcpGwhF59LQ2PexLfhSV1KHQ6QixjJ5+V
e0vvfhmHHYbqo925zpZkGsIUbkSsfOaP6E0PcR9AOKYAo4d49vmUhl6t6sBeduvZFKNdbnp8DKVL
VX8GGSl/npom1Wq7OCQIapjHsdqjmJH9edvlWsQcuQIDAQABoxMwETAPBgNVHRMBAf8EBTADAQH/
MA0GCSqGSIb3DQEBBAUAA4GBAMfskn5O+PWWpWdiKqTwTRFg0G+NYFhhrCa7UjVcCM8w+6hKloof
YkIjjBcP9LpknBesRynfnZhe0mxgcVyirNx54+duAEcftQ0o6AKd5Jr9E/Sm2Xyx+NxfIyYJkYBz
0BQb3kOpgyXy5pwvFcr+pquKB3WLDN1RhGvk+NHOd6KBMIIDPzCCAqigAwIBAgIBDTANBgkqhkiG
9w0BAQUFADCB0TELMAkGA1UEBhMCWkExFTATBgNVBAgTDFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJ
Q2FwZSBUb3duMRowGAYDVQQKExFUaGF3dGUgQ29uc3VsdGluZzEoMCYGA1UECxMfQ2VydGlmaWNh
dGlvbiBTZXJ2aWNlcyBEaXZpc2lvbjEkMCIGA1UEAxMbVGhhd3RlIFBlcnNvbmFsIEZyZWVtYWls
...[email truncated]...
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]