mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
mnc: add empty handler
This commit is contained in:
parent
f3ae51d938
commit
b95b1672c6
1 changed files with 1 additions and 0 deletions
|
@ -64,6 +64,7 @@ int main(int argc, char *argv[]) {
|
||||||
arg = strtok(line, " \t\n");
|
arg = strtok(line, " \t\n");
|
||||||
|
|
||||||
if (!cmd || strlen(cmd) == 0) {
|
if (!cmd || strlen(cmd) == 0) {
|
||||||
|
printf("# empty cmd\n");
|
||||||
} else if (strcmp(cmd, "version") == 0) {
|
} else if (strcmp(cmd, "version") == 0) {
|
||||||
printf("munin c node version: %s\n", VERSION);
|
printf("munin c node version: %s\n", VERSION);
|
||||||
} else if (strcmp(cmd, "nodes") == 0) {
|
} else if (strcmp(cmd, "nodes") == 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue