ℹ️ Your data is safe here... unless you make the SNIP gods angry. And let's just say they have a really bad sense of humor.

From TvL2386, 7 Years ago, written in Diff-output.
Embed
  1. diff --git a/includes/polling/applications/nginx.inc.php b/includes/polling/applications/nginx.inc.php
  2. index b55bbb3..ed448a5 100644
  3. --- a/includes/polling/applications/nginx.inc.php
  4. +++ b/includes/polling/applications/nginx.inc.php
  5. @@ -10,12 +10,13 @@ if (!empty($agent_data['app'][$name])) {
  6.      // Polls nginx statistics from script via SNMP
  7.      $nginx = snmp_get($device, '.1.3.6.1.4.1.8072.1.3.2.3.1.2.5.110.103.105.110.120', '-Ovq');
  8.  }
  9. +$nginx = trim($nginx, '"');
  10.  update_application($app, $nginx);
  11.  
  12.  echo ' nginx';
  13.  
  14.  list($active, $reading, $writing, $waiting, $req) = explode("\n", $nginx);
  15. -d_echo("active: $active reading: $reading writing: $writing waiting: $waiting Requests: $req");
  16. +d_echo("active: $active reading: $reading writing: $writing waiting: $waiting Requests: $req\n");
  17.  
  18.  $rrd_name = array('app', $name, $app_id);
  19.  $rrd_def = RrdDefinition::make()
  20.  
captcha