Hello everybody, please help if you know.
I would like to monitor AIX errorlog, which is unfortunately binary ring buffer. I can do it with AIX native tool errpt and some scripting.
I defined custom item 'errorlog' of type log, on client side connected to script
(UserParameter=errlog,/usr/local/bin/zabbix_errpt)
But custom scripts are supposed to always return some value
(# Note that shell command must not return empty string or EOL only.)
So what should I return from script, when there are no new records in errorlog?
When I return nothing, I got in Zabbix log:
Active check [errlog] is not supported. Disabled.
When I return anything else (for example digit 0), i got that recorded for every monitoring interval.
Thank you,
Martin
I would like to monitor AIX errorlog, which is unfortunately binary ring buffer. I can do it with AIX native tool errpt and some scripting.
I defined custom item 'errorlog' of type log, on client side connected to script
(UserParameter=errlog,/usr/local/bin/zabbix_errpt)
But custom scripts are supposed to always return some value
(# Note that shell command must not return empty string or EOL only.)
So what should I return from script, when there are no new records in errorlog?
When I return nothing, I got in Zabbix log:
Active check [errlog] is not supported. Disabled.
When I return anything else (for example digit 0), i got that recorded for every monitoring interval.
Thank you,
Martin
Comment