Page 1 of 1

Typo in statusjson.cgi output

Posted: Tue Feb 24, 2015 4:27 am
by Sven-Göran Bergh
Just want to inform about a small typo in the statusjson.cgi output.

Code: Select all

...
  "data": {
    "selectors": {
    },
    "servicelist": {
      "db01": {
        "CPU usage": {
...
          "max_attemps": 5,
...
Here is the patch:

Code: Select all

--- statusjson.c.orig   2015-02-18 14:14:58.000000000 +0100
+++ statusjson.c        2015-02-24 09:46:53.257050393 +0100
@@ -3482,7 +3482,7 @@
                        &percent_escapes, temp_servicestatus->long_plugin_output);
        json_object_append_string(json_details, "perf_data", &percent_escapes,
                        temp_servicestatus->perf_data);
-       json_object_append_integer(json_details, "max_attemps", 
+       json_object_append_integer(json_details, "max_attempts", 
                        temp_servicestatus->max_attempts);
        json_object_append_integer(json_details, "current_attempt", 
                        temp_servicestatus->current_attempt);
Brgds
/S-G

Re: Typo in statusjson.cgi output

Posted: Tue Feb 24, 2015 10:44 am
by abrist
Thanks! I have created a github issue:
https://github.com/NagiosEnterprises/na ... /issues/27
You can watch the status of the bug there.