------------------------------------------------------------------------------------------------------------------------------------------------------------------->
> 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.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Changed
the line to use exec('ps axo args',$ps_list). Seems that with the previous
line, the system resources where exausted, with this change, performance is
back to normal and can pull data.Now the application interfaces are marked as
DOWN, when the application is running. Ran the poller manually for the
application "mcshield.exe"again and get this:
19:30:58 CHILD #0 : H 8 : I 110 : P 10 :
app_status,current_instances(mcsh...exe): not running -> multi_buffer(): 1
(time P: 24.74 | B: 0.03)19:30:58 CHILD #0 : H 8 : I 110 : P 20 :
app_status(): not running -> alarm(38): Nothing was done (time P: 0 | B: 1.84)
Could be that the "ps" command is not returning the correct app name?
Thanks
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
jffnms-users mailing list
jffnms-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jffnms-users