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;
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
add a comment |
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
add a comment |
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
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
django django-models django-rest-framework django-views
asked Mar 8 at 23:32
shami shamishami shami
31
31
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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!
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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!
add a comment |
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!
add a comment |
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!
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!
answered Mar 9 at 0:43
devdobdevdob
56639
56639
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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