Thought I'd share a finding using the UserParameter and using the clstat command for monitoring HACMP in an AIX environment. When you enter the command clstat without any parameters, it will return the status of the HACMP cluster, BUT, will never end, and continue to update. If you specify the "-o" parameter (clstat -o) it will run only once, giving you the output, and then returning to the command prompt.I was trying to use the clstat command both, in a script, and also raw in a UserParameter of the zabbix configuration. What I found was interesting, and I share this for those of you who may need to monitor HACMP for AIX.
The zabbix_agentd will timeout using this command, regardless if it is in a script, or used raw. To correct the timeout problem, you MUST specify TERM="" . I'm not entirely sure why the agent hangs, obviously it has something to do with the terminal setting in the environment.
Comment