Page 1 of 1

unable to write temporary data in :/tmp/

Posted: Tue Dec 04, 2012 9:09 am
by xpertech
When using nginx script to monitor web site, there were unknown problem?

Re: unable to write temporary data in :/tmp/

Posted: Tue Dec 04, 2012 10:23 am
by scottwilkerson
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...

Re: unable to write temporary data in :/tmp/

Posted: Tue Dec 04, 2012 10:54 am
by xpertech
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...
In nagios core config manager command:
$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

Re: unable to write temporary data in :/tmp/

Posted: Tue Dec 04, 2012 11:05 am
by scottwilkerson
Ok, looked at the plugin...

Can you post the following

Code: Select all

ls -ld /tmp
ls -l /tmp/192.*

Re: unable to write temporary data in :/tmp/

Posted: Tue Dec 04, 2012 8:30 pm
by xpertech
scottwilkerson wrote:Ok, looked at the plugin...

Can you post the following

Code: Select all

ls -ld /tmp
ls -l /tmp/192.*

Re: unable to write temporary data in :/tmp/

Posted: Wed Dec 05, 2012 9:10 am
by scottwilkerson
Ok, it looks like when you ran the check as root it created the files with just root permissions.

Lets run

Code: Select all

chown nagios.nagios /tmp/192.*
Then it should work when nagios runs it.