We're having some HP-UX machine in our environment which we want to monitor using ZABBIX agent (v1.8.2).
Unfortunately, the agent does not support the proc.num[] item on HP-UX. So our idea was, to use a UserParameter to define proc.num[], e.g. like:
UserParameter=proc.num[*],UNIX95= ps -C $1 -o args= | wc -l
This returns ZBX_NOTSUPPORTED. The following works:
UserParameter=proc.num,ps -ef | wc -l
This wouldn't allow us filtering for specific processes, tho. We'd like to use the same item names so we can use the same templates for Linux and HP-UX machines for certain checks.
Does anyone have recommendations and/or experience on how to perform this?
Unfortunately, the agent does not support the proc.num[] item on HP-UX. So our idea was, to use a UserParameter to define proc.num[], e.g. like:
UserParameter=proc.num[*],UNIX95= ps -C $1 -o args= | wc -l
This returns ZBX_NOTSUPPORTED. The following works:
UserParameter=proc.num,ps -ef | wc -l
This wouldn't allow us filtering for specific processes, tho. We'd like to use the same item names so we can use the same templates for Linux and HP-UX machines for certain checks.
Does anyone have recommendations and/or experience on how to perform this?
Comment