GithubHelp home page GithubHelp logo

yasinkuyu / netdash Goto Github PK

View Code? Open in Web Editor NEW
69.0 11.0 45.0 20.88 MB

Small web-based monitoring dashboard for windows in C# and MVC

C# 34.68% CSS 21.66% JavaScript 26.51% Batchfile 0.11% ASP.NET 0.08% HTML 16.96%
asp-net-mvc monitoring server-management csharp

netdash's Introduction

NetDash Logo

NetDash - v1.4.4

@yasinkuyu

Small web-based monitoring dashboard for windows in C and MVC A small web-based monitoring dashboard for your Windows pc/server writen in C# and MVC + Chart.js.

The dashboard is built using only C# libraries available in the main C# distribution, trying to create a small list of dependencies without the need of installing many packages or libraries.

Current dependencies:

  • Net Framework 4
  • C# MVC
  • AttributeRouting
  • SQLite

Localization:

  • (1) "App_Data\Localization\en-EN.txt" copy this file and translate the language you want to use.
  • (2) "App_Data\Setting.ini" LANGUAGE line in the file that you want to use the written language. Example: LANGUAGE=en-EN or LANGUAGE=tr-TR
  • (3) Started to use in their own language

Login info

user: admin
pass: admin123

NetDash

NetDash Settings

The only settings currently available which you can modify are the refresh rates for the different data tables. There are 3 different refresh settings under netdash/App_data/Setting.ini and values are in miliseconds:

  • TIME_JS_REFRESH = 30000 #30 seconds
  • TIME_JS_REFRESH_LONG = 120000 #120 seconds
  • TIME_JS_REFRESH_NET = 2000 #2 seconds

You can modify any of the values to whatever you would like the new refresh rate to be. Restart the webserver after each update to the Setting.ini file.

The tables and the refresh settings are as follows:

  • Memory Usage - TIME_JS_REFRESH
  • Load Average - TIME_JS_REFRESH
  • CPU Usage - TIME_JS_REFRESH
  • Traffic Usage - TIME_JS_REFRESH_NET
  • Disk Reads/Writes - TIME_JS_REFRESH_NET
  • Uptime - TIME_JS_REFRESH_LONG
  • Disk Usage - TIME_JS_REFRESH_LONG
  • Online Users - TIME_JS_REFRESH_LONG
  • Processes - TIME_JS_REFRESH_LONG
  • Netstat - TIME_JS_REFRESH_LONG

Remote data retrieval

NetDash remote data retrieval

App_Data\Setting.ini

; Remote or Local server name (Default local name machine name : .)
; Sample remote server SERVERNAME=0.0.0.0
SERVERNAME=ipaddress
        
; Remote server login info (Ony remote server)

REMOTE_DOMAIN=domain.com
REMOTE_USERNAME=Administrator
REMOTE_PASSWORD=password

NetDash will allow you to retrieve data remotely if needed. This can be useful if you want to store any of the data in a database or another application.

  • /info/uptime/ - Uptime
  • /info/platform/hostname/ - Hostname
  • /info/platform/osname/ - OS Name
  • /info/platform/kernel/ - Kernel
  • /info/getcpus/cpucount/ - Number of CPU cores
  • /info/getcpus/cputype/ - Type/Name of CPU
  • /info/memory/ - Memory Usage
  • /info/cpuusage/ - CPU Usage in percentage(%), free and used
  • /info/getdisk/ - Disk Usage
  • /info/getusers/ - Online Users
  • /info/getips/ - IP Addresses
  • /info/gettraffic/ - Internet Traffic
  • /info/getdiskio/ - Disk Reads/Writes
  • /info/proc/ - Running Processes
  • /info/loadaverage/ - Load Average
  • /info/getnetstat/ - Netstat

To see the format of the JSON returned datasets or data you can access any of the URLs from your browser ex. http://domain.com/info/uptime/

OS Support

  • NetDash was tested and runs under the following OSs:
  • Windows 2000 NT
  • Windows 2003 Server
  • Windows 2008 Server
  • Windows 2012 Server

Credits

Dashboard Template, Bootstrap, Font Awesome

Roadmap

LICENSE

The MIT License (MIT)

Copyright (c) 2014 Yasin Kuyu - https://twitter.com/yasinkuyu - https://github.com/yasinkuyu/

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

netdash's People

Contributors

yasinkuyu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

netdash's Issues

Installation Guide?

Hello.

It seems like there is little to no installation guide/steps for using this tool. Could you please guide me in the installation process, how to setup and run NetDash.

Thanks

  • Harry

Presumes IPV6 is enabled on the network adaptor. Crashes if not

public static ArrayList get_ips()
{
var datasets = new ArrayList();

		var scope = new ManagementScope(Functions.GetServerName());
		var query = new SelectQuery("Select Caption, IPAddress, MACAddress From Win32_NetworkAdapterConfiguration WHERE IPEnabled = 'TRUE'");
		var searcher = new ManagementObjectSearcher(scope, query);
		var count = 0; //-> fake adapter name

		foreach (var x in searcher.Get())
		{

			var dataset = new ArrayList();
			var ips = (string[])x["IPAddress"];

			dataset.Add("eth" + count);   //x["Caption"]
			dataset.Add(ips[0]);          //-> IP v4
			dataset.Add(ips.Length > 1 ? ips[1] : "N/A");  <<<<< ----- -THis works better
			dataset.Add(x["MACAddress"]); //-> Mac address
			datasets.Add(dataset);
			count++;
		}

		return datasets;
	}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.