Re: [Nagios-devel] 2 calls to unlink in checkresults
Posted: Thu May 14, 2009 6:41 am
Hi,
i reported this bug in january=20
http://archive.netbsd.se/?ml=3Dnagios-d ... =3D9671673
http://archive.netbsd.se/?ml=3Dnagios-d ... =3D9671670
Imo, the condition for the second unlink needs to be reversed.
Cheers,
Gerhard=20
> -----Urspr=FCngliche Nachricht-----
> Von: Mathieu Gagn=E9 [mailto:[email protected]]=20
> Gesendet: Mittwoch, 13. Mai 2009 23:47
> An: Nagios Developers List
> Betreff: [Nagios-devel] 2 calls to unlink in checkresults
>=20
> Hi,
>=20
> I did a strace on the Nagios daemon and found out there's 2=20
> calls to unlink for each check result file in checkresults.
>=20
> For example:
>=20
> stat64("/usr/local/nagios/var/spool/checkresults/cXKYnMY",
> {st_mode=3DS_IFREG|0600, st_size=3D475, ...}) =3D 0=20
> stat64("/usr/local/nagios/var/spool/checkresults/cXKYnMY.ok",
> {st_mode=3DS_IFREG|0600, st_size=3D0, ...}) =3D 0
> time(NULL) =3D 1242249182
> open("/usr/local/nagios/var/spool/checkresults/cXKYnMY",=20
> O_RDONLY) =3D 7 fstat64(7, {st_mode=3DS_IFREG|0600, st_size=3D475,=20
> ...}) =3D 0 mmap2(NULL, 475, PROT_READ, MAP_PRIVATE, 7, 0) =3D =
0xb7ee8000
> munmap(0xb7ee8000, 475) =3D 0
> close(7) =3D 0
> unlink("/usr/local/nagios/var/spool/checkresults/cXKYnMY") =3D 0
> unlink("/usr/local/nagios/var/spool/checkresults/cXKYnMY.ok") =3D 0
>=20
> [......]
>=20
> unlink("/usr/local/nagios/var/spool/checkresults/cXKYnMY") =3D=20
> -1 ENOENT (No such file or directory)
> unlink("/usr/local/nagios/var/spool/checkresults/cXKYnMY.ok")=20
> =3D -1 ENOENT (No such file or directory)
>=20
>=20
> Any idea about the source of this problem? (if it's one)
>=20
> Here is the relevant configuration:
> temp_path=3D/usr/local/nagios/var/tmp
> check_result_path=3D/usr/local/nagios/var/spool/checkresults
>=20
> Both folders are part of 2 different tmpfs filesystems:
> tmpfs /usr/local/nagios/var/tmp tmpfs defaults,size=3D64m 0 0
> tmpfs /usr/local/nagios/var/spool/checkresults tmpfs=20
> defaults,size=3D32m 0 0
>=20
>=20
> --
> Mathieu
>=20
> --------------------------------------------------------------
> ----------------
> The NEW KODAK i700 Series Scanners deliver under ANY=20
> circumstances! Your production scanning environment may not=20
> be a perfect world - but thanks to Kodak, there's a perfect=20
> scanner to get the job done! With the NEW KODAK i700 Series=20
> Scanner you'll get full speed at 300 dpi even with all image=20
> processing features enabled. http://p.sf.net/sfu/kodak-com=20
> _______________________________________________
> Nagios-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/lis ... gios-devel
>=20
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
i reported this bug in january=20
http://archive.netbsd.se/?ml=3Dnagios-d ... =3D9671673
http://archive.netbsd.se/?ml=3Dnagios-d ... =3D9671670
Imo, the condition for the second unlink needs to be reversed.
Cheers,
Gerhard=20
> -----Urspr=FCngliche Nachricht-----
> Von: Mathieu Gagn=E9 [mailto:[email protected]]=20
> Gesendet: Mittwoch, 13. Mai 2009 23:47
> An: Nagios Developers List
> Betreff: [Nagios-devel] 2 calls to unlink in checkresults
>=20
> Hi,
>=20
> I did a strace on the Nagios daemon and found out there's 2=20
> calls to unlink for each check result file in checkresults.
>=20
> For example:
>=20
> stat64("/usr/local/nagios/var/spool/checkresults/cXKYnMY",
> {st_mode=3DS_IFREG|0600, st_size=3D475, ...}) =3D 0=20
> stat64("/usr/local/nagios/var/spool/checkresults/cXKYnMY.ok",
> {st_mode=3DS_IFREG|0600, st_size=3D0, ...}) =3D 0
> time(NULL) =3D 1242249182
> open("/usr/local/nagios/var/spool/checkresults/cXKYnMY",=20
> O_RDONLY) =3D 7 fstat64(7, {st_mode=3DS_IFREG|0600, st_size=3D475,=20
> ...}) =3D 0 mmap2(NULL, 475, PROT_READ, MAP_PRIVATE, 7, 0) =3D =
0xb7ee8000
> munmap(0xb7ee8000, 475) =3D 0
> close(7) =3D 0
> unlink("/usr/local/nagios/var/spool/checkresults/cXKYnMY") =3D 0
> unlink("/usr/local/nagios/var/spool/checkresults/cXKYnMY.ok") =3D 0
>=20
> [......]
>=20
> unlink("/usr/local/nagios/var/spool/checkresults/cXKYnMY") =3D=20
> -1 ENOENT (No such file or directory)
> unlink("/usr/local/nagios/var/spool/checkresults/cXKYnMY.ok")=20
> =3D -1 ENOENT (No such file or directory)
>=20
>=20
> Any idea about the source of this problem? (if it's one)
>=20
> Here is the relevant configuration:
> temp_path=3D/usr/local/nagios/var/tmp
> check_result_path=3D/usr/local/nagios/var/spool/checkresults
>=20
> Both folders are part of 2 different tmpfs filesystems:
> tmpfs /usr/local/nagios/var/tmp tmpfs defaults,size=3D64m 0 0
> tmpfs /usr/local/nagios/var/spool/checkresults tmpfs=20
> defaults,size=3D32m 0 0
>=20
>=20
> --
> Mathieu
>=20
> --------------------------------------------------------------
> ----------------
> The NEW KODAK i700 Series Scanners deliver under ANY=20
> circumstances! Your production scanning environment may not=20
> be a perfect world - but thanks to Kodak, there's a perfect=20
> scanner to get the job done! With the NEW KODAK i700 Series=20
> Scanner you'll get full speed at 300 dpi even with all image=20
> processing features enabled. http://p.sf.net/sfu/kodak-com=20
> _______________________________________________
> Nagios-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/lis ... gios-devel
>=20
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]