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

Example for plugins.commands? #105

Open
penguin02007 opened this issue Feb 1, 2021 · 1 comment
Open

Example for plugins.commands? #105

penguin02007 opened this issue Feb 1, 2021 · 1 comment

Comments

@penguin02007
Copy link

Not sure if this is the right place to ask question - Is there an example on plugins.commands how to connect to a device and run ping commands? Basically I am trying to reproduce this feature:

https://oss.oetiker.ch/smokeping/probe/OpenSSHJunOSPing.en.html

@vegu
Copy link
Contributor

vegu commented Apr 15, 2021

Hi

Sorry for the delayed response, somehow this was missed. There currently is no example for direct use of the commands plugin. But the fping plugin extends it and can perhaps provide some pointers.

  • the command property takes a single command that will executed for each target host in the config, at the specified interval
  • the current host is available as a formatting variable called {host}
  • since it only supports a single command to do anything sophisticated you will either need to use a shell script that the command can call or do a custom plugin that does what you need.

If you do end up giving a custom plugin a go and run into problems please don't hesitate to ask for help.

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

2 participants