2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

mnc: add empty handler

This commit is contained in:
Steve Schnepp 2013-02-09 11:29:04 +01:00
parent f3ae51d938
commit b95b1672c6

View File

@ -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) {