Koozali.org formerly Contribs.org

Monitoring Multiple SME Boxes Remotely

Offline Gert

  • ****
  • 208
    • http://www.huge.co.za
Monitoring Multiple SME Boxes Remotely
« on: May 29, 2008, 10:55:40 PM »
Hi

Would anyone be interested in a program to monitor multiple servers remotely?

I have developed a program that monitors my servers' online/offline status, uptime, RAID status and last affa backup success/failure in real time. It also notifies my via SMS of any activity for example a backup failure, or a server that went offline. Works great for me.  :lol:

http://netkeeper.huge.co.za/scrnshot.gif
« Last Edit: May 29, 2008, 11:13:25 PM by Gert »

Re: Monitoring Multiple SME Boxes Remotely
« Reply #1 on: May 30, 2008, 06:10:34 AM »
I would be  :D

Offline jumba

  • ****
  • 291
  • Donations: July 2007 - $ 20.00
    • Smeserver på svenska!
Re: Monitoring Multiple SME Boxes Remotely
« Reply #2 on: May 30, 2008, 09:19:39 AM »
You bet I'm interested as well!!!

(It looks a little bit like a Windooze program though, it would of course be even better if it's web based or OS independent) 
« Last Edit: May 30, 2008, 09:21:51 AM by jumba »

Offline Gert

  • ****
  • 208
    • http://www.huge.co.za
Re: Monitoring Multiple SME Boxes Remotely
« Reply #3 on: May 30, 2008, 09:44:29 AM »
Unfortunately it is a M$ Windoze app. If there is enough interest I will try and create an os independent version. It is still under development, but working great so far. I will upload it to my webserver today and you guys can give it a try. Maybe you guys can assist me in improving it with your feedback. Currently it also allows quick ssh access to remote hosts and quick view of RAID config by double clicking on the server block or the RAID block.

Re: Monitoring Multiple SME Boxes Remotely
« Reply #4 on: May 30, 2008, 12:25:06 PM »
Gert this sounds like something very useful. Let us know when you upload that contrib please.

Cheers
Hilton...

Offline m

  • *
  • 276
  • Michael
Re: Monitoring Multiple SME Boxes Remotely
« Reply #5 on: May 31, 2008, 12:30:12 PM »
I have developed a program that monitors my servers' online/offline status, uptime, RAID status and last affa backup success/failure in real time. It also notifies my via SMS of any activity for example a backup failure, or a server that went offline.

Gert,
  why do you reinvent the wheel? Good old Nagios does this all and much more, it is web-based and platform independent. A SME Nagios contrib is available.

Offline Gert

  • ****
  • 208
    • http://www.huge.co.za
Re: Monitoring Multiple SME Boxes Remotely
« Reply #6 on: May 31, 2008, 01:38:39 PM »
Nagios seems like a good and advanced util, but its not exactly what I wanted.

Offline Gert

  • ****
  • 208
    • http://www.huge.co.za
Re: Monitoring Multiple SME Boxes Remotely
« Reply #7 on: May 31, 2008, 01:40:47 PM »
The program is now online for download at http://ghp.homelinux.net/contribs/NRSM

Offline Franco

  • *
  • 1,171
    • http://contribs.org
Re: Monitoring Multiple SME Boxes Remotely
« Reply #8 on: May 31, 2008, 10:19:03 PM »
Can I run the application under wine or some other emulator? Nagios is nice but very picky, this seems a lot simpler.

Thanks,

Offline Gert

  • ****
  • 208
    • http://www.huge.co.za
Re: Monitoring Multiple SME Boxes Remotely
« Reply #9 on: June 01, 2008, 12:14:16 AM »
Can I run the application under wine or some other emulator?
That is a good question. I will test it on wine, sure hope it works.

Nagios is nice but very picky, this seems a lot simpler.
I tried to make is as plain and simple as possible. Hopefully ill have a web based version ready in the near future.

Offline Gert

  • ****
  • 208
    • http://www.huge.co.za
Re: Monitoring Multiple SME Boxes Remotely
« Reply #10 on: June 01, 2008, 12:27:45 AM »
It isn't running properly in wine. I will make it compatable and recompile.

Offline DjD

Re: Monitoring Multiple SME Boxes Remotely
« Reply #11 on: June 03, 2008, 08:54:07 AM »
Hi Gert

thanks for the tool - looks good.  Would it be possible to have an option for a change in the port for the ssh connection to the server?  From 22 to 222 or other options?

Thanks

Offline Gert

  • ****
  • 208
    • http://www.huge.co.za
Re: Monitoring Multiple SME Boxes Remotely
« Reply #12 on: June 03, 2008, 11:04:28 AM »
Good idea DjD, I will add the option to change the port on a per server basis.

Also the passwords will be stored encrypted.

Offline DjD

Re: Monitoring Multiple SME Boxes Remotely
« Reply #13 on: June 04, 2008, 12:31:10 AM »
Thanks Gert,

Looking forward to it!

Regards

David

Offline kevinb

  • *
  • 237
Re: Monitoring Multiple SME Boxes Remotely
« Reply #14 on: June 04, 2008, 08:34:47 PM »
Hi Gert,

I too would need to have alternate ports.

Plus I hit a snag .... in your instructions

Quote
Open "servers.mdb" which is in the program directory.

This is a MS Access DB file? I only have access to MS Access 2007 which forces me to convert the file to the new MS Access format.

Does someone have another option for modifying this file? Gert, can this file be changed to a text file?

Thanks,

Kevin

Offline Gert

  • ****
  • 208
    • http://www.huge.co.za
Re: Monitoring Multiple SME Boxes Remotely
« Reply #15 on: June 04, 2008, 09:44:18 PM »
Yes, it can be changes to a txt file. but in my next release the program itself will modify the mdb file. and m$ access will not be required at all. the mdb file will also be encrypted for security reasons.

Offline Gert

  • ****
  • 208
    • http://www.huge.co.za
Re: Monitoring Multiple SME Boxes Remotely
« Reply #16 on: June 05, 2008, 05:16:34 AM »
New version ready for download:

http://ghp.homelinux.net/contribs/NRSM


I have added the ability to change the ssh port on a per server basis.
Servers are now added in the program, no need for ms access.
Server passwords are now encrypted in the database.
Server host keys are now added to the registry automatically.

The howto.txt changed a bit.

Please help me with some feedback or ideas.

Offline bloodshoteye

  • ****
  • 232
  • Grateful thanks to SME devs
Re: Monitoring Multiple SME Boxes Remotely
« Reply #17 on: June 05, 2008, 01:08:22 PM »
Hi, thanks for this contrib. Really like what it's going to become.

It is working ok on a XP installation with sp3, but I can't add 2 servers on the same domian.
Do I have a problem or is that how it is at the moment? - it will be great to add as many servers per domain as required.
SME Server is a fantastic product - thank you!

Offline Gert

  • ****
  • 208
    • http://www.huge.co.za
Re: Monitoring Multiple SME Boxes Remotely
« Reply #18 on: June 05, 2008, 01:17:38 PM »
It is working ok on a XP installation with sp3, but I can't add 2 servers on the same domian.
Do I have a problem or is that how it is at the moment? - it will be great to add as many servers per domain as required.

You can actually add more than one server to the same domain.

Add them as follow:

Domain:                 mydomain.co.za[1]
Server host name:   host1.mydomain.co.za

Domain:                 mydomain.co.za[2]
Server host name:   host2.mydomain.co.za

Let me know if you don't come right.

Offline bloodshoteye

  • ****
  • 232
  • Grateful thanks to SME devs
Re: Monitoring Multiple SME Boxes Remotely
« Reply #19 on: June 05, 2008, 01:38:09 PM »
Gert,

Worked just as you said - thanks.
'Nother thing, I have a gateway server where I've set "Allow secure shell access using standard passwords" to "No"
This one won't make an ssh connection to NRSM unless there is a way to add a ssh private key file.

SME Server is a fantastic product - thank you!

Offline Gert

  • ****
  • 208
    • http://www.huge.co.za
Re: Monitoring Multiple SME Boxes Remotely
« Reply #20 on: June 05, 2008, 01:41:06 PM »
Yes, this won't work for now. Ill look into it. For now maybe allow standard passwords and change the ssh port to something else, like 8022 or whatever.

Offline mercyh

  • *
  • 824
    • http://mercyh.org
Re: Monitoring Multiple SME Boxes Remotely
« Reply #21 on: June 05, 2008, 05:50:10 PM »
Gert,

I just got around to installing this today. It is a nice clean tool.

Thanks a lot,

Royce

Offline Gert

  • ****
  • 208
    • http://www.huge.co.za
Re: Monitoring Multiple SME Boxes Remotely
« Reply #22 on: June 05, 2008, 08:12:37 PM »
The pleasure is all mine Royce.  :)

Re: Monitoring Multiple SME Boxes Remotely
« Reply #23 on: June 06, 2008, 09:33:19 AM »
can this work if i use IP address only instead of domain name?

Regards,
Rocel

Offline Gert

  • ****
  • 208
    • http://www.huge.co.za
Re: Monitoring Multiple SME Boxes Remotely
« Reply #24 on: June 06, 2008, 12:43:13 PM »
can this work if i use IP address only instead of domain name?

Yes

Re: Monitoring Multiple SME Boxes Remotely
« Reply #25 on: June 07, 2008, 04:01:05 AM »
hi,

i try to add a local ip address of our server but seems it doesn't connect. Does it need also putty if yes what path will I put putty on root of  drive c?

Regards,
Rocel

Offline Gert

  • ****
  • 208
    • http://www.huge.co.za
Re: Monitoring Multiple SME Boxes Remotely
« Reply #26 on: June 07, 2008, 08:48:45 AM »
It uses putty.exe and plink.exe. But the program installs them automatically in the windows dir. See if they are there. It works fine with local ip addresses.

Offline mercyh

  • *
  • 824
    • http://mercyh.org
Re: Monitoring Multiple SME Boxes Remotely
« Reply #27 on: June 23, 2008, 03:51:51 PM »
Gert,

I just installed affa on one of my machines. I know NRSM can monitor it and somewhere I saw the instructions how to set it up. Now for some reason I cannot find them. Would you be so kind as to point me in the right direction?

Thanks,
Royce

Offline Gert

  • ****
  • 208
    • http://www.huge.co.za
Re: Monitoring Multiple SME Boxes Remotely
« Reply #28 on: June 23, 2008, 04:55:30 PM »
Royce

You can find the howto here:

http://ghp.homelinux.net/contribs/NRSM/

Offline mercyh

  • *
  • 824
    • http://mercyh.org
Re: Monitoring Multiple SME Boxes Remotely
« Reply #29 on: June 23, 2008, 05:00:05 PM »
Got it. Should we add this to the contribs documentation?


Offline Gert

  • ****
  • 208
    • http://www.huge.co.za
Re: Monitoring Multiple SME Boxes Remotely
« Reply #30 on: June 23, 2008, 05:03:56 PM »
Yes please.

Offline mercyh

  • *
  • 824
    • http://mercyh.org
Re: Monitoring Multiple SME Boxes Remotely
« Reply #31 on: June 23, 2008, 05:05:44 PM »
I will work on it when I get time. I may PM you with the link so you can check for accuracy.

RH

Offline Gert

  • ****
  • 208
    • http://www.huge.co.za
Re: Monitoring Multiple SME Boxes Remotely
« Reply #32 on: June 23, 2008, 05:07:13 PM »
Ok, no problem.

Offline mercyh

  • *
  • 824
    • http://mercyh.org
Re: Monitoring Multiple SME Boxes Remotely
« Reply #33 on: June 23, 2008, 09:33:39 PM »

Re: Monitoring Multiple SME Boxes Remotely
« Reply #34 on: June 25, 2008, 05:10:18 PM »
Gert
Program looks excellent and I will be using it, but I have a small problem. On one of my servers I have a raid 5 with 4-250gb sata drives running SMEServer 7.3. I lost one of the hard drives yesterday, but NRSM did not detect or notify me of this lost drive. NRSM still shows the raid as clean. I did a refresh and it still shows the raid as clean. Any suggestions on how to fix.

Sal

Offline Gert

  • ****
  • 208
    • http://www.huge.co.za
Re: Monitoring Multiple SME Boxes Remotely
« Reply #35 on: June 25, 2008, 10:24:14 PM »
Sal

NRSM initially saves a snapshot of /proc/mdstat in its database. Mine looks like this:

Code: [Select]
md3 : active raid5 sdd1[3] sdc1[2] sdb1[1] sda1[0]
      2930279424 blocks level 5, 256k chunk, algorithm 2 [4/4] [UUUU]

md2 : active raid1 hda2[0]
      244091520 blocks [2/2] [UU]

md1 : active raid1 hda1[0]
      104320 blocks [2/2] [UU]

unused devices: <none>

With every refresh it compares the current /proc/mdstat with the saved one. Any change, even the slightest difference will raise a Failure warning. You can test this by opening the servers.mdb with M$ Access and make a small change in the RAID_Status field. NRSM will most definitely raise a Failure. I am confident that you lost your drive before you accepted the initial value of /proc/mdstat. An example of a lost drive would look something like this:

Code: [Select]
md3 : active raid5 sdd1[3] sdc1[2] sdb1[1] sda1[0]
      2930279424 blocks level 5, 256k chunk, algorithm 2 [4/4] [UUUU]

md2 : active raid1 hda2[0]
      244091520 blocks [2/1] [U_]

md1 : active raid1 hda1[0]
      104320 blocks [2/1] [U_]

unused devices: <none>
« Last Edit: June 25, 2008, 10:29:18 PM by Gert »

Re: Monitoring Multiple SME Boxes Remotely
« Reply #36 on: June 26, 2008, 12:00:43 AM »
Gert

Thanks for the quick reply. I apparently had the hard drive failure prior to installing NRSM and when it showed the raid configuration I selected OK. This is where I went wrong because I didn't look at the raid configuration. One other feature I would really like to see is NRSM to show the OS and OS Version. This would help me keep up with which machines need to be updated. I have 67 servers that I try to keep up with and this program will be of great help. Thanks for the time and effort you put into this

Sal

Re: Monitoring Multiple SME Boxes Remotely
« Reply #37 on: June 26, 2008, 05:14:16 AM »
Gert,

Does it only work if you have a raid setup? I tried other server with no raid it always says offline but with the server with raid it works fine.

Regards,
Rocel

Offline Gert

  • ****
  • 208
    • http://www.huge.co.za
Re: Monitoring Multiple SME Boxes Remotely
« Reply #38 on: June 26, 2008, 08:23:30 AM »
Does it only work if you have a raid setup? I tried other server with no raid it always says offline but with the server with raid it works fine.

Kryptos, you don't need a raid setup in order to monitor a server. Just make sure that remote ssh is enabled on the server and that it accepts standard passwords.

Offline Gert

  • ****
  • 208
    • http://www.huge.co.za
Re: Monitoring Multiple SME Boxes Remotely
« Reply #39 on: June 26, 2008, 08:28:07 AM »
One other feature I would really like to see is NRSM to show the OS and OS Version. This would help me keep up with which machines need to be updated.

Would there be more people interest in that feature? If so I would consider implementing it.

Re: Monitoring Multiple SME Boxes Remotely
« Reply #40 on: June 26, 2008, 11:59:07 AM »
Kryptos, you don't need a raid setup in order to monitor a server. Just make sure that remote ssh is enabled on the server and that it accepts standard passwords.

what you mean remote ssh enabled? I have enabled ssh but local connections only and the pc i use is in the same local network.

Regards,
Rocel

Offline Gert

  • ****
  • 208
    • http://www.huge.co.za
Re: Monitoring Multiple SME Boxes Remotely
« Reply #41 on: June 26, 2008, 12:37:30 PM »
Let me put it this way. You must be able to connect to the server from putty using a username and password. If the ssh is running on port 22 (the default) then you can leave the SSH Port field blank in Server Maintenance. Otherwise enter the post number. Please let me know if you come right.

Offline mercyh

  • *
  • 824
    • http://mercyh.org
Re: Monitoring Multiple SME Boxes Remotely
« Reply #42 on: June 26, 2008, 02:50:56 PM »
Gert,

If we are doing New Feature Requests here 8), I would like to see a date on the backup field. (Date and/or time of last successful backup.)

Re: Monitoring Multiple SME Boxes Remotely
« Reply #43 on: June 26, 2008, 04:58:13 PM »
Gert

I agree with MercyH. That is would be a great feature also.

Sal

Re: Monitoring Multiple SME Boxes Remotely
« Reply #44 on: June 26, 2008, 07:11:03 PM »
Quote
Gert,

If we are doing New Feature Requests here , I would like to see a date on the backup field. (Date and/or time of last successful backup.)

Since you are doing all the heavy lifting - and now it appears, taking requests - in addition to the last successfull backup, about displaying the next scheduled backup?

This looks like it will become a full-time job....
...

Offline Gert

  • ****
  • 208
    • http://www.huge.co.za
Re: Monitoring Multiple SME Boxes Remotely
« Reply #45 on: June 27, 2008, 02:52:51 AM »
Gert,

If we are doing New Feature Requests here 8), I would like to see a date on the backup field. (Date and/or time of last successful backup.)

Good Idea

Offline Gert

  • ****
  • 208
    • http://www.huge.co.za
Re: Monitoring Multiple SME Boxes Remotely
« Reply #46 on: June 27, 2008, 02:55:56 AM »
NRSM v0.3 available.
Added Date and Time of last successful backup.
Howto.txt changed.

http://ghp.homelinux.net/contribs/NRSM

Offline Gert

  • ****
  • 208
    • http://www.huge.co.za
Re: Monitoring Multiple SME Boxes Remotely
« Reply #47 on: June 27, 2008, 04:50:03 AM »
Found and fixed a bug with new feature. Please download both NRSM and post.pl again.

Offline mercyh

  • *
  • 824
    • http://mercyh.org
Re: Monitoring Multiple SME Boxes Remotely
« Reply #48 on: June 27, 2008, 03:47:06 PM »
Works great.  8)

wiki is updated
« Last Edit: June 27, 2008, 03:58:36 PM by mercyh »

Offline Gert

  • ****
  • 208
    • http://www.huge.co.za
Re: Monitoring Multiple SME Boxes Remotely
« Reply #49 on: June 27, 2008, 05:23:48 PM »
Thanx!

Offline Gert

  • ****
  • 208
    • http://www.huge.co.za
Re: Monitoring Multiple SME Boxes Remotely
« Reply #50 on: October 21, 2008, 03:20:50 AM »
New update available: http://ghp.homelinux.net/contribs/NRSM/NRSM_Update_v0.2_to_v0.45.zip

Version 0.45
   - All Servers are now updated simultaneously instead of one by one. (Much quicker!)
   - Added some color.
   - Replaced initial popup for Raid Status to "Not Verified".
« Last Edit: October 21, 2008, 03:22:27 AM by Gert »

Offline Gert

  • ****
  • 208
    • http://www.huge.co.za
Re: Monitoring Multiple SME Boxes Remotely
« Reply #51 on: February 21, 2009, 01:49:15 AM »
New update available: http://ghp.homelinux.net/contribs/NRSM/NRSM_Update_v0.2_to_v0.5.zip
Howto updated: http://ghp.homelinux.net/contribs/NRSM/HowTo%20(21-2-2009).txt

Version 0.5
   - Fixed bug with password encryption.
   - Added automatic resizing at startup.
   - Enhanced manual resizing.

Offline Franco

  • *
  • 1,171
    • http://contribs.org
Re: Monitoring Multiple SME Boxes Remotely
« Reply #52 on: February 21, 2009, 02:06:44 AM »
Hi,
How do I go about installing the latest version?
I see v0.3 and a update from v0.2 to v0.5.

Thanks,

Offline Gert

  • ****
  • 208
    • http://www.huge.co.za
Re: Monitoring Multiple SME Boxes Remotely
« Reply #53 on: February 21, 2009, 02:42:04 AM »
stuntshell, I was to lazy to create another installation package. Check the howto. Just install v0.3 and then update with v2 to v0.5.
« Last Edit: February 21, 2009, 02:44:34 AM by Gert »

Offline Gert

  • ****
  • 208
    • http://www.huge.co.za
Re: Monitoring Multiple SME Boxes Remotely
« Reply #54 on: February 21, 2009, 09:53:29 AM »
Sorry, forgot to use * to cover the password when adding a server. Please re-download. Also the encryption has changed, you'll need to re-enter all passwords, if you get "file not found error" open servers.mdb, remove all previous passwords. If you don't have M$ Access then start with a new database from scratch.

Offline mercyh

  • *
  • 824
    • http://mercyh.org
Re: Monitoring Multiple SME Boxes Remotely
« Reply #55 on: February 23, 2009, 10:15:57 PM »
Updated wiki page to include new version.

Offline Gert

  • ****
  • 208
    • http://www.huge.co.za
Re: Monitoring Multiple SME Boxes Remotely
« Reply #56 on: February 23, 2009, 10:30:30 PM »
Thanx Royce

Offline mercyh

  • *
  • 824
    • http://mercyh.org
Re: Monitoring Multiple SME Boxes Remotely
« Reply #57 on: February 23, 2009, 10:34:14 PM »
Thanks to you  :cool:. (You are doing all the work here.)

PS> I check affa with this every day.
« Last Edit: February 23, 2009, 11:44:01 PM by mercyh »

Offline rei

Re: Monitoring Multiple SME Boxes Remotely
« Reply #58 on: September 14, 2011, 09:46:24 AM »
Can anyone tell me how to monitor a SME server 7.5.1....in the server-gateway mode...
I just want a simple system to show the most important activity of the server.....I tried NRSM ...but can anyone explain me better the mean of those numbers..........?????????

Offline Gert

  • ****
  • 208
    • http://www.huge.co.za
Re: Monitoring Multiple SME Boxes Remotely
« Reply #59 on: September 14, 2011, 01:56:47 PM »
I am the developer of NRSM, maby I can help you, what numbers are you talking about?

Offline rei

Re: Monitoring Multiple SME Boxes Remotely
« Reply #60 on: September 14, 2011, 04:27:41 PM »
i tried first NRSM having the only server mode and it showed a snapshot like this that u have posted
md3 : active raid5 sdd1[3] sdc1[2] sdb1[1] sda1[0]
      2930279424 blocks level 5, 256k chunk, algorithm 2 [4/4] [UUUU]

md2 : active raid1 hda2[0]
      244091520 blocks [2/2] [UU]

md1 : active raid1 hda1[0]
      104320 blocks [2/2] [UU]

unused devices: <none>



can u explain me better what NRSM does? if i keep the server in the only server mode what is the benefit?
I'm preparing a thesis about sme server and I just want a system to prove that it works and sme is better than another server.........

Offline mercyh

  • *
  • 824
    • http://mercyh.org
Re: Monitoring Multiple SME Boxes Remotely
« Reply #61 on: September 14, 2011, 04:41:17 PM »
That screen will show the first time NRSM runs. You will get the same output if you issue
Code: [Select]
cat /proc/mdstatfrom the command line.

Once you accept that screen (be sure your raid is syncronized and clean before you do), if anything changes and raid goes out of sync or a disk goes down, NRSM will report an error in the raid status of that server.

For more information on SME raid see the following:

http://wiki.contribs.org/Raid


Offline Gert

  • ****
  • 208
    • http://www.huge.co.za
Re: Monitoring Multiple SME Boxes Remotely
« Reply #62 on: September 14, 2011, 05:44:58 PM »
Well said, thanx Royce

Re: Monitoring Multiple SME Boxes Remotely
« Reply #63 on: April 06, 2012, 01:31:22 PM »
Hi all,

i'm trying to install NRSM V.0.3 on a win 7 ultimate X64 but i got this error while installing:
"c:\windows\system32\expsrv.dll  access violation occurred while copying the file"

and the same for file vbajet32.dll

also got error in:

"an error has occurred while registering the file 'c:\program files (x86)\common files\microsoft shared\dao\dao350.dll' "
what's the problem?

thx

Offline Gert

  • ****
  • 208
    • http://www.huge.co.za
Re: Monitoring Multiple SME Boxes Remotely
« Reply #64 on: April 06, 2012, 04:25:59 PM »
Hi killrob

I am sure you can ignore the errors and it should still work. Alternatively you can just download and install VB6 runtime files and just extract the nrsm.exe files out of the package. The program does work in win7. Let me know if you have success.

Re: Monitoring Multiple SME Boxes Remotely
« Reply #65 on: April 06, 2012, 04:52:57 PM »
thx for the reply Gert, i've installed the VB6 runtime files but when installing the program got same errors i wrote before.

[img=http://s15.postimage.org/7ne1bl76v/NRSM.jpg]

is this the normal status when monitoring?

Offline Gert

  • ****
  • 208
    • http://www.huge.co.za
Re: Monitoring Multiple SME Boxes Remotely
« Reply #66 on: April 06, 2012, 06:11:02 PM »
You can ignore the errors. Just double click on the server name and choose yes. Then it should work just fine.