Made a template for monitoring ups APC using apcupsd on Linux.
ups.conf
Questions, please.
Template in attachment.
Сам искал давно такой шаблон - сделал сам...
ups.conf
Code:
UserParameter=ups.temperature,/sbin/apcaccess | grep ITEMP | awk '{print $3}' | cut -c-2
UserParameter=ups[*],/sbin/apcaccess | grep $1 | sed "s/[^:]*\://" | sed -e 's/^.\{1\}//'
UserParameter=ups.param[*],/sbin/apcaccess | grep $1 | sed "s/[^:]*\://" | sed -e 's/^.\{1\}//' | awk "{print $ 1}" | head -1
Template in attachment.
Сам искал давно такой шаблон - сделал сам...
Comment