Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: mej 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
-
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.
-
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.
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
...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
-
MeJ,
I think there are rpms available for this in other repositories. SME is just CentOS 4.3.
-
> 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.
-
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.
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
...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..
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
/sbin/e-smith/expand-template /etc/yum.conf
rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
yum --enablerepo=dag --enablerepo=base --enablerepo=updates install nagios-nsca
The above may work....
EDIT: Forgot to expand template.
-
That looks right to me William. Very nice of you to put those instructions tegether.
-
Suppose to be an edit not reply.
-
Thanks to all!