Navigation

    Netgate Discussion Forum
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    Отправка e-mail report. RRD_Summary

    Russian
    2
    4
    975
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      daszip last edited by

      Для отчета на почту нужна команда. Как я понял rrd_summary php скрипт генерит из rrd базы страничку. Как должна выглядеть команда чтоб вывод rrd_summary ушёл на почту?

      1 Reply Last reply Reply Quote 0
      • D
        daszip last edited by

        На данный момент раскопал что нужно что-то типа

        ob_start();
        include "1.php";
        $content = ob_get_contents();
        ob_end_clean();
        $handle = fopen("somefile.txt", "w");
        fwrite($handle, $content);
        fclose($handle);
        

        Осталось разобраться как оформить это в shell и чтоб без файла. Способ получится достаточно универсальный.

        1 Reply Last reply Reply Quote 0
        • D
          daszip last edited by

          Подскажите может я изобретаю велосипед и есть более правильные способы получать нужные цифры на почту?

          1 Reply Last reply Reply Quote 0
          • P
            pmrt last edited by

            @daszip:

            Подскажите может я изобретаю велосипед и есть более правильные способы получать нужные цифры на почту?

            Чем пакет mailreport  не устраивает?

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            Products

            • Platform Overview
            • TNSR
            • pfSense
            • Appliances

            Services

            • Training
            • Professional Services

            Support

            • Subscription Plans
            • Contact Support
            • Product Lifecycle
            • Documentation

            News

            • Media Coverage
            • Press
            • Events

            Resources

            • Blog
            • FAQ
            • Find a Partner
            • Resource Library
            • Security Information

            Company

            • About Us
            • Careers
            • Partners
            • Contact Us
            • Legal
            Our Mission

            We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

            Subscribe to our Newsletter

            Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

            © 2021 Rubicon Communications, LLC | Privacy Policy