Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The following error typically occurs when an agent on a Solaris or Linux system is not returning data or can not be added to up.time:

...

uptime agent daemon.error: Permission denied

...

 

This problem may also be detected by the presence of the following log message in the /var/adm/messages or /var/log/messages files:

...

 

...

Oct 30 10:48:07 hostname inetd[6402]: [ID 388736 daemon.error] execv /opt/uptime-agent/bin/uptmagnt: Permission denied

...

 

...

This error is generally caused by inetd attempting to run the uptmagnt binary as one user when the binary is owned by another user.  In the example above, we can find that the /opt/uptime-agent/bin/uptmagnt file is owned by nobody:

...

Code Block

...

language

...

text
# ls -l /opt/uptime-agent/bin/uptmagnt -rwxr--r-- 1 nobody nobody 62736 Oct 2 16:08 uptmagnt

...

 

...

However, the inted.conf file shows that the uptmagnt is to be run as the uptime user:

...

Code Block

...

language

...

text
# grep uptmagnt /etc/inetd.conf

...


# *** Installed by the up.time pkgadd command (uptmagnt) uptmagnt stream tcp nowait uptime /opt/uptime-agent/bin/uptmagnt

...

 

...

By changing the inetd.conf line to run the uptmagnt as nobody instead of uptime and then restarting inetd, the agent should start responding normally.