[Nagiosplug-help] check_snmp --rate option giving me error in Nagios
Jim Avery
jim at jimavery.me.uk
Mon Jul 18 18:10:19 CEST 2011
On 23 May 2011 22:31, <nchoate at jwenergy.com> wrote:
> 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!
More information about the Help
mailing list