Page 1 of 1

Re: [Nagios-devel] process_check_result_file does not delete files

Posted: Sun Jun 17, 2007 9:42 am
by Guest
This is a multi-part message in MIME format.
--------------060006060307030302030704
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Hi List,

Florian was right. I think there is a smal typo while generating check
checkresult files and specially the "ok-to-go" files for each
checkresult file.

Without that "ok-to-go" file no checkresult file will be go back to the
core for processing, I think. Correct me if I am wrong.

This patch against the current cvs code should fix this and creates a
*.ok file for each checkresult file.

See this ls -la of my spooldir:

-rw------- 1 nagios nagios 438 2007-06-17 19:33 cDGnX9b
--w---S--T 1 nagios nagios 0 2007-06-17 19:33 cDGnX9b.ok

(Can someone explain me this curios file modes?)

Here's the patch.

Kind regards,

Hendrik


Florian Gleixner schrieb:
> Hi,
>
> i have one environment for testing things and there i have only acive
> checks against the local host. On a staging environment i have both
> active and passive checks. There i added some more debug output. Heres a
> part of the log:
>
>
> [1182022126.030951:008.0] ** Timed Event ** Type: 5, Run Time: Sat Jun
> 16 21:28:46 2007
> [1182022126.030964:008.0] ** Check Result Reaper
> [1182022126.030976:001.0] reap_check_results() start
> [1182022126.030989:016.0] Starting to reap check results.
> [1182022126.031002:001.0] process_check_result_queue() start
> [1182022128.556302:001.0]
> process_check_result_file(/usr/local/nagios/var/spool/checkresults/c03yc9w)
> start
> [1182022128.556491:001.0] Exit function process_check_result_file
> [1182022129.616721:001.0]
> process_check_result_file(/usr/local/nagios/var/spool/checkresults/c0dyBOx)
> start
> [1182022129.616906:001.0] Exit function process_check_result_file
> [1182022130.134757:001.0]
> process_check_result_file(/usr/local/nagios/var/spool/checkresults/c790SZO)
> start
> [1182022130.134955:001.0] Exit function process_check_result_file
> [1182022130.241383:001.0]
> process_check_result_file(/usr/local/nagios/var/spool/checkresults/c3hDsZp)
> start
> [1182022130.241565:001.0] Exit function process_check_result_file
> [1182022132.096308:001.0]
> process_check_result_file(/usr/local/nagios/var/spool/checkresults/cEQBt7g)
> start
> [1182022132.096475:001.0] Exit function process_check_result_file
> [1182022133.608091:001.0]
> process_check_result_file(/usr/local/nagios/var/spool/checkresults/cM3Yy1C)
> start
> [1182022133.608265:001.0] Exit function process_check_result_file
> [1182022134.142609:001.0]
> process_check_result_file(/usr/local/nagios/var/spool/checkresults/cJm696X)
> start
> [1182022134.142789:001.0] Exit function process_check_result_file
> [1182022134.419045:001.0]
> process_check_result_file(/usr/local/nagios/var/spool/checkresults/cJv8bsK)
> start
> [1182022134.419223:001.0] Exit function process_check_result_file
> [1182022135.395489:001.0]
> process_check_result_file(/usr/local/nagios/var/spool/checkresults/cOSVLKp)
> start
> [1182022135.395674:001.0] Exit function process_check_result_file
> [1182022136.425076:001.0]
> process_check_result_file(/usr/local/nagios/var/spool/checkresults/cOxyBYw)
> start
> [1182022136.425257:001.0] Exit function process_check_result_file
> [1182022137.468602:001.0]
> process_check_result_file(/usr/local/nagios/var/spool/checkresults/cUx4Gyd)
> start
> [1182022137.468776:001.0] Exit function process_check_result_file
> [1182022138.597791:001.0]
> process_check_result_file(/usr/local/nagios/var/spool/checkresults/co5w52A)
> start
> [1182022138.597977:001.0] Exit function process_check_result_file
> [1182022138.612402:001.0]
> process_check_result_file(/usr/local/nagios/var/spool/checkresults/cnG6TC0)
> start
> [1182022138.612575:001.0] Exit function process_check_result_file
> [1182022138.849846:001.0] process_check_result_queue() end
>
>
>
> Heres what i assed to base/utils.c:
>
> diff -u nagios-cvs_patched/base/utils.c nagios-cvs/base/utils.c
> --- nagios-cvs_patched/base/utils.c 2007-06-15 16:44:25.000000000 +0200
> +++ nagios-cvs/base/utils.c 2007-05-30 23:41:08.000000000 +0200
> @@ -40

...[email truncated]...


This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]