Problem with "xymon download filename" in 4.3.5
Hello,
I try to get a configuration for an external with the download option.
The File is located in Servers Download folder.
First download works fine. But when I edit the File and change something I get the old Version on download. Looks like a cached File.
When I restart Xymon services on the Server I'll get the correct file.
Is it a Bug or a Feature or is there any Configswitch to disable the cache?
Greetings
Ralf
applied international informatics GmbH Sitz der Gesellschaft: Berlin; Registergericht: Berlin-Charlottenburg HRB 77891B Geschaeftsfuehrung: Josef Duermoser, Michael Bihn
Wichtiger Hinweis: Diese E-Mail und etwaige Anlagen koennen Betriebs- oder Geschaeftsgeheimnisse oder sonstige vertrauliche Informationen enthalten. Sollten Sie diese E-Mail irrtuemlich erhalten haben, ist Ihnen der Status dieser E-Mail bekannt. Bitte benachrichtigen Sie uns in diesem Fall sofort durch Antwort-Mail und loeschen Sie diese E-Mail nebst etwaigen Anlagen von Ihrem System. Ebenso duerfen Sie diese E-Mail oder ihre Anlagen nicht kopieren oder an Dritte weitergeben. Vielen Dank!
Important Note: This e-mail and any attachment are confidential and may contain trade secrets or otherwise protected from disclosure. If you have received it in error, you are on notice of its status. Please notify us immediately by reply e-mail and then delete this e-mail and any attachment from your system. If you are not the intended recipient please understand that you must not copy this e-mail or any attachment or disclose the contents to any other person. Thank you!
On Mon, 23 Jan 2012 13:23:46 +0000, Zeiß Ralf AII.Pforzheim <Ralf.Zeiss at aiinformatics.com> wrote:
I try to get a configuration for an external with the download option.
The File is located in Servers Download folder.
First download works fine. But when I edit the File and change something I get the old Version on download. Looks like a cached File.
Correct, xymond caches the file contents. It will not automatically notice if you update a file that has been cached.
Use the "flush filecache" command to clear the cache. Like
xymon 127.0.0.1 "flush filecache"
Regards, Henrik
Hello Henrik,
At the first Moment it worked. For testing at the Moment I get the File every Minute. So this Morning I saw a new Problem.
It seems, that "flush filecache" does not release the Filehandle. After a while Xymon gives up because there are too many open Files.
With 'lsof' I see hundreds of Entries for my File..
Now I get the File with "config filename" from etc and it looks good. But I think that is not the Way you planned it ;)
Greetings
Ralf
Henrik wrote:
Use the "flush filecache" command to clear the cache. Like
xymon 127.0.0.1 "flush filecache"
Regards, Henrik
applied international informatics GmbH Sitz der Gesellschaft: Berlin; Registergericht: Berlin-Charlottenburg HRB 77891B Geschaeftsfuehrung: Josef Duermoser, Michael Bihn
Wichtiger Hinweis: Diese E-Mail und etwaige Anlagen koennen Betriebs- oder Geschaeftsgeheimnisse oder sonstige vertrauliche Informationen enthalten. Sollten Sie diese E-Mail irrtuemlich erhalten haben, ist Ihnen der Status dieser E-Mail bekannt. Bitte benachrichtigen Sie uns in diesem Fall sofort durch Antwort-Mail und loeschen Sie diese E-Mail nebst etwaigen Anlagen von Ihrem System. Ebenso duerfen Sie diese E-Mail oder ihre Anlagen nicht kopieren oder an Dritte weitergeben. Vielen Dank!
Important Note: This e-mail and any attachment are confidential and may contain trade secrets or otherwise protected from disclosure. If you have received it in error, you are on notice of its status. Please notify us immediately by reply e-mail and then delete this e-mail and any attachment from your system. If you are not the intended recipient please understand that you must not copy this e-mail or any attachment or disclose the contents to any other person. Thank you!
Hi Ralf,
On 24-01-2012 08:45, Zeiß Ralf AII.Pforzheim wrote:
It seems, that "flush filecache" does not release the Filehandle. After a while Xymon gives up because there are too many open Files.
With 'lsof' I see hundreds of Entries for my File..
Now I get the File with "config filename" from etc and it looks good. But I think that is not the Way you planned it ;)
Certainly not, the "download" command fails to close the filehandle. This patch should fix it.
Regards, Henrik
participants (2)
-
henrik@hswn.dk
-
Ralf.Zeiss@aiinformatics.com