Quantcast
Channel: Zenoss Community: Message List
Viewing all articles
Browse latest Browse all 1097

Re: Disabling zenmodeler

$
0
0

Definately - This file is read when you issue a zenoss stop or start to tell zenoss what daemons you want running.  Would issue a zenoss stop before you actually put the file in or zenoss will only stop the daemons in the file.

 

We actually run modeling via cron by just running zenmodeler in a shell script similar to this:

cron:

0 23 * * * /home/zenoss/bin/enterprise_model_env.sh

 

enterprise_model_env.sh

 

#!/bin/bash

 

#

#  Zenoss Modeler Run

#

#  Creation Date: 20120313

#

 

# location of the shell script that initializes the zenoss environment

ZENOSS_ENV=~zenoss/.bashrc

 

# print the error message passed and exit with a return code of 1 (error)

fail() {

    echo $*

    exit 1

}

 

#

# main script starts here

#

 

# set up the environment

test -f ${ZENOSS_ENV} || fail "Source environment not found"

. ${ZENOSS_ENV}

 

$ZENHOME/bin/zenmodeler >> /home/zenoss/logs/zen-modeler.log


Viewing all articles
Browse latest Browse all 1097

Trending Articles