Koozali.org: home of the SME Server

How to build a Development platform - pretty please help?

mej

How to build a Development platform - pretty please help?
« on: September 29, 2006, 01:49:59 PM »
...apologies if this is covered anywhere, I did a search but did not find a clear answer.

I need to build a few small components to monitor SME7s with Nagios (running elsewhere). I have had no answers in another thread, so...

With 5/6 the way to go was to install all the compilers and libraries and so on on an SME build box.

With 7, I have seen a thread saying to build a CentOS4 box and compile on there.

Could someone give/point me to a DEFINITIVE answer as to how to proceed?

Thanks!

MeJ

Offline jfarschman

  • *
  • 406
  • +0/-0
How to build a Development platform - pretty please help?
« Reply #1 on: September 29, 2006, 05:14:47 PM »
First of all... have you ever used Nagios before?  It takes a bit of setting up.  You may find that it's not worth the effort.  With that said I would try the following methodology:

wget http://dag.wieers.com/packages/nagios/nagios-2.3.1-1.el4.rf.i386.rpm
yum localinstall nagios-2.3.1-1.el4.rf.i386.rpm

if that doesn't you will probably get errors asking for other pieces of software that aren't available from the normal YUM repositories set on the SME  You can poke around the other repos with the command

yum search <name_of_missing_rpm> --enablerepo=<name_of_repo>

When you find them all you can go back to the original command and add on the name of the repo where the code is.  That should work

yum localinstall nagios-2.3.1-1.el4.rf.i386.rpm --enablerepo=<name_of_repo>

Don't remember the names of the repositories?  Try:

db yum_repositories show |grep repository

Good luck.  Also... why not post your results... if you make it look easy maybe I'll give nagios antoher try.
Jay Farschman
ICQ - 60448985
jay@hitechsavvy.com

mej

How to build a Development platform - pretty please help?
« Reply #2 on: September 29, 2006, 11:31:58 PM »
Quote from: "jfarschman"
First of all... have you ever used Nagios before?  It takes a bit of setting up.  You may find that it's not worth the effort.


Thanks jf, but I have been running Nagios for years. I run it on a Debian box with very good connectivity. I don't want to run it on SME7s, I want to monitor SME 7s.

What I need to know is the canonical way to build an SME7 box for development.

Quote
With that said I would try the following methodology:

wget http://dag.wieers.com/packages/nagios/nagios-2.3.1-1.el4.rf.i386.rpm
yum localinstall nagios-2.3.1-1.el4.rf.i386.rpm

This does not have the bits I want. I need to compile them (unless anyone has NSCA and other stuff compiled for SME 7? No? OK).

Thanks for the thought though :D

Quote
...if you make it look easy maybe I'll give nagios antoher try.


I'd certainly agree that Nagios is a PITA to get set up. I struggled with it for a month the first time and then paid someone to fix it :)

However I know it fairly well now and can make it work all by myself

(...mostly!)  :D

MeJ

Offline jfarschman

  • *
  • 406
  • +0/-0
How to build a Development platform - pretty please help?
« Reply #3 on: September 29, 2006, 11:45:34 PM »
MeJ,

  I think there are rpms available for this in other repositories.  SME is just CentOS 4.3.
Jay Farschman
ICQ - 60448985
jay@hitechsavvy.com

Offline gregswallow

  • *
  • 651
  • +1/-0
How to build a Development platform - pretty please help?
« Reply #4 on: September 30, 2006, 07:44:58 AM »
> This does not have the bits I want. I need to compile them (unless anyone has NSCA and other stuff compiled for SME 7? No? OK).

Yes. First link...
http://www.google.ca/search?q=nagios+nsca+rpm

> With 7, I have seen a thread saying to build a CentOS4 box and compile on there.

Yes, you can build any rpms for SME7 on CentOS4.  But you can also use any rpms already made for EL4 (RHEL4/CentOS4) on SME7 without having to rebuild them.

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
How to build a Development platform - pretty please help?
« Reply #5 on: October 01, 2006, 12:42:03 PM »
Quote from: "mej"
Quote from: "jfarschman"
First of all... have you ever used Nagios before?  It takes a bit of setting up.  You may find that it's not worth the effort.


Thanks jf, but I have been running Nagios for years. I run it on a Debian box with very good connectivity. I don't want to run it on SME7s, I want to monitor SME 7s.

What I need to know is the canonical way to build an SME7 box for development.

Quote
With that said I would try the following methodology:

wget http://dag.wieers.com/packages/nagios/nagios-2.3.1-1.el4.rf.i386.rpm
yum localinstall nagios-2.3.1-1.el4.rf.i386.rpm

This does not have the bits I want. I need to compile them (unless anyone has NSCA and other stuff compiled for SME 7? No? OK).

Thanks for the thought though :D

Quote
...if you make it look easy maybe I'll give nagios antoher try.


I'd certainly agree that Nagios is a PITA to get set up. I struggled with it for a month the first time and then paid someone to fix it :)

However I know it fairly well now and can make it work all by myself

(...mostly!)  :D

MeJ


Put togetther from info in various posts..

Code: [Select]
db yum_repositories set dag repository \
 BaseURL http://apt.sw.be/redhat/el4/en/'$basearch'/dag \
 EnableGroups yes \
 GPGCheck yes \
 Name 'Red Hat Enterprise '$releasever' - RPMforge.net - dag' \
 Visible no \
 status disabled


Code: [Select]
/sbin/e-smith/expand-template /etc/yum.conf

Code: [Select]
rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt

Code: [Select]
yum --enablerepo=dag --enablerepo=base --enablerepo=updates install nagios-nsca

The above may work....

EDIT: Forgot to expand template.
Regards,
William

IF I give advise.. It's only if it was me....

Offline gregswallow

  • *
  • 651
  • +1/-0
How to build a Development platform - pretty please help?
« Reply #6 on: October 01, 2006, 09:31:12 PM »
That looks right to me William.  Very nice of you to put those instructions tegether.

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
How to build a Development platform - pretty please help?
« Reply #7 on: October 02, 2006, 04:03:03 AM »
Suppose to be an edit not reply.
Regards,
William

IF I give advise.. It's only if it was me....

mej

How to build a Development platform - pretty please help?
« Reply #8 on: October 11, 2006, 11:37:43 AM »
Thanks to all!