Koozali.org: home of the SME Server

Nagios or other monitoring

Offline jameswilson

  • *
  • 792
  • +0/-0
    • Security Warehouse, trade security equipment
Nagios or other monitoring
« on: July 24, 2006, 02:32:11 AM »
Hi all sme fans.
I am trying to move everything off my old server (cent os) to sme cos i love it and its a dman site easier to manage than my old server. But i cant for the life of me get nagios accross. I have tried the rpm but obvioulsy that failed as its a el4 rpm and knows nothing of the ibay i want to put it in. I have tried compiling, added gcc and all seems ok, i told it about the ibay but god knows where its put the files!
All im trying to do is to monitor a few key servers http mainly but some mail servers also, nothing overly fancy. Is nagios overkill should i try something else. I looked a zabbix but it fails on mysql.h and i dont want to mess to much where im not 100% sure.

Basically i suppose im asking has anyone succesfully got nagios 2.5 working on sme, or do you have another monioring package of choice, either way would you mind sharing your knowledge??

Cheers
James

Offline brianr

  • *
  • 990
  • +2/-0
Nagios or other monitoring
« Reply #1 on: July 25, 2006, 01:21:53 PM »
I am also interested in Nagios under SME7, I used to use it under SME6, but as you say the SME6 rpm does not work, so I am currenlty running it on centos 4.3 box, and I have compiled all the programs, although not yet got the "trends" stuff to compile properly - some problems with the "gd", "png" and "jpeg" libraries.

Under Centos the default install is /usr/local/nagios perhaps your files are there?

It is my interntion to move the compiled system back to the SME7 box at some point, but I have little time at the moment.
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

dswillia

Nagios or other monitoring
« Reply #2 on: July 26, 2006, 05:53:28 AM »

Offline jameswilson

  • *
  • 792
  • +0/-0
    • Security Warehouse, trade security equipment
Nagios or other monitoring
« Reply #3 on: July 26, 2006, 09:31:09 AM »
I looked at that as it looked pretty but i had problems with it and mysql. If anyone has got it running on sme then id love to know the process
James

Offline jameswilson

  • *
  • 792
  • +0/-0
    • Security Warehouse, trade security equipment
Nagios or other monitoring
« Reply #4 on: September 24, 2006, 01:24:07 AM »
Anyone any suggestions, cheers

Offline jonash

  • ****
  • 120
  • +0/-0
Nagios or other monitoring
« Reply #5 on: September 25, 2006, 07:06:58 AM »
I have used Big Brother, but not on SME.

It stores all data in files as default.
Lots of addons, to monitor almost everything.

It's free....


www.bb4.org



Jonas
.........

mej

Nagios or other monitoring
« Reply #6 on: September 25, 2006, 09:06:50 PM »
Quote from: "jonash"

It's free....


www.bb4.org

Jonas


...but only for non-commercial purposes.

BigSister and Nagios and manyothers are GPLfree

MeJ

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Zabbix
« Reply #7 on: September 29, 2006, 12:56:21 PM »
Hi

I got Zabbix 1.1.1 working on SME7
But I had to install a LOT of packages... and take NO NOTES (sorry!)

I've installed gcc and created static binaries to make an rpm but I'm w/o ANY time so this is stopped.

I can send a tar to anyone wishing to try and/or help with RPM.
Just ask me at jader &DOT& marasca $AT$ gmail #DOT# com .

Or try to download from: http://www.linuxfacil.net/publico/files/zabbix-1.1.1.tar
and a spec file (NOT TESTED) http://www.linuxfacil.net/publico/files/zabbix.spec

Good luck.

Jáder
...

Offline kmccarn

  • ****
  • 112
  • +0/-0
Nagios or other monitoring
« Reply #8 on: September 29, 2006, 01:11:30 PM »
I am going another direction entirely...

I am working with the vmware nagios appliance....

http://www.vmware.com/vmtn/appliances/directory/330

I haven't tried putting the vmware server on a SME yet - but once I get the nagios fully configured - it won't be hard to move.
Kevin in WV 8-)......

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Nagios or other monitoring
« Reply #9 on: September 29, 2006, 02:50:47 PM »
Quote from: "kmccarn"
I am going another direction entirely...

I am working with the vmware nagios appliance....

http://www.vmware.com/vmtn/appliances/directory/330

I haven't tried putting the vmware server on a SME yet - but once I get the nagios fully configured - it won't be hard to move.


For when you get around to putting VMware on your SME...

http://no.longer.valid/phpwiki/index.php/How-To%20install%20VMware%20free%20server%20on%20a%20SME%207.0%20Host
Regards,
William

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

Offline andy_wismer

  • *
  • 107
  • +0/-0
    • ANWI-Net
Big Brother
« Reply #10 on: November 22, 2006, 09:49:13 PM »
As an old "Brother" who's used big brother for more than 8 years now (!) here's my 2 c$:

If anyone's interested, I do have a few big-brother installations running on various sme 6/7 servers. It does run well.

I can also provide a raw how-to, works for both versions (6.0.1 and 7.0 final)...

At least until I figure out how to du a mass-rollout of Nagios or something else on SME, GPLed would be a requirement on my side  ;-)

The setup entails password https access to the bb web-pages, custom-templates

In some setups bb monitors Linux, Solaris, MacOS, MAc OS X (both!) Windoze, SME and stuff like switches, cameras, wireless-aps, etc..

If anyone wants to see my productive bb system I'm using:

https://www.anwi.net/bb/

User: sme-bb
Password: contribs

This will only be open till sometime in December, after that it's closed again...

SME is a cool Server, my thanks to the creators/developers and all who contribute!

Andy

drywalldude

cacti and nagios
« Reply #11 on: November 26, 2006, 01:54:09 PM »
I just got cacti up and running with snmp support on my sme7 box. Cacti alone might meet your needs, but there is a lot of work going on integration of cacti and nagios here:  http://forums.cacti.net/about15267.html

Offline sedangbelajar

  • **
  • 30
  • +0/-0
Re: Zabbix
« Reply #12 on: October 04, 2007, 10:44:53 PM »
Hi

I got Zabbix 1.1.1 working on SME7
But I had to install a LOT of packages... and take NO NOTES (sorry!)

I've installed gcc and created static binaries to make an rpm but I'm w/o ANY time so this is stopped.

I can send a tar to anyone wishing to try and/or help with RPM.
Just ask me at jader &DOT& marasca $AT$ gmail #DOT# com .

Or try to download from: http://www.linuxfacil.net/publico/files/zabbix-1.1.1.tar
and a spec file (NOT TESTED) http://www.linuxfacil.net/publico/files/zabbix.spec

Good luck.

Jáder

Whould you give detail...how to start install ZABBIC..
i'm very interesting
regards

Offline kryptos

  • *****
  • 245
  • +0/-0
Re: Nagios or other monitoring
« Reply #13 on: October 06, 2007, 04:47:21 AM »
Hi All,

We have a working nagios on SME 7. See below for the instructions. or you can follow from this link http://forums.contribs.org/index.php?topic=35760.0

Installing Nagios 2.9 on SME 7.1.3
First enable repo on Dag's

1. wget http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
2. rpm --import RPM-GPG-KEY.dag.txt
3. From console do:
   /sbin/e-smith/db yum_repositories set dag repository \
   Name 'Dag - EL4' \
   BaseURL 'http://apt.sw.be/redhat/el4/en/$basearch/dag' \
   EnableGroups no \
   GPGCheck yes \
   GPGKey http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt \
   Visible no \
   Exclude freetype,htop,iptraf,rsync,syslinux \
   status disabled

4. expand-template /etc/yum.conf

Installing

1. yum --enablerepo=dag install nagios*
2. signal-event post-upgrade And signal-event reboot
3. mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
4. cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
5. vi 92nagios
6. paste this the code below and save/exit

{
    $OUT = "";
    my $allow = 'all';
    my $pass = '0';
    my $satisfy = 'all';
    my $name = $nagios{'Name'} || 'Nagios';
   
    for ('exit-if-none')
    {
      if ($nagios{'PublicAccess'})
      {
          if ($nagios{'PublicAccess'} eq 'none')
          {
           next;
          }
          elsif ($nagios{'PublicAccess'} eq 'local')
          {
            $allow   = $localAccess;
            $pass    = 0;
            $satisfy = 'all';
          }
          elsif ($nagios{'PublicAccess'} eq 'local-pw')
          {
            $allow   = $localAccess;
            $pass    = 1;
            $satisfy = 'all';
          }
          elsif ($nagios{'PublicAccess'} eq 'global')
          {
            $allow   = 'all';
            $pass    = 0;
            $satisfy = 'all';
          }
          elsif ($nagios{'PublicAccess'} eq 'global-pw')
          {
            $allow   = 'all';
            $pass    = 1;
            $satisfy = 'all';
          }
          elsif ($nagios{'PublicAccess'} eq 'global-pw-remote')
          {
            $allow   = $localAccess;
            $pass    = 1;
            $satisfy = 'any';
          }
      }
     
      $OUT .= "#------------------------------------------------------------\n";
      $OUT .= "# nagios - $name\n";
      $OUT .= "#------------------------------------------------------------\n";
     
      {
        if (exists $nagios{'URL'})
        { $OUT .= "Alias  /$nagios{'URL'}  /usr/share/nagios\n"; }
      }
     
      $OUT .= "Alias  /nagios/cgi-bin  /usr/lib/nagios/cgi\n";
      $OUT .= "\n";
      $OUT .= "<Directory /usr/lib/nagios/cgi>\n";
      $OUT .= "    options ExecCGI\n";
      $OUT .= "    order deny,allow\n";
      $OUT .= "    deny from all\n";
      $OUT .= "    allow from $allow\n";
      if ($pass)
      {
          $OUT .= "    AuthName \"$name\"\n";
          $OUT .= "    AuthType Basic\n";
          $OUT .= "    AuthExternal pwauth\n";
          $OUT .= "    Satisfy $satisfy\n";
      }
      $OUT .= "    AddType application/x-httpd-php .php .php3 .phtml\n";
      $OUT .= "</Directory>\n";

      $OUT .= "Alias  /nagios  /usr/share/nagios\n";
      $OUT .= "\n";
      $OUT .= "<Directory /usr/share/nagios>\n";
      $OUT .= "    order deny,allow\n";
      $OUT .= "    deny from all\n";
      $OUT .= "    allow from $allow\n";
      if ($pass)
      {
          $OUT .= "    AuthName \"$name\"\n";
          $OUT .= "    AuthType Basic\n";
          $OUT .= "    AuthExternal pwauth\n";
          $OUT .= "    require valid-user\n";
          $OUT .= "    Satisfy $satisfy\n";
      }
      $OUT .= "    AddType application/x-httpd-php .php .php3 .phtml\n";
      $OUT .= "</Directory>\n";
    }
}

7. config set nagios service Name Nagios PublicAccess local-pw
8. expand-template /etc/httpd/conf/httpd.conf

restarting httpd
9.   /etc/rc7.d/S86httpd-e-smith restart
10. /etc/rc7.d/S86httpd-admin restart

you'll need to setup nagios first, so go edit your /etc/nagios/<files> and then do a
10./etc/init.d/nagios start

To automatic start nagios

11. ln -s /etc/init.d/nagios /etc/rc.d/rc7.d/S99nagios


Pre-flight Check nagios configuration

1.  /usr/bin/nagios -v /etc/nagios/nagios.cfg
or
nagios -v /etc/nagios/nagios.cfg

Right now you can access nagios thru this link https://your-server-ip-address/nagios



Offline sedangbelajar

  • **
  • 30
  • +0/-0
Re: Nagios or other monitoring
« Reply #14 on: October 06, 2007, 10:25:14 PM »
i'm stop in command
expand-template /etc/httpd/conf/httpd.conf

because
WARNING in /etc/e-smith/templates-custom//etc/httpd/conf/httpd.conf/92nagios: ERROR: Cannot process template /etc/e-smith/templates-custom//etc/httpd/conf/httpd.conf/92nagios: Unmatched close brace at line 90
 at /sbin/e-smith/expand-template line 45

how to make it better ?
when i push until finish, the result only

Not Found

The requested URL /nagios was not found on this server.
« Last Edit: October 06, 2007, 10:28:28 PM by sedangbelajar »