check_snmp - Cannot create temporary filename

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

check_snmp - Cannot create temporary filename

Post by Box293 »

Recently I upgraded to nagios-plugins 1.4.15 on my test box. I wanted to do this so I could try out the new options for check_snmp --rate and --rate-multiplier.

When I execute the command from the CLI (as root) it seems to work as expected:

Code: Select all

[root@VAULT23 libexec]# ./check_snmp -H 192.168.105.2 -o .1.3.6.1.4.1.8741.1.3.1.3.0 -C public -P 2c -l "" -u % --rate --rate-multiplier=60
SNMP RATE OK -  120082962.6 % | =120082962.6
When I add a service that executes the same command I get an Unknown status with Cannot create temporary filename.

If I create an identical check without the --rate --rate-multiplier=60 arguments the command works fine.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: check_snmp - Cannot create temporary filename

Post by mguthrie »

It's probably a permissions issue. What happens if you run:

Code: Select all

chmod u+s check_snmp
This will make it so that this plugin always runs as root
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: check_snmp - Cannot create temporary filename

Post by Box293 »

Bingo, that fixed the problem :D

Much appreciated
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: check_snmp - Cannot create temporary filename

Post by mguthrie »

You bet!
Locked