unable to write temporary data in :/tmp/
unable to write temporary data in :/tmp/
When using nginx script to monitor web site, there were unknown problem?
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: unable to write temporary data in :/tmp/
It looks like there could be an extra : in there
Can you post the full command this check is using? Also it would be helpful to know which plugin you downloaded...
Can you post the full command this check is using? Also it would be helpful to know which plugin you downloaded...
Re: unable to write temporary data in :/tmp/
In nagios core config manager command:scottwilkerson wrote:It looks like there could be an extra : in there
Can you post the full command this check is using? Also it would be helpful to know which plugin you downloaded...
$USER1$/check_nginx_status.pl -H $HOSTADDRESS$ -p 8081
----> Shown the unknown message
In centos command:
./check_nginx_status.pl -H 192.168.1.50 -p 8081
----> It Can get the correct information
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: unable to write temporary data in :/tmp/
scottwilkerson wrote:Ok, looked at the plugin...
Can you post the followingCode: Select all
ls -ld /tmp ls -l /tmp/192.*
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: unable to write temporary data in :/tmp/
Ok, it looks like when you ran the check as root it created the files with just root permissions.
Lets run
Then it should work when nagios runs it.
Lets run
Code: Select all
chown nagios.nagios /tmp/192.*