On Mar 13, 2008, at 8:20 AM, Tom wrote:
Is there a job or something, where I can set the times for autodiscovery of my networks?

I thougt about a cronjob with an entry like this:

* 1 * * * /usr/local/zenoss/bin/zendisc start --net 192.168.224.0

If I start the above script manually in the command line, it works and my new devices are found. But if I add this in a cronjob it doesnt work. The job itself is started but there is no process of zendisc running...

So I decided to delete the line in my cronjob - but this morning, at 8:57 am a discover job started and found new devices.

The question now is: How is this scheduled? Is there an option to change the time for this autodiscover job?
How have you solved the autodiscover problem?

Cron is definitely the way to do this. One thing to be careful with in cron is that your environment won't be automatically setup in the way it needs to be for running zen* commands. Try the following instead to run at 1am every day.

0 1 * * * bash -lc '/usr/local/zenoss/bin/zendisc run --net 192.168.224.0'

This creates a bash "login shell" which will cause the .bashrc file to be executed to setup the environment. You should be sure to put this in the zenoss user's crontab, not root's.

I'm as surprised as you that the discovery would have been run after you deleted the cronjob. There is no other scheduling mechanism for automatic discovery.
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to