Hi all,<br><br>I'd like to add my 10 cents to the plugins developer guidelines (at section "<h3 class="SECTION"><a name="AEN254">3.3. Don't make temp files unless absolutely required</a></h3>", <a href="http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN254">http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN254</a>), regarding the use of temporary files.<br>

<br>Of course I agree with this piece of advice, but considering there's no other solution than creating a temp file (carefully, and cleaning everything before leaving !), there's one more rule developers have to keep in mind : make temp files name unique.<br>

Indeed, we all tend to name temp files like "tmp" or "temp", or whatever. But in case of concurrent executions (the same plugin is run on the same poller for 2 differents hosts, OR 2 distinct plugins running simultaneously create temp files), you'll end up with both plugin trying to read / write / open / delete the same file, and you may encounter some "file not found" errors, whereas while running plugins manually, everything works just fine.<br>

<br>So my advice would be to name temp files like :<br><br>tmp_[plugin_name]_[timestamp]<br><br>or any combination so that temp files never collide.<br><br>Hope this helps ;-)<br><br>Cheers<br><br>Matthieu<br>