Announcement

Collapse
No announcement yet.

Anthony's question about request counts for monitoring software.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Anthony's question about request counts for monitoring software.

    Look into dashboard.jsp.

    Code:
    H2ReportDao reportDao = new H2ReportDao();
    reportDao.stime = strftimeAdd("yyyyMMddHHmm", 60 * 60 * -12); // 12 hours ago.
    reportDao.etime = strftime("yyyyMMddHHmm");
    
    ReportStatsData stats = reportDao.getStats();
    
    //request-sum
    stats.reqSum
    
    //request-cnt
    stats.reqCnt

    You can get a daily count from /nxfilter/log/nxfilter.log,
    Code:
    INFO [06-09 09:54:37] - MHMr, Stats, reqCnt = 5801, blockCnt = 266, domainCnt = 5000, userCnt = 1, tokenNameCnt = 0, cltIpCnt = 1, malwareCnt = 0, fwdErrCnt = 0, domainTestCnt = 39, xUserCnt = 1, xIpCnt = 1, xReqCnt = 5816.

    Another way is using Syslog exportation, https://nxfilter.org/tutorial/h-syslog-exportation.php

    Or you can build your own logging/repoting using Graylog, https://nxfilter.org/tutorial/h-gray...te-logging.php

    If you go with Graylog, I think there's some alert option as well.
    Last edited by support200; 06-10-2022, 10:35 AM.
Working...
X