On 07/17/14 05:45, Sebastian Martinez wrote: > and i can see this error too > PHP Warning: unlink(/jffnms/jffcom/engine/temp/53c7a7486bfd3.log): No such > file or directory in /jffnms/jffcom/engine/pollers/reachability_end.php on > line 17 > i suspect a bug in the generation of log from fping. In this moment the > fping from a host is > fping -p 300 -c 50 10.250.1.1 -q > 10.250.1.1 : xmt/rcv/%loss = 50/50/0%, min/avg/max = 6.73/7.46/8.10 > and the host web interfaces mark error in reachability.
OK, I'm not certain that stat/fstat is the source (or the single source) of your error/problem. I suggested looking into stat/fstat as an area of examination. I do not have time to parse the code and find this problem; and that presumes that the problem is not elsewhere. That said, here is the BSD man page for fstat, should you or Craig decide to look into the stat/fstat as the source of the problem(s) or want to make some changes in the codes..... [1,2,3,5,6] (start with ref [6]). Speedups, increase in buffer sized, etc etc abound in customized systems tuned for a singular application [4]. Probably those sorts of codes are not applicable here, but it is excellent to learn how fstat is optimzed (file descriptors cached) before a file is needed and always while the file is open. But that is a luxury of embedded (tightly focused, minimize and optimized) sytems that is not generally available on linux servers; particularly if the are running a myriad of codes. Google around and you can find all sorts of variants for fstat.c that may or may not be beneficial to this problem or the wider speed up of jffnms. [7] Your (transient) problems may be due to resource constraints on the machine you are running on? Try running it on a freshly installed system without much else installed, and monitor your resource consumption on that system? YOU need to dig into this problem and discuss what you find with Craig. stat64? [8] good hunting! James [1] http://fossies.org/dox/glibc-2.19/fstat_8c_source.html [2] http://www.go4expert.com/articles/understanding-linux-fstat-example-t27449/ [3] http://fossies.org/dox/coreutils-8.22/fstat_8c.html [4] http://fossies.org/dox/coreutils-8.22/idcache_8c_source.html [5] http://stackoverflow.com/questions/14115316/c-programming-file-size [6] http://stackoverflow.com/questions/tagged/fstat?sort=active [7] http://www.freebsd.org/cgi/man.cgi?fstat [8] http://www.gnu.org/software/libc/manual/html_node/Reading-Attributes.html > > > 2014-07-16 14:26 GMT-03:00 wireless <wirel...@tampabay.rr.com>: > >> On 07/16/14 06:40, Sebastian Martinez wrote: >> >>> i see this error perhaps is related to my problem >>> >>> PHP Warning: filesize(): stat failed for >>> /jffnms/jffcom/engine/temp/53c65ee0db43f.log in >>> /jffnms/jffcom/engine/pollers/reachability_wait.php on line 24 >>> >> >> >> "stat" is often replace by "fstat"; it's a slippery slop but you may want >> to read up on stat/fstat. Here is an example where to start: >> >> fstat, from the BSD origins is often added to packages, particularly >> embedded systems. it has some more features than plain old "stat". >> It would be up to Craig if that were to be the patch needed or >> if some other annomolous behavior is present on your system? >> In the latest version of jffnms? >> >> >> http://man7.org/linux/man-pages/man2/stat.2.html >> >> hth, >> James >> >> >> 2014-07-16 7:30 GMT-03:00 Sebastian Martinez <tychoc...@gmail.com >>> <mailto:tychoc...@gmail.com>>: >>> >>> >>> i upgrade to fping 3.10 but the problem persist. no gaps on graphs >>> but rechiability fails sometimes. >>> >>> >>> 2014-07-14 15:14 GMT-03:00 wireless <wirel...@tampabay.rr.com >>> <mailto:wirel...@tampabay.rr.com>>: >>> >>> >>> On 07/14/14 10:44, Sebastian Martinez wrote: >>> > Hi Craig, i needed to fix the last problem. Thanks. >>> >>> >>> > 2014-07-02 8:23 GMT-03:00 Sebastian Martinez >>> <tychoc...@gmail.com <mailto:tychoc...@gmail.com>>: >>> >>> >>> >> hi Craig some news about its problem?. >>> >>> >> 2014-06-17 11:05 GMT-03:00 Sebastian Martinez >>> <tychoc...@gmail.com <mailto:tychoc...@gmail.com>>: >>> >>> >>> >> fping is intalled and works ok, the reachability fails >>> sometimes but the >>> >>> graphics are ok. >>> >>> Fping-3.10 is now available. Are you running the latest version of >>> fping? If not, upgrading to that latest version *may* fix your >>> problem? >>> >>> Pay attention to the flags that are set for compiling fping on >>> your >>> system, as that also *might* be the source of you problem? >>> >>> >>> hth, >>> James >>> >>> >>> >>> >>> ------------------------------------------------------------ >>> ------------------ >>> Want fast and easy access to all the code in your enterprise? >>> Index and >>> search up to 200,000 lines of code with a free copy of Black >>> Duck® >>> Code Sight™ - the same software that powers the world's >>> largest code >>> search on Ohloh, the Black Duck Open Hub! Try it now. >>> http://p.sf.net/sfu/bds >>> _______________________________________________ >>> jffnms-users mailing list >>> jffnms-users@lists.sourceforge.net >>> <mailto:jffnms-users@lists.sourceforge.net> >>> https://lists.sourceforge.net/lists/listinfo/jffnms-users >>> >>> >>> >>> >> > ------------------------------------------------------------------------------ > Want fast and easy access to all the code in your enterprise? Index and > search up to 200,000 lines of code with a free copy of Black Duck > Code Sight - the same software that powers the world's largest code > search on Ohloh, the Black Duck Open Hub! Try it now. > http://p.sf.net/sfu/bds > _______________________________________________ > jffnms-users mailing list > jffnms-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jffnms-users > ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ jffnms-users mailing list jffnms-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jffnms-users