Re: [Ganglia-general] custom metric's value doesn't update -- custom python metric modules on 3.1.1

2008-12-12 Thread David Birdsong
I'm having the same exact problem. I can run the if __name__ == '__main__' test and have the script define and execute the callbacks via the descriptor list, but when running from gmond, all that gets called is the metric_init() I put an open in the init and set the open filename to global as a

Re: [Ganglia-general] custom metric's value doesn't update --custom python metric modules on 3.1.1

2008-12-12 Thread Brad Nicholes
I haven't tried to actually run your module yet, but can this be a permissions problem. What user are you running gmond as? Does that user have permissions to run rndc and access named.stats? All modules run by gmond will be run as the same user as gmond. Therefore you have to make sure

[Ganglia-general] Could metric_handler() function return 'None' as the return value for a metric?

2008-12-12 Thread Guolin Cheng
Hi, I'm programming python metric module now and encounter a problem: under some exception situations it is better to letter gmetad at the server side to save a 'NaN' value instead of zero(0). So how can I let my client side gmond, more specifically, the metric_handler function, to return a

Re: [Ganglia-general] custom metric's value doesn't update --custom python metric modules on 3.1.1

2008-12-12 Thread David Birdsong
I really thought this was going to solve it. I - created user:group gmond:gmond. - granted gmond sudo NOPASSWD on /usr/sbin/rndc - edited the Popen to prepend a 'sudo' to the '/usr/sbin/rndc' call To test, I su - gmond and ran the script as a unit test successfully. Just to prove that these