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

command-definition. #2

Open
simonjohansson opened this issue Nov 7, 2011 · 0 comments
Open

command-definition. #2

simonjohansson opened this issue Nov 7, 2011 · 0 comments

Comments

@simonjohansson
Copy link

Would be cool If you could document that you can do something like this;

/usr/lib/nagios/plugins/check_testservice.py

def check(args):
...
print "Ok. this works"

commands.cfg

define command{
command_name greplin_check
command_line $USER1$/check.sh $ARG1$
}

And if you define the command like that you can in your host or wathever do;
define service {
use your-service-type
service_description Do something
check_command greplin_check!testservice
}

A little more convenient than declaring a command per greplin-check.

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

1 participant