Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugin command examples #81

Open
underdog opened this issue Apr 25, 2020 · 6 comments
Open

plugin command examples #81

underdog opened this issue Apr 25, 2020 · 6 comments

Comments

@underdog
Copy link

Is it possible to have command examples added to the config examples (config.yml)?

@grizz
Copy link
Member

grizz commented Apr 25, 2020

@underdog what do you mean by plugin command examples? Are you trying to make a new plugin?

@underdog
Copy link
Author

underdog commented Apr 25, 2020

the use of the vaping command plugin.
like the example of at the bottom of most of the presentations "* ssh | display json is up to 10x
faster than SNMP on Juniper QFXs"
how was that command configured in the config.yml
what is the groups, hosts/host, plugin, data, etc..in the config.yml

thanks

@underdog
Copy link
Author

I think I found one issue in command.py
it never inits self.hosts so it will error out when it tries to extend hosts list

self.hosts = [] is missing

def init(self):
    if 'command' not in self.config:
        raise ValueError('command is required')

    for name, group_config in list(self.groups.items()):
        self.hosts.extend(group_config.get("hosts",[]))

    self.command = self.config['command']

@underdog
Copy link
Author

Any update on the issue in command.py?

@grizz
Copy link
Member

grizz commented May 10, 2020

Oh, sorry, I misread that.

The ssh | display json was never released, one of those things I just ran out of time on. :)

Could you give a stack trace on the self.hosts issue please?

@reisept
Copy link

reisept commented Oct 8, 2020

I would be great if there are example configurations for all the plugins. For example I'm trying to use whisper to have historical data and I don't know how to configure it in the plugins section.
Or how, after configured, to acess the historical data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants