Xymon Mailing List Archive search

What are these old *.tmp.<pid> files?

4 messages in this thread

list David Mills · Wed, 9 Jan 2013 22:48:19 +0000 ·
All -

Hi!

In poking around in my client tmp directory, I see lots of files like this:

-rw-r--r--   1 hobbit   monitor      10K Jun  6  2012 /home/hobbit/tmp/dwbu005.prtdiag.tmp.5719
-rw-r--r--   1 hobbit   monitor     5.3K Jun  6  2012 /home/hobbit/tmp/dwbu002.prtdiag.tmp.24625
-rw-r--r--   1 hobbit   monitor     5.3K Jun  6  2012 /home/hobbit/tmp/dwbu002.prtdiag.tmp.4496
-rw-r--r--   1 hobbit   monitor      10K Jun  6  2012 /home/hobbit/tmp/dwbu005.prtdiag.tmp.27931
-rw-r--r--   1 hobbit   monitor     5.3K Jun  4  2012 /home/hobbit/tmp/dwbu007.prtdiag.tmp.4316
-rw-r--r--   1 hobbit   monitor     5.3K Jun  1  2012 /home/hobbit/tmp/dwbu007.prtdiag.tmp.21618
-rw-r--r--   1 hobbit   monitor      10K May 31  2012 /home/hobbit/tmp/dwbu005.prtdiag.tmp.9044

I also see a sprinkling of files like this:

-rw-r--r--   1 hobbit   monitor      951 Nov 13 15:47 /home/hobbit/tmp/dwbu001.iostat.vmstat.log.13964
-rw-r--r--   1 hobbit   monitor       34 Nov 13 15:47 /home/hobbit/tmp/dwbu002.sar.tmp
-rw-r--r--   1 hobbit   monitor       34 Nov 13 15:47 /home/hobbit/tmp/dwbu001.sar.tmp
-rw-r--r--   1 hobbit   monitor        0 Nov 13 15:47 /home/hobbit/tmp/dwbu001.iostat.vmstat.error.13964
-rw-r--r--   1 hobbit   monitor        0 Nov 13 15:47 /home/hobbit/tmp/dwbu001.iostat
-rw-r--r--   1 hobbit   monitor       13 Nov 13 15:47 /home/hobbit/tmp/dwbu001.tm.tmp.dwbu001
-rw-r--r--   1 hobbit   monitor       13 Nov 13 15:46 /home/hobbit/tmp/dwbu002.tm.tmp.dwbu002

Obviously these are temporary client data files, but the question is why didn't they get removed? What mechanism does Xymon have for cleaning up these kinds of files?

Thanks!

david


~~~~~~~~~~~~~~~~~~~
David Mills
Systems Administrator
Northrop Grumman
XXX-XXX-XXXX
user-eb64c112f0e9@xymon.invalid
list Ryan Novosielski · Wed, 9 Jan 2013 18:27:40 -0500 ·
Pretty sure all of those came from external tests you've added. They are supposed to handle their own mess. I have some of the same so I suspect a bug in the external script.
quoted from David Mills


From: Mills, David (IS) [mailto:user-eb64c112f0e9@xymon.invalid]
Sent: Wednesday, January 09, 2013 05:48 PM
To: xymon at xymon.com <xymon at xymon.com>
Subject: [Xymon] What are these old *.tmp.<pid> files?

All –

Hi!

In poking around in my client tmp directory, I see lots of files like this:

-rw-r--r--   1 hobbit   monitor      10K Jun  6  2012 /home/hobbit/tmp/dwbu005.prtdiag.tmp.5719
-rw-r--r--   1 hobbit   monitor     5.3K Jun  6  2012 /home/hobbit/tmp/dwbu002.prtdiag.tmp.24625
-rw-r--r--   1 hobbit   monitor     5.3K Jun  6  2012 /home/hobbit/tmp/dwbu002.prtdiag.tmp.4496
-rw-r--r--   1 hobbit   monitor      10K Jun  6  2012 /home/hobbit/tmp/dwbu005.prtdiag.tmp.27931
-rw-r--r--   1 hobbit   monitor     5.3K Jun  4  2012 /home/hobbit/tmp/dwbu007.prtdiag.tmp.4316
-rw-r--r--   1 hobbit   monitor     5.3K Jun  1  2012 /home/hobbit/tmp/dwbu007.prtdiag.tmp.21618
-rw-r--r--   1 hobbit   monitor      10K May 31  2012 /home/hobbit/tmp/dwbu005.prtdiag.tmp.9044

I also see a sprinkling of files like this:

-rw-r--r--   1 hobbit   monitor      951 Nov 13 15:47 /home/hobbit/tmp/dwbu001.iostat.vmstat.log.13964
-rw-r--r--   1 hobbit   monitor       34 Nov 13 15:47 /home/hobbit/tmp/dwbu002.sar.tmp
-rw-r--r--   1 hobbit   monitor       34 Nov 13 15:47 /home/hobbit/tmp/dwbu001.sar.tmp
-rw-r--r--   1 hobbit   monitor        0 Nov 13 15:47 /home/hobbit/tmp/dwbu001.iostat.vmstat.error.13964
-rw-r--r--   1 hobbit   monitor        0 Nov 13 15:47 /home/hobbit/tmp/dwbu001.iostat
-rw-r--r--   1 hobbit   monitor       13 Nov 13 15:47 /home/hobbit/tmp/dwbu001.tm.tmp.dwbu001
-rw-r--r--   1 hobbit   monitor       13 Nov 13 15:46 /home/hobbit/tmp/dwbu002.tm.tmp.dwbu002

Obviously these are temporary client data files, but the question is why didn’t they get removed? What mechanism does Xymon have for cleaning up these kinds of files?

Thanks!

david

~~~~~~~~~~~~~~~~~~~
David Mills
Systems Administrator
Northrop Grumman
XXX-XXX-XXXX
user-eb64c112f0e9@xymon.invalid
list Sean Clark · Fri, 11 Jan 2013 12:10:08 -0500 ·
Those look to be outside of the core "xymon" distribution – they are ext scripts that would manage the deletion of those files
I would check the ext dir for bb-prtdiag.sh and sar.sh  which look like the likely culprits, and make sure they are removing their temp files
quoted from Ryan Novosielski


From: <Mills>, "David (IS)" <user-eb64c112f0e9@xymon.invalid<mailto:user-eb64c112f0e9@xymon.invalid>>
Date: Wednesday, January 9, 2013 5:48 PM
To: "xymon at xymon.com<mailto:xymon at xymon.com>" <xymon at xymon.com<mailto:xymon at xymon.com>>
Subject: [Xymon] What are these old *.tmp.<pid> files?

All –

Hi!

In poking around in my client tmp directory, I see lots of files like this:

-rw-r--r--   1 hobbit   monitor      10K Jun  6  2012 /home/hobbit/tmp/dwbu005.prtdiag.tmp.5719
-rw-r--r--   1 hobbit   monitor     5.3K Jun  6  2012 /home/hobbit/tmp/dwbu002.prtdiag.tmp.24625
-rw-r--r--   1 hobbit   monitor     5.3K Jun  6  2012 /home/hobbit/tmp/dwbu002.prtdiag.tmp.4496
-rw-r--r--   1 hobbit   monitor      10K Jun  6  2012 /home/hobbit/tmp/dwbu005.prtdiag.tmp.27931
-rw-r--r--   1 hobbit   monitor     5.3K Jun  4  2012 /home/hobbit/tmp/dwbu007.prtdiag.tmp.4316
-rw-r--r--   1 hobbit   monitor     5.3K Jun  1  2012 /home/hobbit/tmp/dwbu007.prtdiag.tmp.21618
-rw-r--r--   1 hobbit   monitor      10K May 31  2012 /home/hobbit/tmp/dwbu005.prtdiag.tmp.9044

I also see a sprinkling of files like this:

-rw-r--r--   1 hobbit   monitor      951 Nov 13 15:47 /home/hobbit/tmp/dwbu001.iostat.vmstat.log.13964
-rw-r--r--   1 hobbit   monitor       34 Nov 13 15:47 /home/hobbit/tmp/dwbu002.sar.tmp
-rw-r--r--   1 hobbit   monitor       34 Nov 13 15:47 /home/hobbit/tmp/dwbu001.sar.tmp
-rw-r--r--   1 hobbit   monitor        0 Nov 13 15:47 /home/hobbit/tmp/dwbu001.iostat.vmstat.error.13964
-rw-r--r--   1 hobbit   monitor        0 Nov 13 15:47 /home/hobbit/tmp/dwbu001.iostat
-rw-r--r--   1 hobbit   monitor       13 Nov 13 15:47 /home/hobbit/tmp/dwbu001.tm.tmp.dwbu001
-rw-r--r--   1 hobbit   monitor       13 Nov 13 15:46 /home/hobbit/tmp/dwbu002.tm.tmp.dwbu002

Obviously these are temporary client data files, but the question is why didn’t they get removed? What mechanism does Xymon have for cleaning up these kinds of files?

Thanks!

david

~~~~~~~~~~~~~~~~~~~
David Mills
Systems Administrator
Northrop Grumman
XXX-XXX-XXXX

user-eb64c112f0e9@xymon.invalid<mailto:user-eb64c112f0e9@xymon.invalid>


This E-mail and any of its attachments may contain Time Warner Cable proprietary information, which is privileged, confidential, or subject to copyright belonging to Time Warner Cable. This E-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this E-mail, you are hereby notified that any dissemination, distribution, copying, or action taken in relation to the contents of and attachments to this E-mail is strictly prohibited and may be unlawful. If you have received this E-mail in error, please notify the sender immediately and permanently delete the original and any copy of this E-mail and any printout.
list David Mills · Fri, 11 Jan 2013 17:28:37 +0000 ·
Thanks, Sean / Ryan ...

I appreciate the pointer!

david
quoted from Sean Clark

From: Clark, Sean [mailto:user-2db5fbcae9a7@xymon.invalid]
Sent: Friday, January 11, 2013 11:10 AM
To: Mills, David (IS); xymon at xymon.com
Subject: EXT :Re: [Xymon] What are these old *.tmp.<pid> files?

Those look to be outside of the core "xymon" distribution - they are ext scripts that would manage the deletion of those files
I would check the ext dir for bb-prtdiag.sh and sar.sh  which look like the likely culprits, and make sure they are removing their temp files


From: <Mills>, "David (IS)" <user-eb64c112f0e9@xymon.invalid<mailto:user-eb64c112f0e9@xymon.invalid>>
Date: Wednesday, January 9, 2013 5:48 PM
To: "xymon at xymon.com<mailto:xymon at xymon.com>" <xymon at xymon.com<mailto:xymon at xymon.com>>
Subject: [Xymon] What are these old *.tmp.<pid> files?

All -

Hi!

In poking around in my client tmp directory, I see lots of files like this:

-rw-r--r--   1 hobbit   monitor      10K Jun  6  2012 /home/hobbit/tmp/dwbu005.prtdiag.tmp.5719
-rw-r--r--   1 hobbit   monitor     5.3K Jun  6  2012 /home/hobbit/tmp/dwbu002.prtdiag.tmp.24625
-rw-r--r--   1 hobbit   monitor     5.3K Jun  6  2012 /home/hobbit/tmp/dwbu002.prtdiag.tmp.4496
-rw-r--r--   1 hobbit   monitor      10K Jun  6  2012 /home/hobbit/tmp/dwbu005.prtdiag.tmp.27931
-rw-r--r--   1 hobbit   monitor     5.3K Jun  4  2012 /home/hobbit/tmp/dwbu007.prtdiag.tmp.4316
-rw-r--r--   1 hobbit   monitor     5.3K Jun  1  2012 /home/hobbit/tmp/dwbu007.prtdiag.tmp.21618
-rw-r--r--   1 hobbit   monitor      10K May 31  2012 /home/hobbit/tmp/dwbu005.prtdiag.tmp.9044

I also see a sprinkling of files like this:

-rw-r--r--   1 hobbit   monitor      951 Nov 13 15:47 /home/hobbit/tmp/dwbu001.iostat.vmstat.log.13964
-rw-r--r--   1 hobbit   monitor       34 Nov 13 15:47 /home/hobbit/tmp/dwbu002.sar.tmp
-rw-r--r--   1 hobbit   monitor       34 Nov 13 15:47 /home/hobbit/tmp/dwbu001.sar.tmp
-rw-r--r--   1 hobbit   monitor        0 Nov 13 15:47 /home/hobbit/tmp/dwbu001.iostat.vmstat.error.13964
-rw-r--r--   1 hobbit   monitor        0 Nov 13 15:47 /home/hobbit/tmp/dwbu001.iostat
-rw-r--r--   1 hobbit   monitor       13 Nov 13 15:47 /home/hobbit/tmp/dwbu001.tm.tmp.dwbu001
-rw-r--r--   1 hobbit   monitor       13 Nov 13 15:46 /home/hobbit/tmp/dwbu002.tm.tmp.dwbu002

Obviously these are temporary client data files, but the question is why didn't they get removed? What mechanism does Xymon have for cleaning up these kinds of files?

Thanks!

david

~~~~~~~~~~~~~~~~~~~
David Mills
Systems Administrator
Northrop Grumman
XXX-XXX-XXXX
user-eb64c112f0e9@xymon.invalid<mailto:user-eb64c112f0e9@xymon.invalid>


This E-mail and any of its attachments may contain Time Warner Cable proprietary information, which is privileged, confidential, or subject to copyright belonging to Time Warner Cable. This E-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this E-mail, you are hereby notified that any dissemination, distribution, copying, or action taken in relation to the contents of and attachments to this E-mail is strictly prohibited and may be unlawful. If you have received this E-mail in error, please notify the sender immediately and permanently delete the original and any copy of this E-mail and any printout.