Zenmodeler Configuration

Zenmodeler adalah salah satu service di zenoss yang fungsinya sebagai data collector.
Zenmodeler akan melakukan tugasnya yaitu akan re-model tiap device yang ada selama selang beberapa waktu tertentu.
Jadi jika ada perubahan attribut pada hardware yang sedang anda monitor, zenmodeler akan melakukan tugasnya.
Jika kita melihat konfigurasi default zenmodeler yang ada di /usr/local/zenoss/zenoss/etc, maka anda hanya akan menemukan sebuah file zenmodeler.conf dan zenmodeler.conf.example yang kosong tidak ada isinya.

Nah untuk melihat konfigurasi default zenmodeler secara default anda hanya dapat melihat dengan perintah CLI.

Anda bisa mengetikkan berikut untuk menampilkan daftar help dari zenmodeler :
$ zenmodeler --help

Untuk generate konfigurasi default dari zenmodeler anda bisa mengetikkan perintah :
$ zenmodeler genconf
Hasil dari perintah diatas kurang lebih seperti ini :
#
# Configuration file for zenmodeler
#
# To enable a particular option, uncomment the desired entry.
#
# Parameter Setting
# --------- -------
#
# Host of zenhub daemon. Default is localhost.,
# default: localhost
#hubhost localhost
#
# Port zenhub listens on.Default is 8789.,
# default: 8789
#hubport 8789
#
# Username for zenhub login. Default is
# admin., default: admin
#hubusername admin
#
# Password for zenhub login. Default is
# zenoss., default: zenoss
#hubpassword zenoss
#
# Name of monitor instance to use for
# configuration. Default is localhost.,
# default: localhost
#monitor localhost
#
# Initial time to wait for a ZenHub connection,
# default: 30
#hubtimeout 30
#
# Logging severity threshold, default: 20
#logseverity 20
#
# override default logging path
#logpath None
#
# config file must define all params (see man)
#configfile None
#
# user to become when running default:zenoss,
# default: zenoss
#uid zenoss
#
# Cycle continuously on cycleInterval
# from zope, default: False
#cycle False
#
# Become a unix daemon, default: False
#daemon False
#
# output log info in html table format,
# default: False
#weblog False
#
# Run under a supervisor which will restart
# it, default: False
#watchdog False
#
# The path to the watchdog reporting socket
#watchdogPath None
#
# wait seconds for initial heartbeat,
# default: 36000
#starttimeout 36000
#
# don't fork threads for processing, default:
# False
#debug False
#
# do not run zenwinmodeler to execute
# WMI plugins, default: False
#nowmi False
#
# number of devices to collect from in
# parallel, default: 1
#parallel 1
#
# run collection every x minutes, default: 720
#cycletime 720
#
# Comma separated list of collection maps
# to ignore
#ignorePlugins
#
# Comma separated list of collection maps
# to use
#collectPlugins
#
# start path for collection ie /NetworkDevices
#path None
#
# fully qualified device name ie
# www.confmon.com
#device None
#
# do not collect from devices whose collect
# date is within this many minutes, default: 0
#collage 0
#
# number of times to try to write if a
# read conflict is found, default: 2
#writetries 2
#
# force collection of config data (deprecated),
# default: True
#force True
#
# time to wait for connection failures
# when port scanning, default: 5
#portscantimeout 5
#
# start daemon now, do not sleep before
# starting, default: False
#now False
#
# Login username, default: zenoss
#username zenoss
#
# Login password
#password
#
# number of times to try login, default: 1
#loginTries 1
#
# timeout login expect statments, default: 10
#loginTimeout 10
#
# timeout when issuing a command, default: 10
#commandTimeout 10
#
# Path to use when looking for keys, default:
# ~/.ssh/id_dsa
#keyPath ~/.ssh/id_dsa
#
# Path to use when looking for commands,
# default: []
#searchPath []
#
# how to check for command, default: test -f %s
#existenceTest test -f %s
#
# timeout when discovering prompt, default: 10
#promptTimeout 10
#
# regex that will find the login prompt,
# default: ogin:.$
#loginRegex ogin:.$
#
# regex that will find the password prompt,
# default: assword:
#passwordRegex assword:
#
# enter enable mode on a cisco device,
# default: False
#enable False
#
# enter send terminal length 0 on a cisco
# device, default: False
#termlen False
#

Nah untuk merubah settingan dari zenmodeler yang default anda bisa copy dan paste konfigurasi default di atas ke /usr/local/zenoss/zenoss/etc/zenmodeler.conf

Dalam tulisan ini, saya menggunakan zenoss versi 2.2, dan harusnya tidak ada masalah dijalankan di versi zenoss yang lain.

Ok, selamat mencoba :D