[Newbie] Smaller, lighter Xymon based program?
Hi guys,
I'm very new to this Xymon-land, spent some time to install and configure Xymon on my virtual machine runs CentOS 6.3
Here's my thought, since I have very limited skill in this monitoring field, my target is only to have a program which can test the 'ping' only.
Is that doable if I can use Xymon and disable some of the functions? Has anyone ever think about this before? Maybe some hint or guides, thanks!
Btw, I'm working on this as my school project, hopefully I didn't break/offend anyone's work and copyright, if so, please let me know.
Many thanks :D
-- Best, James
Yes, that's the default for any device listed in hosts.cfg (with name and IP address) that doesn't run a Xymon client. But why would you want to give up visibility of all other functionality that your devices provide?
On 27 November 2012 11:28, James <kfc.android at gmail.com> wrote:
Hi guys,
I'm very new to this Xymon-land, spent some time to install and configure Xymon on my virtual machine runs CentOS 6.3
Here's my thought, since I have very limited skill in this monitoring field, my target is only to have a program which can test the 'ping' only.
Is that doable if I can use Xymon and disable some of the functions? Has anyone ever think about this before? Maybe some hint or guides, thanks!
Btw, I'm working on this as my school project, hopefully I didn't break/offend anyone's work and copyright, if so, please let me know.
Many thanks :D
-- Best, James
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
I don't think you need to do anything special to make this happen, just only define the "conn" test which is on by default (so your hosts.cfg will really just have hostnames).
From: James [mailto:kfc.android at gmail.com] Sent: Monday, November 26, 2012 07:28 PM To: xymon at xymon.com <xymon at xymon.com> Subject: [Xymon] [Newbie] Smaller, lighter Xymon based program?
Hi guys,
I'm very new to this Xymon-land, spent some time to install and configure Xymon on my virtual machine runs CentOS 6.3
Here's my thought, since I have very limited skill in this monitoring field, my target is only to have a program which can test the 'ping' only.
Is that doable if I can use Xymon and disable some of the functions? Has anyone ever think about this before? Maybe some hint or guides, thanks!
Btw, I'm working on this as my school project, hopefully I didn't break/offend anyone's work and copyright, if so, please let me know.
Many thanks :D
-- Best, James
Thanks for the prompt reply guys, really appreciate that. The reason why I want to modify Xymon is because I'm working on a small class project which only need a simple networking-related function (in my case: ping) with minimal size of code.
I understand Xymon is powerful and runs fast in most of cases, but the best case is to make some minor changes based on Xymon simply because I can't just take Xymon and turn it in as my project.
My optimal goal is: to use minimal amount of code to perform a ping test, but keep the framework and style of Xymon. (Now I'm reading Xymonping.c file under /xymonnet folder)
Anyone has idea about how I can achieve this goal? Any opinion will be greatly appreciated! Thanks again!
James
Xymon seems like a LOT of overhead for a simple ping test.
What about something like bash?
while true; do until ping -c1 -W2 192.168.1.1 &>/dev/null; do sleep 3 done
echo "ping success"
Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
On Mon, Nov 26, 2012 at 9:44 PM, James <kfc.android at gmail.com> wrote:
Thanks for the prompt reply guys, really appreciate that. The reason why I want to modify Xymon is because I'm working on a small class project which only need a simple networking-related function (in my case: ping) with minimal size of code.
I understand Xymon is powerful and runs fast in most of cases, but the best case is to make some minor changes based on Xymon simply because I can't just take Xymon and turn it in as my project.
My optimal goal is: to use minimal amount of code to perform a ping test, but keep the framework and style of Xymon. (Now I'm reading Xymonping.c file under /xymonnet folder)
Anyone has idea about how I can achieve this goal? Any opinion will be greatly appreciated! Thanks again!
James
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
I guess the problem is James wants the web display as well, though I agree it seems like a huge amount of effort to strip out all the things you don't need just to get the things that you want.
@James, since you are looking at the code for Xymon you probably understand C. I would suggest, without doing the project for you, that you use the basic xymonping.c code for the networking stuff and write your own HTML provider. It can be as simple as something that generate new HTML pages every 5 minutes and uses Apache as the web server...
|\/|
Martin Ward Manager, Technical Services Service Operations
DDI:+44 (0) 20 7863 5218 / Fax: +44 (0)20 7863 9999 / www.colt.net<http://www.colt.net/> Colt Technology Services, Unit 12, Powergate Business Park, Volt Avenue, Park Royal, London, NW10 6PW, UK.
Help reduce your carbon footprint | Think before you print. Registered in England and Wales, registered number 02452736, VAT number GB 645 4205 50
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Josh Luthman Sent: 27 November 2012 02:55 To: James Cc: xymon at xymon.com Subject: Re: [Xymon] [Newbie] Smaller, lighter Xymon based program?
Xymon seems like a LOT of overhead for a simple ping test.
What about something like bash?
while true; do until ping -c1 -W2 192.168.1.1 &>/dev/null; do sleep 3 done
echo "ping success"
Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
On Mon, Nov 26, 2012 at 9:44 PM, James <kfc.android at gmail.com<mailto:kfc.android at gmail.com>> wrote: Thanks for the prompt reply guys, really appreciate that. The reason why I want to modify Xymon is because I'm working on a small class project which only need a simple networking-related function (in my case: ping) with minimal size of code.
I understand Xymon is powerful and runs fast in most of cases, but the best case is to make some minor changes based on Xymon simply because I can't just take Xymon and turn it in as my project.
My optimal goal is: to use minimal amount of code to perform a ping test, but keep the framework and style of Xymon. (Now I'm reading Xymonping.c file under /xymonnet folder)
Anyone has idea about how I can achieve this goal? Any opinion will be greatly appreciated! Thanks again!
James
Xymon mailing list Xymon at xymon.com<mailto:Xymon at xymon.com> http://lists.xymon.com/mailman/listinfo/xymon
[Colt Disclaimer]
This email is from an entity of the Colt group of companies.
Colt Group S.A., K2 Building, Forte 1, 2a rue Albert Borschette, L-1246 Luxembourg, R.C.S. B115679.
Corporate and contact information for our entities can be found at
http://colt.net/uk/en/Colt-Group-of-Companies/index.htm.
Internet communications are not secure and Colt does not accept
responsibility for the accurate transmission of this message. Content
of this email or its attachments is not legally or contractually binding
unless expressly previously agreed in writing by Colt
One of my favorite professors ever told us that if he caught us writing code that duplicated something available on the net, we would fail, because out in the real world you never want to waste your employer's time re-inventing the wheel.
Putting on my former-CS-lab-manager hat, I'd say: think about what you're trying to learn and what your professor wants you to show. Are you working on network programming, or web app programming, or using a framework, or is this part of a bigger project or what? Xymon has a lot of pieces because it was designed to monitor multiple sorts of sources and do multiple sorts of notification.
In my own life I've learned the hard way that it's almost always easier to write what you need and take * bits and pieces* of code that can help, rather than trying to strip something complex down to bits and pieces. Invariably, things break and you end up going down ratholes trying to fix problems in parts of the code that you don't understand and don't need. Xymon has a *lot* of pieces.
Here's an analogy: if you're given the assignment of building a rowboat, don't try to build one by taking a tugboat and removing all the extra pieces. You'll probably end up with something that is the wrong size and won't float.
Thanks, Martin! I think you got my point. My idea is just to keep Xymon's ping and web-page display function, like a "little Xymon" program which is based on Xymon but only have very limited functionality.
Maybe I can use the layout of how Xymon display the result and strip down the options I don't need? Or, if possible, could you please give me some hint about how to create my own HTML provider?
Betsy, Thanks for your advise, I learned that from one of my coding class, we were given the full source code of a working program, and our instructor asked us to modify it to meet his requirement. (He purposely did this just want to let us know to write our own code is smarter to copy/modify someone's code) But this time is different, we were approved to use any open source program and modify it to meet our need. Maybe I can do as Martin said: take the part which I am needed, and make it a smaller program. Thanks for the suggestion, I really appreciate time you've spent.
James
I would just compile the latest Xymon server with xymonping. Configure Apache2 as a webserver. Install Xymon and Edit xymonserver.cfg to your setup. Populate hosts.cfg with the hosts you want, you get a xymon page with all your ping hosts. (conn) That is a fairly basic and simple solution. Even if all that other code is there it is not really used.
4.3.10 has prepared packages, ready to install for a bunch of different distributions. (no compile req)
Roland
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of James Sent: Wednesday, 28 November 2012 8:23 AM To: betsy.schwartz at gmail.com; Martin.Ward at colt.net Cc: xymon at xymon.com Subject: Re: [Xymon] [Newbie] Smaller, lighter Xymon based program?
Thanks, Martin! I think you got my point. My idea is just to keep Xymon's ping and web-page display function, like a "little Xymon" program which is based on Xymon but only have very limited functionality.
Maybe I can use the layout of how Xymon display the result and strip down the options I don't need? Or, if possible, could you please give me some hint about how to create my own HTML provider?
Betsy, Thanks for your advise, I learned that from one of my coding class, we were given the full source code of a working program, and our instructor asked us to modify it to meet his requirement. (He purposely did this just want to let us know to write our own code is smarter to copy/modify someone's code) But this time is different, we were approved to use any open source program and modify it to meet our need. Maybe I can do as Martin said: take the part which I am needed, and make it a smaller program. Thanks for the suggestion, I really appreciate time you've spent.
James
Thanks for the reply, Roland, What you pointed seems like a very straight forward process, however, I'm still figuring out all those .cfg and .c files in Xymon (I call Xymon a package because it includes a lot of folders/files) and I guess it takes a while to get a good understanding. What I am going to do now is to continue my study on "Xymonping.c" and then "Xymonserver.cfg" One silly question, is Xymon (in my case Xymon-4.3.10) shipped with both server and client? If so, I can ignore those files which belong to client side, right? Thanks for the advisory, I really appreciate that :D
James
2012/11/27 Roland Soderstrom <Rolands at logicaltech.com.au>
I would just compile the latest Xymon server with xymonping.****
Configure Apache2 as a webserver.****
Install Xymon and Edit xymonserver.cfg to your setup.****
Populate hosts.cfg with the hosts you want, you get a xymon page with all your ping hosts. (conn)****
That is a fairly basic and simple solution.****
Even if all that other code is there it is not really used.****
4.3.10 has prepared packages, ready to install for a bunch of different distributions. (no compile req)****
**- **Roland****
*From:* xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] *On Behalf Of *James *Sent:* Wednesday, 28 November 2012 8:23 AM *To:* betsy.schwartz at gmail.com; Martin.Ward at colt.net
*Cc:* xymon at xymon.com *Subject:* Re: [Xymon] [Newbie] Smaller, lighter Xymon based program?****
Thanks, Martin! I think you got my point.****
My idea is just to keep Xymon's ping and web-page display function, like a "little Xymon" program****
which is based on Xymon but only have very limited functionality.****
Maybe I can use the layout of how Xymon display the result and strip down the options I don't need?****
Or, if possible, could you please give me some hint about how to create my own HTML provider?****
Betsy,****
Thanks for your advise, I learned that from one of my coding class, we were given the full source code ****
of a working program, and our instructor asked us to modify it to meet his requirement. (He purposely****
did this just want to let us know to write our own code is smarter to copy/modify someone's code)****
But this time is different, we were approved to use any open source program and modify it to meet****
our need. Maybe I can do as Martin said: take the part which I am needed, and make it a smaller program.****
Thanks for the suggestion, I really appreciate time you've spent.****
James****
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
-- Best, James
Yes, client is only software meant to run on the client and send back local stats to the server. Even on a regular install, it's not required for every host.
From: James [mailto:kfc.android at gmail.com] Sent: Tuesday, November 27, 2012 10:57 PM To: Roland Soderstrom <Rolands at logicaltech.com.au> Cc: xymon at xymon.com <xymon at xymon.com> Subject: Re: [Xymon] [Newbie] Smaller, lighter Xymon based program?
Thanks for the reply, Roland, What you pointed seems like a very straight forward process, however, I'm still figuring out all those .cfg and .c files in Xymon (I call Xymon a package because it includes a lot of folders/files) and I guess it takes a while to get a good understanding. What I am going to do now is to continue my study on "Xymonping.c" and then "Xymonserver.cfg" One silly question, is Xymon (in my case Xymon-4.3.10) shipped with both server and client? If so, I can ignore those files which belong to client side, right? Thanks for the advisory, I really appreciate that :D
James
2012/11/27 Roland Soderstrom <Rolands at logicaltech.com.au<mailto:Rolands at logicaltech.com.au>> I would just compile the latest Xymon server with xymonping. Configure Apache2 as a webserver. Install Xymon and Edit xymonserver.cfg to your setup. Populate hosts.cfg with the hosts you want, you get a xymon page with all your ping hosts. (conn) That is a fairly basic and simple solution. Even if all that other code is there it is not really used.
4.3.10 has prepared packages, ready to install for a bunch of different distributions. (no compile req)
Roland
From: xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com> [mailto:xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com>] On Behalf Of James Sent: Wednesday, 28 November 2012 8:23 AM To: betsy.schwartz at gmail.com<mailto:betsy.schwartz at gmail.com>; Martin.Ward at colt.net<mailto:Martin.Ward at colt.net>
Cc: xymon at xymon.com<mailto:xymon at xymon.com> Subject: Re: [Xymon] [Newbie] Smaller, lighter Xymon based program?
Thanks, Martin! I think you got my point. My idea is just to keep Xymon's ping and web-page display function, like a "little Xymon" program which is based on Xymon but only have very limited functionality.
Maybe I can use the layout of how Xymon display the result and strip down the options I don't need? Or, if possible, could you please give me some hint about how to create my own HTML provider?
Betsy, Thanks for your advise, I learned that from one of my coding class, we were given the full source code of a working program, and our instructor asked us to modify it to meet his requirement. (He purposely did this just want to let us know to write our own code is smarter to copy/modify someone's code) But this time is different, we were approved to use any open source program and modify it to meet our need. Maybe I can do as Martin said: take the part which I am needed, and make it a smaller program. Thanks for the suggestion, I really appreciate time you've spent.
James
Xymon mailing list Xymon at xymon.com<mailto:Xymon at xymon.com> http://lists.xymon.com/mailman/listinfo/xymon
-- Best, James
participants (7)
-
betsy.schwartz@gmail.com
-
jlaidman@rebel-it.com.au
-
josh@imaginenetworksllc.com
-
kfc.android@gmail.com
-
Martin.Ward@colt.net
-
novosirj@umdnj.edu
-
Rolands@logicaltech.com.au