mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-22 14:46:57 -04:00
Coredump if no variable set (reported by Marc C. Poulin)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@327 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
33139519aa
commit
deb6a8e591
1 changed files with 4 additions and 1 deletions
|
|
@ -505,13 +505,16 @@ int process_arguments(int argc, char **argv){
|
|||
|
||||
}
|
||||
|
||||
if (vars_to_check==CHECK_NONE)
|
||||
return ERROR;
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
||||
void print_usage(void)
|
||||
{
|
||||
printf("Usage: %s -H host [-p port] [-v variable] [-w warning] [-c critical] [-l params] [-d SHOWALL] [-t timeout]\n",progname);
|
||||
printf("Usage: %s -H host -v variable [-p port] [-w warning] [-c critical] [-l params] [-d SHOWALL] [-t timeout]\n",progname);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue