unable to write temporary data in :/tmp/

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

unable to write temporary data in :/tmp/

Post by xpertech »

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/

Post 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...
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

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

Post 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
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/

Post by scottwilkerson »

Ok, looked at the plugin...

Can you post the following

Code: Select all

ls -ld /tmp
ls -l /tmp/192.*
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

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

Post by xpertech »

scottwilkerson wrote:Ok, looked at the plugin...

Can you post the following

Code: 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/

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked