Re: [Nagios-users] Nagios on CentOS

2011-12-28 Thread Alain Williams
On Wed, Dec 28, 2011 at 09:07:10AM -0800, Steve Glasser wrote:
 I would be very cautious about installing third-party rpms on a 
 production server.  You may introduce dependency issues which will 
 affect future system updates.

I use Dag on many machines, it is rare to have a problem.
It is very much worth installing yum-priorities and making base  update
have low values.

 Compiling nagios from source is dead simple and well documented.

-- 
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT 
Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: 
http://www.phcomp.co.uk/contact.php
#include std_disclaimer.h

--
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios on CentOS

2011-12-27 Thread Alain Williams
On Tue, Dec 27, 2011 at 08:01:49PM +0530, Jatin wrote:
 Hi
 
 I have earlier used Nagios on Fedora 13 and was successful in installing 
 Nagios without any hiccups using the quick installation guide meant for 
 Fedora. I wanted to know if i can follow the same steps for installing 
 Nagios on CentOS assuming that i have a default CentOS installation.
 
 Also let me from which version of CentOS would it be good to install the 
 latest Nagios.

Choose the version of centos for the applications that you run, not for
nagios. If there is no compelling reason - use the latest - centos 6.
I have run nagios on centos for many years, it works well ... the main problem
is that the default config has changed several times, directories changed, etc,
which has broken it several times ... not to hard to get working again, but
a pain.

-- 
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT 
Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: 
http://www.phcomp.co.uk/contact.php
#include std_disclaimer.h

--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios on CentOS

2011-12-27 Thread Alain Williams
On Tue, Dec 27, 2011 at 11:02:51AM -0500, Chris Beattie wrote:
 On 12/27/2011 9:31 AM, Jatin wrote:
  Fedora. I wanted to know if i can follow the same steps for installing
  Nagios on CentOS assuming that i have a default CentOS installation.
 
 Yes.  I used the Fedora instructions to install Nagios on CentOS myself. 
   It has been a while since I did it, though.  The only snag I remember 
 having was forgetting to install some packages like openssl-devel and 
 net-snmp-devel before compiling the plug-ins.

Don't bother to compile them, use Dag's archive:

rsync://apt.sw.be/pub/freshrpms/pub/dag/redhat/

-- 
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT 
Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: 
http://www.phcomp.co.uk/contact.php
#include std_disclaimer.h

--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Fwd: Re: Configuration files obfuscation

2009-06-17 Thread Alain Williams
On Wed, Jun 17, 2009 at 11:09:10AM +0200, Andreas Ericsson wrote:
 edward baddouh wrote:
  Yes, I want the configuration files to be worse (readable).
  The idea is to difficult as-much-as-possible config-files theft from ohter
  people who admin that server..
  
  There have been times that configuration files were implemented on different
  installations (different sites) with minor changes without the admin's
  consent..
  
  I don't want nobody to get credits for work I've done and receive no profit
  at all..
  
 
 This is just stupid imo and would be far better solved with some social
 conventions. The problem is that there's a limited way of configuring
 Nagios for a particular setup, so it's always entirely possible that
 whoever you *think* is stealing configuration from you has actually
 read the nagios docs for 15-30 minutes and then figured out how to do
 it themselves. It's not exactly rocket science, and a nagios config
 isn't a super-fast cryptographically secure hash algorithm that you
 (sometimes) need to jealously protect. The fact that you're trying
 makes me feel dirty all over, to be honest.
 
 Why you want an opensource community help you *not* share your work,
 I really do not fathom, but you'll get absolutely no help from me.

+1

And who knows ... one of the people who takes your config might improve it
and tell you how!

-- 
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT 
Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: 
http://www.phcomp.co.uk/contact.php
Past chairman of UKUUG: http://www.ukuug.org/
#include std_disclaimer.h

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Proper use of this list

2009-06-17 Thread Alain Williams
On Wed, Jun 17, 2009 at 06:36:50PM +0530, rajashekar.s wrote:
 Hi,
 For monitoring windows machines
 
 (a) Edit /usr/local/nagios/etc/nagios.cfg
 

 Pallavolu Reddi Sekhar Reddy wrote:
 
 I want to add new windows server on nagios.
 how can i configure that let me know. on hosts.cfg file

When you start a new topic, please:

1) Change the subject line -- leaving as the old one only confuses!

2) Remove the ''In-Reply-To'' mail header -- or preferably just start
   a new mail (ie don't reply).

Why ? Because those of us who used a MUA that supports threading get confused
if you do not.


While I am at it: please remove irrelevant/old stuff at the bottom of emails
that you reply to.

Thank you

-- 
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT 
Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: 
http://www.phcomp.co.uk/contact.php
Past chairman of UKUUG: http://www.ukuug.org/
#include std_disclaimer.h

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] montitoring a system only via email-transport of status-informations

2008-09-11 Thread Alain Williams
On Thu, Sep 11, 2008 at 01:05:32PM +0200, Ralf Prengel wrote:
 Hallo,
 
 we are monitoring several system using ssh, snmp, nrpe and a lot of
 plugings.
 Now we have to check a server without any direct access. The only way to
 get informatiosn is using email.
 Has anyone docs or links how to transfer statusinformations via email
 from the server to the nagios-server?

Yes - I have done this, I created a new plugin that takes monitoring data and 
mails
it to another machine where it is injected into nagios. It works well, I have
been using it for a year or so.

I announced it to little interest, I'll check out what I have and put it up 
somewhere.
I may be part way though an upgrade of what it does, I can't remember since it 
is
some time since I have tinkered with it.

-- 
Alain Williams
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: 
http://www.phcomp.co.uk/contact.php
Chairman of UKUUG: http://www.ukuug.org/
#include std_disclaimer.h

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Dependencies

2008-08-28 Thread Alain Williams
Hi,

I am trying to get some of the dependency stuff working in Nagios.

I have a very simple system:

Machine A  Router B . Internet  machine C

I use the following to show the relationship:

define host{
use linux-server
host_name   A
parents B
}


1) The 'status map' shows nagios as being somehow between A  B, whereas it is 
on A (ie it runs on A).
   Is there a way that I can tell nagios that it is on A ?

2) I check that DNS is still working thus:

define service{
use local-service
host_name   A
service_description DNS Access
check_command   check_dns
}


   How do I say that this depends on B ? ... I don't want warnings just because 
the router is dead.

   I also check (twice/day) that the clock on A is accurate, that will only 
work if NTP works, ie
   also depends on B, but is very much tied to A.

TIA

-- 
Alain Williams
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: 
http://www.phcomp.co.uk/contact.php
Chairman of UKUUG: http://www.ukuug.org/
#include std_disclaimer.h

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] execute command as root user

2007-07-23 Thread Alain Williams
On Mon, Jul 23, 2007 at 12:37:06PM +0200, Martin Koeck wrote:
 Hello,
 
 I know this is more OS related and not so much nagios related, but I 
 thought maybe somebody has stumbled across this:
 
 I need, on a critical failure that is trapped by nagios (this works for 
 me), to restart an application which I usually restart as root user on 
 this machine.
 
 To be specific: Tomcat is giving up work now and then on this machine, I 
 can trap it, and need to restart it. Normally I do this by 
 /etc/init.d/tomcat restart -- but I need to be root for this, so nagios 
 cannot do this automatically for me, because it runs as nagios user.
 
 What is the best way to approach this ? Changing the owner of the 
 tomcat-related startup files so that nagios can do it ? Writing a file 
 on-critical-error and restarting tomcat (as a cron-job), whenever that 
 file exists ? Something else ?

Use the 'sudo' command.
Alternately: write a short program in C, that is setuid root, that execs the 
init script.

You MUST think carefully about the security implications of doing this - put 
appropriate
checks in.

-- 
Alain Williams
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: 
http://www.phcomp.co.uk/contact.php
Chairman of UKUUG: http://www.ukuug.org/
#include std_disclaimer.h

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] domain hijacking: using Nagios to monitor 100s (possibly 1000s) of domains / hosts

2007-07-10 Thread Alain Williams
On Tue, Jul 10, 2007 at 12:53:57PM -0700, Rogelio Bastardo wrote:
 I've got several hundred important domains that need to be checked for
 domain hijacking.  I'm assuming that this is as easy as check_dns -H
 domain.com -s (nameserver) -A (expected IP)
 How well will method scale to several thousand?
 
 Someone I know recently said that he has to worry about close to 300,000
 domains getting possibly hijacked. Is this beyond Nagios at this point?

Is nagios the right sort of tool for this ?
Would you not be better writing a perl script to do this ?

-- 
Alain Williams
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: 
http://www.phcomp.co.uk/contact.php
#include std_disclaimer.h

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Sharing local/remote machine .cfg

2007-06-21 Thread Alain Williams
I am relatively new to Nagios, I am setting up a group of Linux machines that
all send reports to a central monitoring one with nsca.

I have a separate .cfg file for each machine, I would like to share this file
between remote and central machines - so that if I change anything I just copy 
it over.

One change that *is* needed is the value of active_checks_enabled - which is 
zero
on the central box and one on the remote.

I tried something like this in a 'define service':

active_checks_enabled   $USER11$

and elsewhere had:

$USER11$=1
or
$USER11$=0

as appropriate for the machine.

This does not work. Why ? and is there a way of achieving what I want to do ?

TIA

-- 
Alain Williams
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: 
http://www.phcomp.co.uk/contact.php
#include std_disclaimer.h

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Sharing local/remote machine .cfg

2007-06-21 Thread Alain Williams
On Thu, Jun 21, 2007 at 10:08:27AM -0500, Marc Powell wrote:

 Macros are only available to command {} definitions. You can't use them
 anywhere else.

Shame.

 What I do is to create a template in a new config file (templates.cfg
 for example) with the differing values and the hosts/services inherit
 that template. Something like --
 ...

Did that, it works -- thanks.

-- 
Alain Williams
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: 
http://www.phcomp.co.uk/contact.php
#include std_disclaimer.h

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null