Realtime monitoring using DjangoWhat is a “slug” in Django?How to combine 2 or more querysets in a Django view?How do I do a not equal in Django queryset filtering?Does Django scale?How to debug in Django, the good way?What's the difference between django OneToOneField and ForeignKey?Need a minimal Django file upload exampleHow to check Django versiondifferentiate null=True, blank=True in djangoDjango local server stopped working

Western buddy movie with a supernatural twist where a woman turns into an eagle at the end

Brothers & sisters

How to draw the figure with four pentagons?

Where does SFDX store details about scratch orgs?

Emailing HOD to enhance faculty application

Is "remove commented out code" correct English?

Will google still index a page if I use a $_SESSION variable?

Why do I get two different answers for this counting problem?

What killed these X2 caps?

Alternative to sending password over mail?

Why is consensus so controversial in Britain?

Python: return float 1.0 as int 1 but float 1.5 as float 1.5

What is the intuition behind short exact sequences of groups; in particular, what is the intuition behind group extensions?

Why doesn't H₄O²⁺ exist?

Is it unprofessional to ask if a job posting on GlassDoor is real?

Should I tell management that I intend to leave due to bad software development practices?

Assassin's bullet with mercury

What to put in ESTA if staying in US for a few days before going on to Canada

90's TV series where a boy goes to another dimension through portal near power lines

What reasons are there for a Capitalist to oppose a 100% inheritance tax?

Neighboring nodes in the network

Why is the 'in' operator throwing an error with a string literal instead of logging false?

Forgetting the musical notes while performing in concert

I'm flying to France today and my passport expires in less than 2 months



Realtime monitoring using Django


What is a “slug” in Django?How to combine 2 or more querysets in a Django view?How do I do a not equal in Django queryset filtering?Does Django scale?How to debug in Django, the good way?What's the difference between django OneToOneField and ForeignKey?Need a minimal Django file upload exampleHow to check Django versiondifferentiate null=True, blank=True in djangoDjango local server stopped working






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








-2















I want to monitor some network devices using Django.
Lets say I have three PC in three different locations.



PC1= city1
PC2= city2
PC3= city3


Something like this:



example



what is the best way to make a realtime monitoring application in Django.



I already know that I can use snmp or ping to get the status of these PC's. (using views). And I know a bit about mapbox or Java to get an interactive map.



So! how can I have a webpage that automatically update the status of these PC's for example every 10 seconds?










share|improve this question




























    -2















    I want to monitor some network devices using Django.
    Lets say I have three PC in three different locations.



    PC1= city1
    PC2= city2
    PC3= city3


    Something like this:



    example



    what is the best way to make a realtime monitoring application in Django.



    I already know that I can use snmp or ping to get the status of these PC's. (using views). And I know a bit about mapbox or Java to get an interactive map.



    So! how can I have a webpage that automatically update the status of these PC's for example every 10 seconds?










    share|improve this question
























      -2












      -2








      -2








      I want to monitor some network devices using Django.
      Lets say I have three PC in three different locations.



      PC1= city1
      PC2= city2
      PC3= city3


      Something like this:



      example



      what is the best way to make a realtime monitoring application in Django.



      I already know that I can use snmp or ping to get the status of these PC's. (using views). And I know a bit about mapbox or Java to get an interactive map.



      So! how can I have a webpage that automatically update the status of these PC's for example every 10 seconds?










      share|improve this question














      I want to monitor some network devices using Django.
      Lets say I have three PC in three different locations.



      PC1= city1
      PC2= city2
      PC3= city3


      Something like this:



      example



      what is the best way to make a realtime monitoring application in Django.



      I already know that I can use snmp or ping to get the status of these PC's. (using views). And I know a bit about mapbox or Java to get an interactive map.



      So! how can I have a webpage that automatically update the status of these PC's for example every 10 seconds?







      django django-models django-rest-framework django-views






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 8 at 23:32









      shami shamishami shami

      31




      31






















          1 Answer
          1






          active

          oldest

          votes


















          0














          You have two ways to do this. The first is a page with some JS that has a setTimeout code which runs every 10 seconds, this timeout will do an ajax call to your server which will execute your "get status" commands and returns a JSON result which you can update the data on your browser page with.



          The other solution is to have an open websocket with your server, and then have a a Celery worker which runs a periodic task every 10 seconds that executes your "get status" commands and returns the result to your open websocket(s) which then updates your browser page.



          Hope this helps!






          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55072429%2frealtime-monitoring-using-django%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            You have two ways to do this. The first is a page with some JS that has a setTimeout code which runs every 10 seconds, this timeout will do an ajax call to your server which will execute your "get status" commands and returns a JSON result which you can update the data on your browser page with.



            The other solution is to have an open websocket with your server, and then have a a Celery worker which runs a periodic task every 10 seconds that executes your "get status" commands and returns the result to your open websocket(s) which then updates your browser page.



            Hope this helps!






            share|improve this answer



























              0














              You have two ways to do this. The first is a page with some JS that has a setTimeout code which runs every 10 seconds, this timeout will do an ajax call to your server which will execute your "get status" commands and returns a JSON result which you can update the data on your browser page with.



              The other solution is to have an open websocket with your server, and then have a a Celery worker which runs a periodic task every 10 seconds that executes your "get status" commands and returns the result to your open websocket(s) which then updates your browser page.



              Hope this helps!






              share|improve this answer

























                0












                0








                0







                You have two ways to do this. The first is a page with some JS that has a setTimeout code which runs every 10 seconds, this timeout will do an ajax call to your server which will execute your "get status" commands and returns a JSON result which you can update the data on your browser page with.



                The other solution is to have an open websocket with your server, and then have a a Celery worker which runs a periodic task every 10 seconds that executes your "get status" commands and returns the result to your open websocket(s) which then updates your browser page.



                Hope this helps!






                share|improve this answer













                You have two ways to do this. The first is a page with some JS that has a setTimeout code which runs every 10 seconds, this timeout will do an ajax call to your server which will execute your "get status" commands and returns a JSON result which you can update the data on your browser page with.



                The other solution is to have an open websocket with your server, and then have a a Celery worker which runs a periodic task every 10 seconds that executes your "get status" commands and returns the result to your open websocket(s) which then updates your browser page.



                Hope this helps!







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 9 at 0:43









                devdobdevdob

                56639




                56639





























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55072429%2frealtime-monitoring-using-django%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    How to get text form Clipboard with JavaScript in Firefox 56?How to validate an email address in JavaScript?How do JavaScript closures work?How do I remove a property from a JavaScript object?How do you get a timestamp in JavaScript?How do I copy to the clipboard in JavaScript?How do I include a JavaScript file in another JavaScript file?Get the current URL with JavaScript?How to replace all occurrences of a string in JavaScriptHow to check whether a string contains a substring in JavaScript?How do I remove a particular element from an array in JavaScript?

                    Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme

                    List of MPs elected to the English parliament in 1640 (April) Contents List of constituencies and members See also Notes References Navigation menueNational Archives – The Glynde Place ArchivesCobbett's Parliamentary history of England, from the Norman Conquest in 1066 to the year 1803'Aldermen in Parliament', The Aldermen of the City of London: Temp. Henry III – 1912onepage&q&f&#61, false 229