On Jan 15, 2009, at 8:30 AM, James Pulver wrote: > James Pulver wrote, On 12/22/2008 10:41 AM: >> Hmmm, so far I'm getting NAN - I'm wondering, does this script >> handle 0 >> licenses checked out? Holidays are slow, so few licenses are >> checked out >> (often 0). Alternatively, I've messed up my cron - how does this >> look: >> 0,5,10,15,20,25,30,35,40,45,50,55 * * * * zenoss python >> /opt/zenoss/libexec/licenseEventCheck.py >> >> I'm also assuming the search string will find "MATLAB" from the line >> WHERE summary LIKE '%%MATLAB%%'" >> >> or do I need the double quotes in ther also?
I think gentux31 is on the right track with this one. There's likely just an environment issue that is preventing the licenseEventCheck.py from running properly out of cron. First of all, make sure that this is the zenoss user's crontab. Secondly, you could call it with bash - lc to make sure that the zenoss user's login scripts get executed before running it. */5 * * * * bash -c "/opt/zenoss/libexec/licenseEventCheck.py" You should also make sure that licenseEventCheck.py has been made executable with "chmod 755 licenseEventCheck.py" for this to work. _______________________________________________ zenoss-users mailing list [email protected] http://lists.zenoss.org/mailman/listinfo/zenoss-users
