On Wed, Sep 05, 2012 at 11:20:35PM -0500, Carlos Ramírez wrote:
> jff# php rrd_analizer.php -i 11423:09:02 I114. : 
> ==========================================================================================23:09:02
>  I114. : Start: 2012-09-05 22:35:00     Stop: 2012-09-05 23:00:00      
> Measures: 523:09:02 I114 : input(0) output(0) inputerrors(0) outputerrors(0) 
> rtt(0) packetloss(0) inpackets(0) outpackets(0) drops(0) aux4(0) 
> bandwidthin(0) bandwidthout(0)23:09:02 I114 : 
> ------------------------------------------------------------------------------------------23:09:03
>  I114 : analyzer_sla : STACK OVERFLOW,  REVIEW THE SLA 10001 !!, stack 
> elements: 0
The SLA definition for this sort of interface is wrong.  It looks like
you are missing a line there, my guess is an AND or OR line.

> jff# php poller.php -h 14 -i 614 -ops: illegal option -- -usage: ps 
> [-aCcdefHhjlmrSTuvwXxZ] [-O fmt | -o fmt] [-G gid[,gid...]]          [-M 
> core] [-N system]          [-p pid[,pid...]] [-t tty[,tty...]] [-U 
> user[,user...]]       ps [-L]23:11:15 ITEMS     Added 0 items23:11:15 PAR: 
> Items Waiting/Polling=Total: 0/023:11:15 PAR: Childn Min/Max 
> Idl/Bsy/Srt/Ded/Otr=Tot: 0/5 0/0/0/0/0=0
Hmm, FreeBSD uses a different ps.
On line 310 in lib/api.inc.php there is this:
  exec('ps --no-headers -C php -o args',$ps_list);

So this prints all processes with the command name "php", e.g.
 ps --no-headers -C php -o pid,args
  6497 /usr/bin/php -q poller.php -c 0,5
  8406 /usr/bin/php -q poller.php
 24620 /usr/bin/php -q consolidate-website.php
 24623 /usr/bin/php -q consolidate.php
You might want to try commenting line 310 and uncommenting line 309.

-- 
Craig Small VK2XLZ   http://enc.com.au/          csmall at : enc.com.au
Debian GNU/Linux     http://www.debian.org/      csmall at : debian.org
GPG fingerprint:     5D2F B320 B825 D939 04D2  0519 3938 F96B DF50 FEA5

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
jffnms-users mailing list
jffnms-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jffnms-users

Reply via email to