Skip to main content

Questions tagged [status-monitoring]

Code whose primary purpose is to check whether a service is available and working correctly

1 vote
2 answers
180 views

Program for monitoring file in Combined Log Format

After encountering a suggestion that monitoring a log file for a webserver could allow for the implementation of automatically analyzing and handling of certain events (that might require altering ...
Noctis Skytower's user avatar
4 votes
1 answer
244 views

Online check with retry logic and anti-flapping

I've got a network device that doesn't hold its WiFi connection brilliantly and occasionally drops off the network completely. Although there are dedicated network monitoring tools out there, I ...
Gordon Mckeown's user avatar
4 votes
3 answers
533 views

Loop to print changes in irrigation state to turn on and off a pump when water is low

Python Noob building an automation irrigation system in Python for Raspberry Pi. Python has two functions in the most basic use case: on/off the LED (which will in future be a relay->pump) and ...
GlennB's user avatar
  • 93
6 votes
1 answer
316 views

Python script which sends telegram message if Raspberry Pi's temperature crosses 60 °C

I need to know if there is any way I can optimize my code so that it does not use 0.6% of my total memory - which is approx. 22.4MB. This is a really small script that runs for as long as the ...
Aditya Sahu's user avatar
1 vote
1 answer
1k views

Program to continuously check availability of internet connection c#

I have a C# program to check if a hard coded host is available and if not, waits then checks again (this is a loop in form of recursion). How can it be enhanced? ...
user14773854's user avatar
7 votes
2 answers
3k views

Python script for alerting disk usage and take action if needed

I am running an IoT fleet, and the need for checking the empty disk usage space has increased. So I am using the following python code. In addition to best practices, efficiency, readability, pythonic,...
Monty_emma's user avatar
5 votes
3 answers
958 views

Log monitoring with pythonic tail -f and process killing

The purpose of this cluster of functions is to tail the log file and kill/restart processes from shell (the latter is not yet implemented). ...
user avatar
3 votes
0 answers
63 views

Network connection monitor

I was recently in need of a class that checks if a computer has a valid internet connection, so I wrote one; however, I feel that there is a better way to do so and I just don't have the knowledge ...
ARickman's user avatar
  • 698
3 votes
0 answers
48 views

NRPE script for monitoring filesystems usage

Next script returns NRPE friendly output. It checks percentage usage of all local filesystems. Desired output if everything is ok: OK | /=56;;;; /boot=20;;;; /opt=40;;;; /var=60;;;; (and ...
David Mosler's user avatar
2 votes
2 answers
217 views

C# classes for system health metrics

My company wants me to build a serverless component (AWS Lambda) that checks every minute for our system components health. The data model (classes structure) I have devised so far is as pasted below....
Veverke's user avatar
  • 161
1 vote
1 answer
105 views

NRPE script for monitoring memory usage

This script based on previous NRPE script for monitoring load average. Same purpouse - get NRPE friendly output with minimal usage of non built in commands. In this case wasn't need to count with ...
David Mosler's user avatar
7 votes
3 answers
360 views

NRPE script for monitoring load average

This script converts a server load value into percentage, compares it with non desired state ($warning and $critical) and returns all information in NRPE (Nagios Remote Plugin Executor) friendly ...
David Mosler's user avatar
1 vote
1 answer
100 views

HTTP status monitoring

I am fairly new to programming. I am writing a script which gets URLs and parameters through a config and makes http requests to check status, finally push a json string to Open-falcon server. I am ...
zheng ji's user avatar
3 votes
1 answer
105 views

Express.js functions to start session, authenticate user, perform ping, search for user, reset password, and import product XML

I wrote the below code which contains the following functions: establish session with the user, determine if the user is authenticated, perform ping request, search about the user from the database, ...
CoderPro's user avatar
2 votes
1 answer
124 views

Application to monitor device power levels for deviations

I have a high performance, computation intensive application that runs on a Centos 7 machine with Python 2.7.5. I'll try to explain what the application does: The application runs an infinite loop, ...
Inian's user avatar
  • 181

15 30 50 per page