Thursday, September 17, 2020

DNS keeps resetting to 127.0.0.1 in Windows 10

Step-1: Open CMD and run the below command to see what's the process ID(PID) is open on port number 53. 

netstat -ano | find ":53"

C:\>netstat -nao | find ":53"

  UDP    0.0.0.0:5353           *:*                                    2840

  UDP    0.0.0.0:5353           *:*                                    11464

  UDP    0.0.0.0:5355           *:*                                    2840

  UDP    127.0.0.1:5355           *:*                                6840


Step-2: Open the task manager > processes tab and add the PID column to the display process ID(PID). 

Step-3: Then find the process with process ID "6840" is running.

Step-4: Select the process> right-click on it > click End task.

Step-6: Select the process> right-click on it > click open file location or properties.

Step-7: After finding the location, remove those files from program files. Reboot the PC.

N.B. When you find out the application which is running the process "6840" and if you are able to uninstall it then uninstall it. You can also perform full pc scans by Malwarebytes.

Monday, September 14, 2020

Cacti > Data Sources > RRAs

Defining the right RRA Settings is essential if you are customizing how your graph will be displayed. RRAs were set by Steps, Rows, and Timespan. These will determine how you keep your data in different intervals and how long would you keep that interval. Manipulating these intervals would require some storage space, the longer you keep the data at a very small interval, the larger space it will require on your storage drive. So proper RRA settings would help you maximize your storage capacity without sacrificing a longer period of significant data.



Hourly (1 Minute Average)

Steps are the number of data points needed to place the data in RRA, (keep in mind that my system is polling every minute)so my value is "1". This means that every minute, the data will be reflected on my graph, but for how long? the answer will be the number of Rows. My value for rows is 10080, this is equivalent to 7 days of 1-minute data.

To get this,

{[10080/(60/1 step)]/24 hours} = 7 days
{[10080/60]/24} = 7 days

Then, what would be my Timespan to display this graph? Timespan value is in seconds, I want to see my 1 minute graph in the last 6 hours, so my value would be 21600 sec = 6 hours
{[21600/60]/60} = 6 hours


Daily (5 Minute Average)

Steps = 5, This means that the data will be reflected every 5 steps, (which is also equivalent to 5 minutes)

Rows = 8640, using the formula above

{[8640/(60/5 steps)]/24 hours} = 30 days
{[8640/12]/24} = 30 days

Timespan = {(86400 sec/60)/60} = 24 hours



Weekly (30 Minute Average)

Steps = 30, This means that the data will be reflected every 30 steps or 30 minutes
Rows = 4320, using the formula

{[4320/(60/30 steps)]/24 hours} = 90 days
{[4320/2]/24} = 90 days

Timespan = [{(604800 sec/60)/60}/24] = 7 days



Monthly (2-Hour Average)

Steps = 120, This means that the data will be reflected every 120 steps or 120 minutes or 2 hours
Rows = 2160, using the formula

{[2160/(60/120 steps)]/24 hours} = 180 days
{[2160/0.5]/24} = 180 days

Timespan = 2678400 sec = 31 days


Yearly (1 Day Average)

Steps = 1440, This means that the data will be reflected every 1440 steps or 1440 minutes or 24 hours
Rows = 720, using the formula

{[720/(60/1440 steps)]/24 hours} = 720 days
{[720/0.041666666667]/24} = 720 days

Timespan = 31536000 sec = 365 days


In summary, these are the data reflected on my graph.

last 7 days of 1-minute graph
last 30 days of 5-minute graph
last 90 days of 30-minute graph
last 6 months of 2-hour graph
last 2 years of 1-day graph

So every time I zoom in to my graph, I always have those dates in every interval.


(Collected)