To correct the problem edit the file
<EPAGENTHOME>/epagent/epaplugins/solaris/processAvailability.pl change
/usr/bin/ps to
/bin/ps my $binPsCommand = '/bin/ps -e -o comm=';Additionally as suggested in the comments in the file yo may wish replace comm with cmd
my $binPsCommand = '/bin/ps -e -o cmd=';as this will allow greater flexlibility due to the extended output provided.
Using /bin/ps -e -o comm= extracts only the executable name itself from the process listing not any of the command arguments e.g.
....mysqldmastercrondqmgrsujavamingetty....Using /bin/ps -e -o cmd= extracts the argumenst as well e.g.
..../usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --lo/usr/libexec/postfix/mastercrondqmgr -l -t fifo -usu layer7 -c /opt/SecureSpan/JDK/bin/java -Djava.security.egd=file:/dev/./urandom -jar Controller.jar/opt/SecureSpan/JDK/bin/java -Djava.security.egd=file:/dev/./urandom -jar Controller.jar/sbin/mingetty /dev/tty1....This allows matching against arguments not just the base executable itself this is especially useful if you have many java applications but want to check for specific applications
# perl processAvailability.pl -match Controller.jar<metric type="IntCounter" name="RunningProcesses|Controller.jar:Count" value="3" /># perl processAvailability.pl -match java<metric type="IntCounter" name="RunningProcesses|java:Count" value="10" />The plugin is described in the documentation
here