ClearFoundation Tracker - ClearOS
View Issue Details
0001625ClearOSapp-network-detail-report - Network Detail Reportpublic2014-03-25 10:192014-04-22 13:24
bchambers 
bchambers 
normalmajoralways
closedfixed 
6.5.0 
6.5.0 Updates6.5.0 Updates 
0001625: /usr/sbin/networkdetail2db can be spawned dozens of times
Creating very high server loads and causing on the server that are completely unrelated and difficult for users to narrow down/troubleshoot.

This script should make use of the "Script.php" library to ensure only one version is running at any given instant.
Snippet of ps afxw

 2078 ? Ss 0:02 crond
16234 ? S 0:00 \_ CROND
16240 ? Ss 0:00 | \_ /bin/sh -c /usr/sbin/networkdetail2db >/dev/null 2>&1
16243 ? S 0:00 | \_ /usr/clearos/sandbox/usr/bin/php /usr/sbin/networkdetail2db
16350 ? S 0:00 \_ CROND
16355 ? Ss 0:00 | \_ /bin/sh -c /usr/sbin/networkdetail2db >/dev/null 2>&1
16360 ? S 0:00 | \_ /usr/clearos/sandbox/usr/bin/php /usr/sbin/networkdetail2db
16471 ? S 0:00 \_ CROND
16474 ? Ss 0:00 | \_ /bin/sh -c /usr/sbin/networkdetail2db >/dev/null 2>&1
16478 ? S 0:00 | \_ /usr/clearos/sandbox/usr/bin/php /usr/sbin/networkdetail2db
16631 ? S 0:00 \_ CROND
16636 ? Ss 0:00 | \_ /bin/sh -c /usr/sbin/networkdetail2db >/dev/null 2>&1
16639 ? S 0:00 | \_ /usr/clearos/sandbox/usr/bin/php /usr/sbin/networkdetail2db
16786 ? S 0:00 \_ CROND
16791 ? Ss 0:00 | \_ /bin/sh -c /usr/sbin/networkdetail2db >/dev/null 2>&1
16795 ? S 0:00 | \_ /usr/clearos/sandbox/usr/bin/php /usr/sbin/networkdetail2db
16905 ? S 0:00 \_ CROND
16908 ? Ss 0:00 | \_ /bin/sh -c /usr/sbin/networkdetail2db >/dev/null 2>&1
16912 ? S 0:00 | \_ /usr/clearos/sandbox/usr/bin/php /usr/sbin/networkdetail2db
17024 ? S 0:00 \_ CROND
17027 ? Ss 0:00 | \_ /bin/sh -c /usr/sbin/networkdetail2db >/dev/null 2>&1
17030 ? S 0:00 | \_ /usr/clearos/sandbox/usr/bin/php /usr/sbin/networkdetail2db
17168 ? S 0:00 \_ CROND
17173 ? Ss 0:00 | \_ /bin/sh -c /usr/sbin/networkdetail2db >/dev/null 2>&1
17176 ? S 0:00 | \_ /usr/clearos/sandbox/usr/bin/php /usr/sbin/networkdetail2db
17327 ? S 0:00 \_ CROND
17331 ? Ss 0:00 | \_ /bin/sh -c /usr/sbin/networkdetail2db >/dev/null 2>&1
17335 ? S 0:00 | \_ /usr/clearos/sandbox/usr/bin/php /usr/sbin/networkdetail2db
No tags attached.
Issue History
2014-03-25 10:19bchambersNew Issue
2014-03-25 11:35user2Note Added: 0001159
2014-03-25 11:35user2Statusnew => confirmed
2014-03-25 11:37user2Note Added: 0001160
2014-03-25 12:28bchambersNote Added: 0001161
2014-03-27 08:14bchambersAssigned To => bchambers
2014-03-27 08:14bchambersStatusconfirmed => assigned
2014-03-28 08:29bchambersReproducibilityhave not tried => always
2014-03-28 08:29bchambersResolutionopen => fixed
2014-03-28 08:29bchambersFixed in Version => 6.5.0 Updates
2014-04-22 13:24user2Statusassigned => resolved
2014-04-22 13:24user2Statusresolved => closed

Notes
(0001159)
user2   
2014-03-25 11:35   
What's Script.php? Is there documentation somewhere?
(0001160)
user2   
2014-03-25 11:37   
The network2db script should also use it. This script should only take a few seconds to run, but if something is hosed on the system causing the script to hang, it shouldn't make things worse!
(0001161)
bchambers   
2014-03-25 12:28   
Documentation added here:

http://www.clearfoundation.com/docs/developer/framework/tutorials/creating_scripts [^]