Discussion:
check_snmp --rate option giving me error in Nagios
n***@public.gmane.org
2011-05-23 21:31:26 UTC
Permalink
When I use the -rate option with check_snmp in Nagios I get a "Cannot create temporary filename".

When I use it from command line as root, I get the desired value. I figured the nagios user is not privileged enough to create the file, but I cannot find the name of the temp file that gets created. Is there a way to force it to a certain folder when creating variables?

Nathan Choate




The information in this email may be confidential and/or privileged. This email
is intended to be reviewed only by the individual to whom it is addressed. If
you are not the intended recipient or an authorized representative of the
intended recipient, please be aware that any review, dissemination or copying of
the information contained within this email and its attachments, if any, is
prohibited. If you have received this email in error, please immediately notify
the sender by return email and delete this email from your system. Thank you.
Jim Avery
2011-07-18 16:10:19 UTC
Permalink
When I use the –rate option with check_snmp in Nagios I get a “Cannot create
temporary filename”.
When I use it from command line as root, I get the desired value.  I figured
the nagios user is not privileged enough to create the file, but I cannot
find the name of the temp file that gets created.  Is there a way to force
it to a certain folder when creating variables?
Apologies for the late reply, but I've only just recently started
using the --rate feature myself (and it's an excellently useful
feature by the way so full kudos to Ton Voon and anyone else involved
in making that happen).

The check_snmp plugin will (on my system anyway), store the temporary
files under /usr/local/nagios/var/check_snmp/ . If that directory
doesn't exist, it will create it - on my system it did so with
drwx------ permissions.

It's usually best to test plugins logged in as 'nagios' to avoid this
sort of problem, but to be honest I don't always bother and end up
hunting down the temporary files too!

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric
Ries, the creator of the Lean Startup Methodology on "Lean Startup
Secrets Revealed." This video shows you how to validate your ideas,
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help-5NWGOfrQmneRv+***@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
::: Please include plugins version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
Loading...