Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

The Check for a Process (Process Check) monitor may not check against the full process path on Solaris systems. This can be caused by the up.time agent using the ps command to match running processes. When you manually run the ps command on Solaris, the result will be truncated if the length of the process path and arguments is beyond a set length.

This issue can be resolved by using the /usr/ucb/ps auxwww command instead of the standard ps command. This option will display the full path arguments. To implement the resolution, update the /opt/uptime-agent/bin/perfparse.sh script within this function:

chk4()
{
PROC=$*
ps -eo "pid args" | egrep -v "perfparse" | egrep -v "proc=" | $AWKBIN -v proc="$PROC" '
{
if( $0 ~ proc )
{
count=count+1
}
}
END{
if(count > 0)
{
print "OK - \\"" proc "\\" found " count " time\\(s\\)"
}
else
{
print "CRIT - \\"" proc "\\" not running "
}
}'
}
  • No labels