[Nagiosplug-devel] Temporary file for plugins
Andreas Ericsson
ae at op5.se
Mon Nov 29 16:02:02 CET 2004
Patrick Proy wrote:
> Hi everybody,
>
> I'm planning to update some of my snmp scripts and I really need to store
> information - because of counter style variables of snmp -.
> I don't think a temporary file is a good solution (will there be a /tmp on
> every system ? Can nagios user write in it ?), but I didn't find anything
> else.
>
> Will there be some kind of storage in Nagios 2.0 for the scripts ?
> A temp directory directive ?
>
The --sharedstatedir and --localstatedir directives will be available
for usage with the subst script (as @sharedstatedir@ and
@localstatedir@) and every posix-compliant system should have the
$TMPDIR environment variable set.
> Did someone find a good solution ?
>
> Thanks for your answers,
>
> Patrick Proy
> nagios at proy.org
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Lead Developer
More information about the Devel
mailing list