soliantconsulting / FileMaker-Server-Zabbix-Templates

Soliant FileMaker Server Zabbix Templates
MIT License
12 stars 9 forks source link

"ps" command on Mac may truncate results #5

Closed jedtech-john closed 3 years ago

jedtech-john commented 3 years ago

The terminal command "ps -u fmserver ..." is being used to track which fmserver processes are alive. On Mac the command only outputs 80 character lines so depending on the path to the FileMaker Server folder the result may be truncated. For example on a machine with "Macintosh HD" as the boot drive and FileMaker Server installed in the standard location the relevant line of the ouput is:

S /Volumes/Macintosh HD/Library/FileMaker Server/Database Server/bin/fmserve

by adding the "-w" flag to the command so "ps -u fmserver -w ..." it increases the output width to 132 columns which in most cases will solve the problem. Using the "-ww" flag will give unlimited width.

wimdecorte commented 3 years ago

Thanks, I'll check if it has any effect on the parsing and make the change.

wimdecorte commented 3 years ago

Incorporated in next release, for macOS template only. Same item for Linux doesn't need it.