Search found 3 matches

by xitkov
Fri Jan 09, 2015 3:20 am
Forum: Open Source Nagios Projects
Topic: Problem with JSON server output in nagios plugin.
Replies: 5
Views: 3403

Re: Problem with JSON server output in nagios plugin.

Can you be a little more specific? Like the way you are using Nagios, we are also using php scripts as plugins and use encoding/decoding too. Is the plugin run on the Nagios server and receiving back JSON data? Yes, the plugin runs on Nagios server and it returns JSON data in case of alert. Nagios ...
by xitkov
Fri Jan 09, 2015 3:05 am
Forum: Open Source Nagios Projects
Topic: Problem with JSON server output in nagios plugin.
Replies: 5
Views: 3403

Re: Problem with JSON server output in nagios plugin.

Since this would all be displayed in the browser, you could try HTML-escaping the characters: http://www.ascii.cl/htmlcodes.htm This should make them display properly in a web page, but anything further down the road that would need to handle the output may not understand HTML entities. I have trie...
by xitkov
Thu Jan 08, 2015 9:45 am
Forum: Open Source Nagios Projects
Topic: Problem with JSON server output in nagios plugin.
Replies: 5
Views: 3403

Problem with JSON server output in nagios plugin.

Hi all, We have nagios plugins that throw JSON output, which we then parse in another command (which makes alerts). The problem is JSON output can have characters such as [$,&,\,etc] because of html data, and nagios acts strange if these are encountered. Most of the times nagios will strip chara...