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
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
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
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
4 matches
Mail list logo