Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-21-2013, 05:27 PM   PM User | #1
snake111
New Coder

 
Join Date: Jan 2012
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
snake111 is an unknown quantity at this point
Scan network

I would like to develop some type of "status" monitor that will tell me if certain devices on my internal network are alive/on or not. On my network I don't have a DNS server and all devices are on DHCP.

I figure I'll need to have (probably nmap) return to me the IP address of the device and the MAC address. If I have the MAC address I can display to the user the common name.

Any good place to start?
snake111 is offline   Reply With Quote
Old 01-21-2013, 06:06 PM   PM User | #2
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,503
Thanks: 45
Thanked 439 Times in 428 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
I think you're going to face an uphill struggle doing this in a web orientated language like PHP. Sure, php doesn't have to be used for the web and can do many things from a console but what you want to do is something very rare and therefore you'll not get much help with it.

If I'm honest, you're gonna be better off doing this in a windows programming language like c#, java, VB delphi etc.
__________________
Please wrap your code in [php] tags. It is a sticky topic and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.
tangoforce is offline   Reply With Quote
Old 01-22-2013, 02:26 PM   PM User | #3
hinch
Regular Coder

 
hinch's Avatar
 
Join Date: Sep 2005
Location: UK
Posts: 921
Thanks: 25
Thanked 79 Times in 79 Posts
hinch is on a distinguished road
Quote:
Originally Posted by tangoforce View Post
I think you're going to face an uphill struggle doing this in a web orientated language like PHP. Sure, php doesn't have to be used for the web and can do many things from a console but what you want to do is something very rare and therefore you'll not get much help with it.

If I'm honest, you're gonna be better off doing this in a windows programming language like c#, java, VB delphi etc.
kind of right its pointless doing it purely in php.
but there are already hundreds of network and service monitoring tools out there for windows and linux all mostly opensource why re-invent the wheel.

Nagios,cactus,ingica,MRTG.....
__________________
A programmer is just a tool which converts caffeine into code

My work: http://www.fcsoftware.co.uk && http://www.firstcontactcrm.com
My hobby: http://www.angel-computers.co.uk
My life: http://www.furious-angels.com
hinch is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:08 AM.


Advertisement
Log in to turn off these ads.