Typo in statusjson.cgi output

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Sven-Göran Bergh
Posts: 1
Joined: Mon Jun 09, 2014 12:59 am

Typo in statusjson.cgi output

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Typo in statusjson.cgi output

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked