LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-24-2012, 10:38 PM   #1
resuni
Member
 
Registered: Oct 2009
Location: Colorado, USA
Distribution: I use Arch btw
Posts: 142

Rep: Reputation: 12
Remote Resource Monitor


I have two computers on a local network. One running Gentoo Linux, the other running Windows 7. I'm looking for a program to run on the Gentoo box that can remotely monitor the resources of the Windows 7 computer. The main information I'm looking for is CPU usage and memory usage in a fashion similar to htop; and bandwidth usage in a fashion similar to iftop. If this wasn't Windows, I could obviously ssh in and run htop and iftop, but I can't, so is there an application that can do something similar for me?

Thanks in advance!
 
Old 11-25-2012, 12:53 AM   #2
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
Probably VNC is your best bet to monitoring your win7 machine, since there isn't much cli for it anymore, things like 'mem' are long gone and everything is under GUI like taskmgr.exe or resmon.exe.

Regards
 
Old 11-25-2012, 02:53 PM   #3
resuni
Member
 
Registered: Oct 2009
Location: Colorado, USA
Distribution: I use Arch btw
Posts: 142

Original Poster
Rep: Reputation: 12
Does VNC have the capability to do this without actually bringing up the remote desktop?
 
Old 11-26-2012, 06:42 AM   #4
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
Quote:
Originally Posted by Bradj47 View Post
Does VNC have the capability to do this without actually bringing up the remote desktop?
I'm afraid not because the lack of cli programs on win7 for monitoring, you'll need VNC server on you win7 machine and a viewer on your GNU/Linux side, it is also possible connect to the server through a web browser.

Regards
 
Old 11-26-2012, 08:24 AM   #5
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 997
Blog Entries: 15

Rep: Reputation: 136Reputation: 136
Hi,

this is only an idea, not a solution:
As most administrative applications on windows use RPC, it might be possible to get a system monitor running through wine and connecting it to the monitored PC.

Find some kind of software as discussed here. ProcessExplorer works on wine, but doesn't allow remote monitoring.
As last resort, the "net" and "rpcclient" commands might prove to be useful (I suppose they're a part of the samba package).

Serafean
 
Old 11-26-2012, 09:22 AM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by Bradj47 View Post
...monitor the resources of the Windows 7 computer. The main information I'm looking for is CPU usage and memory usage...
snmp can do this.
http://www.debianadmin.com/linux-snm...tatistics.html

The presentation of collected metric data can be handled in a variety of ways. rrdtool is the usual mechanism for displaying collected data, but that is bulky and cumbersome, IMO.

I would NOT want to create graphs with snmp data and rrdtool alone. Enter Cacti.
It utilizes snmp and rrdtool to present data in a pretty good manner. YMMV. I use zabbix myself b/c it has features that allow me to save time making hosts to monitor, or services|triggers to replicate.

Quote:
Originally Posted by Bradj47 View Post
,,,I'm looking for a program to run on the Gentoo box that can remotely...in a fashion similar to htop; and bandwidth usage in a fashion similar to iftop.
This requirement may necessitate some flexibility on your behalf. Zabbix can do this handily and doesn't use rrdtool at all. So it grows a mysql database instead.

So you could install the zabbix client on the Windows host and monitor it from the Gentoo host that has the zabbix-server software installed (a LAMP install) easily, or use snmp collected data and roll-your-own parse for the desired metrics.

You could install the Zabbix client on the target and use the zabbix-server tools on the command-line to grab the CPU and Mem via the c-li and have at it.

You have options.

Easiest monitoring tool is Zabbix, IMO.
Good luck.
 
1 members found this post helpful.
Old 11-28-2012, 10:32 PM   #7
resuni
Member
 
Registered: Oct 2009
Location: Colorado, USA
Distribution: I use Arch btw
Posts: 142

Original Poster
Rep: Reputation: 12
Habitual, thanks for your reply.

Zabbix seems like the best solution for what I'm trying to do here. As you say, I decided to become more flexible in my requirements. I decided the graph doesn't necessarily have to be CLI. That said, I was wondering the default way to connect to a Zabbix server to view the resource usage of the different agent computers. The documentation is a bit confusing in this regard, so I must be missing something. In the 2.2/manual/quickstart/login section of the manual they suddenly start talking about a login screen. I can't find anywhere in the manual where it says how to access this login screen. Could you give me another nudge in the right direction?

Thanks for your help in getting me this far!
 
Old 11-29-2012, 08:42 AM   #8
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
No problem!

OS|version of the zabbix server|host?
How did you install the zabbix server on the server?
Zabbix version?

subscribed with interest,

JJ

Last edited by Habitual; 11-29-2012 at 09:48 AM.
 
Old 11-29-2012, 10:28 AM   #9
resuni
Member
 
Registered: Oct 2009
Location: Colorado, USA
Distribution: I use Arch btw
Posts: 142

Original Poster
Rep: Reputation: 12
Quote:
Originally Posted by Habitual View Post
No problem!

OS|version of the zabbix server|host?
How did you install the zabbix server on the server?
Zabbix version?

subscribed with interest,

JJ
Since Xabbix required MySQL, I decided to put the server on one of my machines already running it to save system resources. I put Zabbix server on my Ubuntu server installation. The agent will be run on my Windows 7 64-bit computer and probably my previously mentioned Gentoo computer. On the Ubuntu server, I installed via aptitude install zabbix-server-mysql. According to their package website, I'm running version 1.8.11-1. On the Windows computer, I just downloaded the Windows agent from the download page. The version should be 2.0.3. I have not yet gotten to playing around with the agent on the Gentoo computer, however I did install it by running emerge net-analyzer/zabbix. According to their repository, I have version 1.8.15.

I realize I have some old versions. Is that going to be a problem?
 
Old 11-29-2012, 01:57 PM   #10
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
You should then be able to navigate to http://ubuntu.ip/zabbix

Version isn't an issue, "normally"
<gratuitous 'YMMV' here>

Windows Notes:
The Windows zabbix_agentd.conf can be a bit tricky because you should not open, or edit it with notepad, EVER.
Edit that file using PFE32 (it's free) from here.... It will preserve the unix-format of the file in Windows nicely.

The most important key/values in the zabbixd.conf on the Windows host are:
  • Server=
    • This is the IP of the zabbix_server
  • Hostname=
    • This has to be the same string that will be used to identify the Windows host
      in the zabbix_server's Host configuration.
  • EnableRemoteCommands=1
All the rest should be fine as default or commented out.
Please remember to restart the Zabbix Agent in "services" after making any changes to zabbixd_agent.conf
  • Verify Zabbix Agent in
    File > run > "services.msc" w\out the quotes.
    The zabbix-agent install should have installed it and started it, but best to verify.
Zabbix Server Notes:
The install should have installed a zabbix client on that same host
(see /etc/zabbix/zabbix_agentd.conf)
  • this is known as the "Zabbix server" in the hosts configuration page in /zabbix
    This is where you would configure target hosts (the Windows box).
Please let me know how this goes.

JJ

Last edited by Habitual; 11-29-2012 at 08:17 PM.
 
Old 11-29-2012, 08:24 PM   #11
resuni
Member
 
Registered: Oct 2009
Location: Colorado, USA
Distribution: I use Arch btw
Posts: 142

Original Poster
Rep: Reputation: 12
Quote:
Originally Posted by Habitual View Post
You should then be able to navigate to http://ubuntu.ip/zabbix
Nope, gives me a Not Found error.

EDIT: I was able to get to a web-based interface after I moved the frontends/php directory from the Zabbix source archive to /var/www/.

Quote:
Originally Posted by Habitual View Post
Windows Notes:
The Windows zabbix_agentd.conf can be a bit tricky because you should not open, or edit it with notepad, EVER.
Edit that file using PFE32 (it's free) from here.... It will preserve the unix-format of the file in Windows nicely.
I already know of the incompatibility between Unix and Windows text files. I prefer to use either Notepad++ or vim.

Quote:
Originally Posted by Habitual View Post
Please let me know how this goes.

If you desire a more timely solution, please feel free to contact me on Skype. Details in my profile.
I'll make all the configuration changes you mentioned. I will add you on Skype as soon as I get around to reinstalling it. Thanks!

Last edited by resuni; 11-29-2012 at 10:21 PM.
 
Old 11-29-2012, 10:57 PM   #12
resuni
Member
 
Registered: Oct 2009
Location: Colorado, USA
Distribution: I use Arch btw
Posts: 142

Original Poster
Rep: Reputation: 12
So far so good until I get to the part where I configure target hosts.

Quote:
Originally Posted by Habitual View Post
You should then be able to navigate to
Zabbix Server Notes:
The install should have installed a zabbix client on that same host
(see /etc/zabbix/zabbix_agentd.conf)
  • this is known as the "Zabbix server" in the hosts configuration page in /zabbix
    This is where you would configure target hosts (the Windows box).

JJ
The package I installed did not give me an /etc/zabbix/zabbix_agentd.conf. Am I supposed to create it myself or am I supposed to install the zabbix-agent package on the server?
 
Old 11-30-2012, 05:40 AM   #13
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
So far so good until I get to the part where I configure target hosts.

The package I installed did not give me an /etc/zabbix/zabbix_agentd.conf. Am I supposed to create it myself or am I supposed to install the zabbix-agent package on the server?
You do not have to create one, but you may have to install the client on the server as well.
What's in /etc/zabbix/ ? This will tell me what's what.
Code:
ls -1 /etc/zabbix/
(That's a One)
It may be zabbix_agent.conf. The "d" designation in zabbix_agentd.conf is for daemon mode (versus xinetd) so we may be looking for /etc/zabbix/zabbix_agent.conf instead.

Quote:
...the part where I configure target hosts.
Are you able to login to /zabbix? Sounds like it. If you are, what is "there" for Hosts? This will tell us if you need to install additional software for the "Zabbix Server" that should be present in Hosts.

Please let me know...

Last edited by Habitual; 11-30-2012 at 05:41 AM.
 
Old 11-30-2012, 08:29 PM   #14
resuni
Member
 
Registered: Oct 2009
Location: Colorado, USA
Distribution: I use Arch btw
Posts: 142

Original Poster
Rep: Reputation: 12
Quote:
Originally Posted by Habitual View Post
You do not have to create one, but you may have to install the client on the server as well.
What's in /etc/zabbix/ ? This will tell me what's what.
Code:
ls -1 /etc/zabbix/
(That's a One)
It may be zabbix_agent.conf. The "d" designation in zabbix_agentd.conf is for daemon mode (versus xinetd) so we may be looking for /etc/zabbix/zabbix_agent.conf instead.
Code:
# ls -1 /etc/zabbix
alert.d
zabbix_server.conf
Quote:
Originally Posted by Habitual View Post
Are you able to login to /zabbix? Sounds like it. If you are, what is "there" for Hosts? This will tell us if you need to install additional software for the "Zabbix Server" that should be present in Hosts.

Please let me know...
When I look under Inventory -> Hosts, I have nothing listed. (See attached screenshot).
Attached Thumbnails
Click image for larger version

Name:	2012-11-30-192639_1015x1011_scrot.png
Views:	22
Size:	101.8 KB
ID:	11326  
 
Old 12-01-2012, 08:39 AM   #15
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
...When I look under Inventory -> Hosts, I have nothing listed. (See attached screenshot).
No worries. We'll skip the localhost for now.
It's not imperative, if you feel adventurous, you could install zabbix_agent on the Zabbix Server.

Now add a new host ("Create Host" button at /zabbix/hosts.php, see attached) and we'll go basic, so no Template, or Macro, or Profile, or Extended host profile needed at this time.
But I believe you are required to add the newly created host(s) to at least One Hostgroup. You can pick one or make one "on-the-fly" using "New host group" in the action after "Create Host"

Once the host is added, check back under /zabbix/hosts.php, and you should now "see" the Windows Host.

Please let me know...

Last edited by Habitual; 06-26-2015 at 05:47 PM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Monitor resource information rgrandl Linux - General 5 11-24-2012 10:16 AM
Monitor Resource Usage JMJ_coder Linux - Hardware 2 02-23-2008 12:54 PM
resource/sensor monitor evil_empire Linux - General 12 03-31-2005 12:47 PM
resource monitor? acidjuice SUSE / openSUSE 1 02-13-2005 07:54 PM
Resource monitor Bilb Linux - Software 6 06-10-2003 08:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration