diff --git a/includes/polling/applications/nginx.inc.php b/includes/polling/applications/nginx.inc.php index b55bbb3..ed448a5 100644 --- a/includes/polling/applications/nginx.inc.php +++ b/includes/polling/applications/nginx.inc.php @@ -10,12 +10,13 @@ if (!empty($agent_data['app'][$name])) { // Polls nginx statistics from script via SNMP $nginx = snmp_get($device, '.1.3.6.1.4.1.8072.1.3.2.3.1.2.5.110.103.105.110.120', '-Ovq'); } +$nginx = trim($nginx, '"'); update_application($app, $nginx); echo ' nginx'; list($active, $reading, $writing, $waiting, $req) = explode("\n", $nginx); -d_echo("active: $active reading: $reading writing: $writing waiting: $waiting Requests: $req"); +d_echo("active: $active reading: $reading writing: $writing waiting: $waiting Requests: $req\n"); $rrd_name = array('app', $name, $app_id); $rrd_def = RrdDefinition::make()