Re: [Nagios-users] Nagios configuraion best practice

2010-12-08 Thread Kenneth Holter
Hi all,


I'm picking up this old tread, as I'm about to start restructuring
parts of my Nagios configuration. In my current configuration I've
created host groups to which I've linked both hosts and services.
Example: I have a host group called linux-servers, to which all
linux servers are linked. A number of service checks common for all
linux servers are also linked to this host group. When adding new
linux boxes I simply link them to the linux-servers host group. In a
similar fashion I have a host-group called application-servers to
which all application servers and related service checks are linked.
When adding a new application server, I make sure it links to both
linux-server and applications-servers.

This setup works pretty well, but it really clutters up the host
groups web page. Is this the way others have structured their nagios
configuration?


Regards,
Kenneth


On Wed, Sep 17, 2008 at 2:55 PM, Kenneth Holter kenneho@gmail.com wrote:
 I should have been more precise regarding the cluttering of the display - it
 was the hostgroup display I was referring to. :/

 Would it be an idea to as much as possible use this configuration method:
 hosts --- hostgroups --- services? To elaborate some: Hosts are always
 connected to host groups, and the same for services. This way one will
 avoid linking services to specific hosts, making the service definitions
 more clean.

 Also, I'm thinking about having a host group called for example
 linux-servers, to which all linux servers are linked. A number of service
 checks common for all linux servers are also linked to this host group. When
 adding new linux boxes I simply link them to the linux-servers host group,
 and add extra services checks where needed. In a similar fashin I would
 create a host-group called for example dell-servers to which all Dell
 hosts and related service checks are linked. New Dell servers are then
 linked to this host group.

 I'm thinking this may be a good idea, but would like to hear how others have
 structured their configuration and if there may be some hidden pitfalls in
 my proposed configuration method.



 On 9/16/08, dave stern - e-mail.pluribus.unum dit.d...@gmail.com wrote:

 Not quite sure what you're trying to do. If you monitor a service,
 it's going to be on the nagios
 service details pagre regardless, That's the whole point. There are
 some tricks to slim down
 some other displays eg I define a whole bunch of services under a host
 without defining the
 hosts these services run on explicitly. I just feed the IP address as
 part of the check_command.
 This reduced the hostgroup grid page. I don't think that will work for
 you.

 If you're asking how to most efficiently code this in your configs,
 the timesaving tips page
 mentions ganging together services. ie you don't need a service stanza
 for each host you want
 to run this on. Rather, use a wildcard or group.
 define service{
 use generic
  host_namehosta, hostb
  hostgroup special-ones,!webguy
   .
 }

 Run the service on hosts hosta, hostb, all hosts in the hostgroup,
 special-ones but not webguy

 One other thing you should consider. Where will the plugins live? The
 easy answer is to put them
 on an NFSmounted partition that all hosts can access and that you can
 easily update. This is a
 bad practise. What happens when NFS breaks? You should really copy the
 plugins to each
 host st they run locally.

 On Tue, Sep 16, 2008 at 8:05 AM, Kenneth Holter kenneho@gmail.com
 wrote:
 
  Thanks for the reply. I'll read the documents you listed.
 
  Meanwhile, I have a design question: What's the best way to set up a
  service
  check to be executed on a selected few (or maybe all for that matter)
  nodes?
  Say I need to monitor a particular process (lets call this service A) on
  a
  number of systems, how would I implement this? I guess one way would be
  to
  link service A to a hostgroup, say hostgroup A, and add the selected
  systems
  to that hostgroup. This, however, will somewhat clutter up the web
  display,
  so I'm looking for alternative approaches.
 
  Any suggestions?
 
 
 
  On 9/15/08, dave stern - e-mail.pluribus.unum dit.d...@gmail.com
  wrote:
 
  Assuming you're already familiar with nagios, I'd look at the nagios
  documentation
  in the following order:
 
  Under Configuring nagios, look at Object definitions and make sure
    you understand all parameters and what would make sense in your
  environment
  Under Advanced Topics, look at Timesaving tips for object
  definitions
  Under Advanced Topics, look at host and service dependancies
 
  Under Advanced Topics, look at both Distributed Monitoring and
  Redundant and
    Failover Monitoring.
  Finally, under Security and Performance Tuning, look at Large
  Installation Tweaks
 
  On Mon, Sep 15, 2008 at 10:23 AM, Kenneth Holter
  kenneho@gmail.com
  wrote:
   Hello all,
  
  
   I'm new to Nagios

[Nagios-users] Monitoring linux quotas

2009-08-19 Thread Kenneth Holter
Hello all.


I'm considering setting up quotas on our RHEL-servers, and were wondering if
there are any Nagios plugins that can monitor quotas.

Btw, we're running Nagios 3.0.3.

Regards,
Kenneth Holter
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
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] Rebuild Nagios-packages for RHEL 5

2009-06-04 Thread Kenneth Holter
Hi all.


I'd like to rebuild (from source RPM) a few RHEL 5 Nagios-plugins found in
the EPEL repo. Examples of such plugins are nagios-plugins-load and
nagios-plugins-disk.

The only relevant source RPM I've found is the nagios-plugins package.
This package seems to include all plugins. Should I use this package to
build the above mentioned plugins? If so, does anyone know how to stip the
spec file down to just a selected few plugins? I'm quite new to building
RPMs, and could use some guidance.

Regards,
Kenneth Holter
--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get___
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] Monitor Postfix with Nagios 3

2009-04-23 Thread Kenneth Holter
Thanks, this worked like a charm. :)

On 4/23/09, Angel L. Mateo ama...@um.es wrote:

 El mié, 22-04-2009 a las 16:21 +0200, Kenneth Holter escribió:
  Hi.
 
 
  I'm using Postfix on a few of our RHEL 5 64-bit servers, and would
  like to monitor that this process is running well. I'm using Nagios
  3.
 
  What is the recommened way of monitoring Postfix?

You can use check_smtp plugin to check that your mail server is up
 and
 running. It does not properly check that postfix is running, but if you
 have a right response in port 25, then postfix is running.

 --
 Angel L. Mateo Martínez
 Sección de Telemática
 Área de Tecnologías de la Información   _o)
 y las Comunicaciones Aplicadas (ATICA)  / \\
 http://www.um.es/atica_(___V
 Tfo: 968367590
 Fax: 968398337



 --
 Stay on top of everything new and different, both inside and
 around Java (TM) technology - register by April 22, and save
 $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
 300 plus technical and hands-on sessions. Register today.
 Use priority code J9JMT32. http://p.sf.net/sfu/p
 ___
 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
--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p___
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] Monitor Postfix with Nagios 3

2009-04-22 Thread Kenneth Holter
Hi.


I'm using Postfix on a few of our RHEL 5 64-bit servers, and would like to
monitor that this process is running well. I'm using Nagios 3.

What is the recommened way of monitoring Postfix?


Regards,
kenneho
--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p___
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] Monitor Postfix with Nagios 3

2009-04-22 Thread Kenneth Holter
Thanks for you reply.

When I click the links I get this message project_id is required!. What's
that all about? I'm new to nagiosexchange...


On 4/22/09, James Pratt jpr...@norwich.edu wrote:

 It appears there are more than one:

 http://www.nagiosexchange.org/cgi-bin/search.cgi?query=postfixGo=Go

 hth
 jamie

  -Original Message-
  From: Kenneth Holter [mailto:kenneho@gmail.com]
  Sent: Wednesday, April 22, 2009 10:22 AM
  To: nagios-users@lists.sourceforge.net
  Subject: [Nagios-users] Monitor Postfix with Nagios 3
 
  Hi.
 
 
  I'm using Postfix on a few of our RHEL 5 64-bit servers, and would
 like to
  monitor that this process is running well. I'm using Nagios 3.
 
  What is the recommened way of monitoring Postfix?
 
 
  Regards,
  kenneho
 

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p___
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] Define notification contacts based on hostgroup

2009-01-28 Thread Kenneth Holter
Hi.


Is there a way to configure Nagios to define contacts based on hostgroups?
In other words: I'd like to send all notifications for a hostgroup A to the
contact X. Is this possible?

Regards,
kenneho
--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword___
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] check_ntp_time : Offset Unknown for any host since yesterday

2009-01-02 Thread Kenneth Holter
We too have the same issue. Is there any way we can resolve it without
upgrading from 1.4.11 to 1.4.13? We're using the EPEL repo, and if I'm
not mistaking one cannot upgrade only the nagios-plugins-ntp package
one would be required to upgrade nagios-plugins (and hence also all
the other nagios-plugins-* packages due to the depency to
nagios-plugins).


On 12/30/08, Thomas Guyot-Sionnest derm...@aei.ca wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 30/12/08 12:44 PM, Toussaint OTTAVI wrote:
  Hi,
 
  I've been using check_ntp_time plugin to check the time offset of all my
  time servers. It's been working perfectly for a while.
 
  Last night (29 to 30/12 at 00:00), all the checks start having the same
  behavior quite at the same time. All of them return :
   NTP CRITICAL: Offset unknown
 
  Of course, all the time servers are running, and their time is accurate.
  I can't understand why all the checks start failing all at the same time.

 This is likely caused by a bug in versions 1.4.10 and 1.4.11 of
 check_ntp and check_ntp_time that is triggered when a leap second is
 inserted (which is the case this year). Fortunately I spotted it a while
 ago and you should be OK if you upgrade to 1.4.12 or later :)

 - --
 Thomas
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.6 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iD8DBQFJWn2d6dZ+Kt5BchYRAlMYAKDIy89BiVaxxeBeuLQqKUyk5EyNzgCdH9uf
 YcQIMgjp0Sp4IHQnXzcZbcs=
 =DtDy
 -END PGP SIGNATURE-

 --
 ___
 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 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] Cannot add remote-linux server to my setup to be monitored

2008-12-23 Thread Kenneth Holter
Just a little side note: I don't think you need to maintain the hostgroup-
host relationship in both the hostgroup and host definitions. Keep the
definition in one of the two to get a cleaner code. Someone please correct
me if I'm wrong. :)

On 12/22/08, Rahul Nabar rpna...@gmail.com wrote:

 I just installed Nagios and I can monitor my localhost all right. I
 tried to start with one of my remote compute-nodes but this does not
 seem to work so well.

 I see my new group compute-nodes on the web interface but it does
 not list the remote machine I tried adding. I'm stumped as to what I
 am doing wrong!

 To my nagios.cfg I added this line
 :cfg_file=/usr/local/nagios/etc/hosts.cfg

 And made a new /usr/local/nagios/etc/hosts.cfg like so:

 define hostgroup{
hostgroup_name  compute-nodes
alias   compute-nodes
members star01
}

 define host{
host_name   star01
alias   star01
address 11.0.0.1
hostgroups  compute-nodes
check_command   check-host-alive
max_check_attempts  5
check_period24x7
process_perf_data   0
retain_nonstatus_information0
contact_groups  admins
notification_interval   30
notification_period 24x7
notification_optionsd,u,r
}


 Shouldn't this be a basic template to get me started up? What else do
 I need to do? Any debug suggestions? A ping to 11.0.0.1 is successful.

 --
 Rahul


 --
 ___
 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 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] Nagios and SELinux issue

2008-12-10 Thread Kenneth Holter
Hello list.


We're running Nagios 3.0.3 on RHEL 5, and are having an issue with SELinux.
A symptom I have noticed it that acknowledging a problem results in the
following error:

*Error: Could not stat() command file '/usr/local/nagios/var/rw/nagios.cmd'
*

We need to keep SELinux active on the server, so I'll have to configure it
to allow for Nagios. Does anyone know what needs to be done to do this?


Regards,
Kenneth Holter
--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.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] Setting up guest user for nagios

2008-12-10 Thread Kenneth Holter
I already added a guest entry in that file, but thansk anyway. Everything
seems to be working correctly.

On 12/10/08, Ian Masters [EMAIL PROTECTED] wrote:

  I've ensured that user guest is only included in these two lists:
 
  * authorized_for_all_services=usernagios,guest
  * authorized_for_all_hosts=usernagios,guest

 That sorts out the nagios configuration side of things.

 You'll also need to add an entry to /usr/local/nagios/etc/htpasswd.users
 so that the guest user can authenticate before accessing the web
 interface as per:

 http://nagios.sourceforge.net/docs/3_0/cgiauth.html

 HTH

 IM

 --
 Nagios 3.0.4 (with plugins v1.4.13) on CentOS 5.2


--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.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

[Nagios-users] Network and machine resource consumption for Nagios

2008-12-10 Thread Kenneth Holter
Hi.


Is there any resource consumption with regards to network or server/client
machines to worry about when running Nagios? We're running active checks,
i.e. the Nagios server uses SSH to run plugins on the client side and gather
the information.

I guessing that the per service per check interval load on the network is a
matter of a couple of very small packets travelling between the Nagios
server and the Nagios client. And on the client side it is only a matter of
running small, simple scripts that causes very little processing overhead.
Thus, all in all there shouldn't be much of a overhead to talk about when
running Nagios? Of course, it all depends on the check interval and the
number of checks, and if anyone knows any nagios check per
processing/network capacity ratio please speak up.


Regards,
Kenneth
--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.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] Nagios and SELinux issue

2008-12-10 Thread Kenneth Holter
Thanks - I missed this part during installation. I'll give it a read.

On 12/10/08, Ian Masters [EMAIL PROTECTED] wrote:

 Kenneth Holter wrote:
  We're running Nagios 3.0.3 on RHEL 5, and are having an issue with
  SELinux. A symptom I have noticed it that acknowledging a problem
  results in the following error:
 
  /Error: Could not stat() command file
  '/usr/local/nagios/var/rw/nagios.cmd' /
 
  We need to keep SELinux active on the server, so I'll have to configure
  it to allow for Nagios. Does anyone know what needs to be done to do
 this?

 Did you see http://nagios.sourceforge.net/docs/3_0/quickstart-fedora.html

 Especially the heading:
 8) Modify SELinux Settings

 IM


--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.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] Setting up guest user for nagios

2008-12-09 Thread Kenneth Holter
Thanks for your reply.

I've ensured that user guest is only included in these two lists:

   - authorized_for_all_services=usernagios,guest
   - authorized_for_all_hosts=usernagios,guest

From what I can see, the guest user will now only have read/view access to
Nagios. Are there any security or other problems to this approach that I
don't see?


Regards,
Kenneth


On 11/29/08, Hugo van der Kooij [EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Kenneth Holter wrote:
  Hi.
 
 
  I need to configure a guest account so that anyone in the organization
  interested in monitoring can log into our Nagios web interface.
 
  Setting up the guest user account is a matter of adding the guest user
  to the required lines in cgi.bin. What is the recommended practice
  here? I were thinking I'd add guest to each of these lines, but I'm
  not sure if these leaves the guest user with too much privileges:
 
 
  * authorized_for_system_information=usernagios
  * authorized_for_configuration_information=usernagios
  * authorized_for_system_commands=usernagios

 So they can now do pretty much shutdown operations?

  * authorized_for_all_services=usernagios
  * authorized_for_all_hosts=usernagios
 
  Does anyone have any recommendations on this?

 I think using nagvis or looking glass or  seems the better way to
 add a view only account.

 Hugo.

 - --
 [EMAIL PROTECTED]   http://hugo.vanderkooij.org/
 PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc

A: Yes.
Q: Are you sure?
A: Because it reverses the logical flow of conversation.
Q: Why is top posting frowned upon?

 Bored? Click on http://spamornot.org/ and rate those images.

 Nid wyf yn y swyddfa ar hyn o bryd. Anfonwch unrhyw waith i'w gyfieithu.
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.7 (GNU/Linux)
 Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

 iD8DBQFJMREkBvzDRVjxmYERAvi5AJ9zi845wYju2HIVUmHPzrl8IA6uywCeMiOd
 V4TVW6zIioHLBbOdeTXeyyo=
 =HrH7
 -END PGP SIGNATURE-

 -
 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

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.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

[Nagios-users] Setting up guest user for nagios

2008-11-28 Thread Kenneth Holter
Hi.


I need to configure a guest account so that anyone in the organization
interested in monitoring can log into our Nagios web interface.

Setting up the guest user account is a matter of adding the guest user to
the required lines in cgi.bin. What is the recommended practice here? I
were thinking I'd add guest to each of these lines, but I'm not sure if
these leaves the guest user with too much privileges:


   - authorized_for_system_information=usernagios
   - authorized_for_configuration_information=usernagios
   - authorized_for_system_commands=usernagios
   - authorized_for_all_services=usernagios
   - authorized_for_all_hosts=usernagios

Does anyone have any recommendations on this?


Regards,
Kenneth
-
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] Limiting mail notification for clock drift

2008-11-13 Thread Kenneth Holter
Thank you for you patience. As you can see I'm not at all very experienced
with Nagios (just recently set it up). :)

I've reset the notification_interval to 0. Got confused for a moment as most
of the other services are set to high numbers such as 1440. But you're right
- 0 is what I need.

I've extracted the information you asked for from objects.cache, but before
take up space with that info let me show you what I found...

I examined the log file, and found that this:


   - [EMAIL PROTECTED] archives]# grep -i server1 nagios-11-12-2008-00.log |grep
   -i ntp|grep -i notification
   - [1226375094] SERVICE NOTIFICATION: nagios;server1;NTP
1.2.3.4;CRITICAL;notify-service-by-email;NTP
   CRITICAL: Offset -419.5424475 secs
   - [1226379294] SERVICE NOTIFICATION: nagios;server1;NTP
1.2.3.4;OK;notify-service-by-email;NTP
   OK: Offset 0.1932080023 secs
   - [1226381814] SERVICE NOTIFICATION: nagios;server1;NTP
1.2.3.4;WARNING;notify-service-by-email;NTP
   WARNING: Offset 0.5295080024 secs
   - [1226382714] SERVICE NOTIFICATION: nagios;server1;NTP
1.2.3.4;OK;notify-service-by-email;NTP
   OK: Offset 0.06872100243 secs
   - [1226387933] SERVICE NOTIFICATION: nagios;server1;NTP
1.2.3.4;WARNING;notify-service-by-email;NTP
   WARNING: Offset -0.8496964976 secs
   - [1226391833] SERVICE NOTIFICATION: nagios;server1;NTP
1.2.3.4;CRITICAL;notify-service-by-email;NTP
   CRITICAL: Offset -6.277684498 secs
   - [1226394233] SERVICE NOTIFICATION: nagios;server1;NTP
1.2.3.4;WARNING;notify-service-by-email;NTP
   WARNING: Offset -2.576738498 secs
   - [1226394533] SERVICE NOTIFICATION: nagios;server1;NTP
1.2.3.4;CRITICAL;notify-service-by-email;NTP
   CRITICAL: Offset -7.470661498 secs
   - [1226397533] SERVICE NOTIFICATION: nagios;server1;NTP
1.2.3.4;WARNING;notify-service-by-email;NTP
   WARNING: Offset -

I does indeed seem like the notifications are sent out just like I was
aiming at. But because there was so many notifications and my mailbox is a
mess I didn't notice this then.

So to me it seems like there is a lot of flapping going on, and I'll read up
on the subject and see what I come up with.

Thanks for the help. I've learned a lot more about Nagios.


On 11/12/08, Marc Powell [EMAIL PROTECTED] wrote:


 On Nov 12, 2008, at 9:03 AM, Kenneth Holter wrote:

  I think I found one of the causes for the excessive notifacations -
  the notification_interval was set to 0. For almost all our services
  we have a high number (such as 1440), but this current value of zero
  must have made it's way into the code somehow.

 It should be left at 0 to get the behavior you're expecting. With
 notification_interval 0, a notification for a {WARNING | CRITICAL | OK/
 RECOVERY} state will only be sent once per problem. That's what you
 want. When set at 1440, you'll receive repeat notifications every 24
 hours until recovery.

 http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service

 notification_interval: This directive is used to define the number
 of time units to wait before re-notifying a contact that this
 service is still in a non-OK state. Unless you've changed the
 interval_length directive from the default value of 60, this number
 will mean minutes. If you set this value to 0, Nagios will not re-
 notify contacts about problems for this service - only one problem
 notification will be sent out.

  This is my current definition:
   define service {
  use generic-service
  service_description Current load for virtual
  servers
  servicegroups   performance
  hostgroups  virtual-servers
  is_volatile 0
  check_period24x7
  max_check_attempts  3
  normal_check_interval   5
  retry_check_interval1
  notification_interval   0
  notification_period 24x7
  check_command   check_remote_load!/home/
  nagios/.ssh/id_rsa!nagios!13.0,8.0,3.0!15.0,10.0,5.0
  }

 This isn't the entire service definition (no contacts specified, no
 notification_options, what's in the template?, etc). That's why I
 suggested getting that (and more) from objects.cache. You might also
 want to include the log entries for the service and notifications to
 exemplify the problem.

  Setting this attribute to a higher value should make me get a lot
  less notifications, but I will still get more or less duplicate
  notifications. Help on avoiding this will be appreciated.

 You just made it worse by saying you _should_ get repeat notifications
 once a day at least. ;)

 
  Regarding your specific questions: I think the service definition
  above answers most of them.

 Not really, it's missing the key bits of information about who gets
 notified for what, when and how.

  We don't run multiple Nagios daemons on the same machine.

 I'm sure you don't

Re: [Nagios-users] Limiting mail notification for clock drift

2008-11-12 Thread Kenneth Holter
Thanks for your reply.

The is_volatile options is actually already set to 0. :/

I think it would be correct to sum up what I'm in need of like this:
Whenever there is a transition from one hard error state to another hard
error state, or when there has been a recovery from such an error, I'd like
a notification.

On 11/11/08, Marc Powell [EMAIL PROTECTED] wrote:


 On Nov 11, 2008, at 2:08 AM, Kenneth Holter wrote:

  Hello.
 
 
  I'm using Nagios 3.0.3 to monitor things such as time (synchronized
  with NTP) on our servers, and are getting a lot of semi-duplicate
  notification mails: As long as there is an error/warning, I get a
  mail notification every time the clock drift increases or decreases.
  Is there an option I can set to limit the notification to _one_ mail
  whenever we enter or leave an error/warning state, and thus not for
  every time a new drift time is calculated?

 Sounds like you need to remove the is_volatile option in your service
 definitions.

 http://nagios.sourceforge.net/docs/2_0/volatileservices.html

 --
 Marc


 -
 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

-
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] Limiting mail notification for clock drift

2008-11-12 Thread Kenneth Holter
I think I found one of the causes for the excessive notifacations - the
notification_interval was set to 0. For almost all our services we have a
high number (such as 1440), but this current value of zero must have made
it's way into the code somehow. This is my current definition:

 define service {
use generic-service
service_description Current load for virtual servers
servicegroups   performance
hostgroups  virtual-servers
is_volatile 0
check_period24x7
max_check_attempts  3
normal_check_interval   5
retry_check_interval1
notification_interval   0
notification_period 24x7
check_command
check_remote_load!/home/nagios/.ssh/id_rsa!nagios!13.0,8.0,3.0!15.0,10.0,5.0
}


Setting this attribute to a higher value should make me get a lot less
notifications, but I will still get more or less duplicate notifications.
Help on avoiding this will be appreciated.

Regarding your specific questions: I think the service definition above
answers most of them. We don't run multiple Nagios daemons on the same
machine. I didn't find anything unusual in objects.cache.

On 11/12/08, Marc Powell [EMAIL PROTECTED] wrote:


 On Nov 12, 2008, at 2:43 AM, Kenneth Holter wrote:

 
  Thanks for your reply.
 
  The is_volatile options is actually already set to 0. :/

 That's interesting. That's about the only option that would cause the
 behavior you are reporting that I can think of. Are you using event
 handlers for notifications? Is your notification_interval the same or
 similar to your normal_check_interval? Make sure that you don't have
 multiple nagios daemons running at the same time and that the service
 definition in objects.cache is as you expect it to be.

 The only case in which nagios cares about the _text_ of the plugin
 output is when state stalking is enabled. Even then, it only provides
 logging of that change, not a notification. There are only two
 conditions under which notifications will be sent out (
 http://nagios.sourceforge.net/docs/3_0/notifications.html)--

 When Do Notifications Occur?

 The decision to send out notifications is made in the service check
 and host check logic. Host and service notifications occur in the
 following instances...

 * When a hard state change occurs. More information on state
 types and hard state changes can be found here.
 * When a host or service remains in a hard non-OK state and the
 time specified by the notification_interval option in the host or
 service definition has passed since the last notification was sent out
 (for that specified host or service).

  I think it would be correct to sum up what I'm in need of like this:
  Whenever there is a transition from one hard error state to another
  hard error state, or when there has been a recovery from such an
  error, I'd like a notification.

 Yup. Standard Operating Procedure for nagios. You have to do something
 unusual to not get this behavior. Perhaps you should post some config
 information from objects.cache for inspection. service definition,
 contact definition and notification command definition.

 --
 Marc


 -
 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

-
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] Limiting mail notification for clock drift

2008-11-11 Thread Kenneth Holter
Hello.


I'm using Nagios 3.0.3 to monitor things such as time (synchronized with
NTP) on our servers, and are getting a lot of semi-duplicate notification
mails: As long as there is an error/warning, I get a mail notification every
time the clock drift increases or decreases. Is there an option I can set to
limit the notification to _one_ mail whenever we enter or leave an
error/warning state, and thus not for every time a new drift time is
calculated?

The same problem also applies to things such as disk space.


Regards,
Kenneth Holter
-
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] Turning off notification_period for ping

2008-11-07 Thread Kenneth Holter
Hi.


I have a few machines that are currently blocked by the firewall, which are
reported down by Nagios. I'm pretty happy with having just _one_
notification of this kind of error, and would like to set the
notification_period for this kind of check to 0. Problem is that I can't
find the place where this is defined. Does anyone know this? I'm running
Nagios 3.0.3.


Regards,
Kenneth Holter
-
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] Turning off notification_period for ping

2008-11-07 Thread Kenneth Holter
Thanks for the tip. I did mean notification_interval, and not
notification_period. My mistake, thanks for pointing this out.

I've changed the host template's notification_interval to 0, as this seems
like a good enough solution at the moment.

Thanks again.


Regards,
Kenneth


On 11/7/08, Dennis Hünseler [EMAIL PROTECTED] wrote:

 Hi Kenneth,

 it is normally defined in the Host-Template, so if you use the generic-host
 template for example for this host you have to check this template for the
 setting. But if you want this setting for several hosts that are behind a
 firewall you should create a special host template for them and when you
 know they will be reachable just change the host-template of the specific
 host to the normal one.

 And the option you have to set to 0 is not natification_period it is *
 notification_interval*, if this is set to 0 you only get one
 notification.



 Regards, Dennis

 On Fri, 7 Nov 2008 13:07:48 +0100, Kenneth Holter [EMAIL PROTECTED]
 wrote:

 Hi.


 I have a few machines that are currently blocked by the firewall, which are
 reported down by Nagios. I'm pretty happy with having just _one_
 notification of this kind of error, and would like to set the
 notification_period for this kind of check to 0. Problem is that I can't
 find the place where this is defined. Does anyone know this? I'm running
 Nagios 3.0.3.


 Regards,
 Kenneth Holter


-
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] Monitoring which user is running a service/process

2008-10-31 Thread Kenneth Holter
I got it working.  Thanks for the tip.

On 10/10/08, Aaron Segura [EMAIL PROTECTED] wrote:

  Yes.  Note the '-u' option.



 $ ./check_procs -h

 check_procs (nagios-plugins 1.4.2) 1.46

 Copyright (c) 1999 Ethan Galstad [EMAIL PROTECTED]Copyright (c)
 2000-2004 Nagios Plugin Development Team

   [EMAIL PROTECTED]



 Checks all processes and generates WARNING or CRITICAL states if the
 specified

 metric is outside the required threshold ranges. The metric defaults to
 number

 of processes.  Search filters can be applied to limit the processes to
 check.



 Usage: check_procs -w range -c range [-m metric] [-s state] [-p ppid]

   [-u user] [-r rss] [-z vsz] [-P %cpu] [-a argument-array]

   [-C command] [-t timeout] [-v]



 Required Arguments:

  -w, --warning=RANGE

Generate warning state if metric is outside this range

  -c, --critical=RANGE

Generate critical state if metric is outside this range



 Optional Arguments:

  -m, --metric=TYPE

Check thresholds against metric. Valid types:

PROCS   - number of processes (default)

VSZ - virtual memory size

RSS - resident set memory size

CPU - percentage cpu

ELAPSED - time elapsed in seconds

  -t, --timeout=INTEGER

 Seconds before connection times out (default: 10)

  -v, --verbose

Extra information. Up to 3 verbosity levels



 Optional Filters:

  -s, --state=STATUSFLAGS

Only scan for processes that have, in the output of `ps`, one or

more of the status flags you specify (for example R, Z, S, RS,

RSZDT, plus others based on the output of your 'ps' command).

  -p, --ppid=PPID

Only scan for children of the parent process ID indicated.

  -z, --vsz=VSZ

Only scan for processes with vsz higher than indicated.

  -r, --rss=RSS

Only scan for processes with rss higher than indicated.

  -P, --pcpu=PCPU

Only scan for processes with pcpu higher than indicated.

  -u, --user=USER

Only scan for processes with user name or ID indicated.

  -a, --argument-array=STRING

Only scan for processes with args that contain STRING.

  -C, --command=COMMAND

Only scan for exact matches of COMMAND (without path).



 RANGEs are specified 'min:max' or 'min:' or ':max' (or 'max'). If

 specified 'max:min', a warning status will be generated if the

 count is inside the specified range



 This plugin checks the number of currently running processes and

 generates WARNING or CRITICAL states if the process count is outside

 the specified threshold ranges. The process count can be filtered by

 process owner, parent process PID, current state (e.g., 'Z'), or may

 be the total number of running processes



 Examples:

  check_procs -w 2:2 -c 2:1024 -C portsentry

Warning if not two processes with command name portsentry. Critical

if  2 or  1024 processes



  check_procs -w 10 -a '/usr/local/bin/perl' -u root

Warning alert if  10 processes with command arguments containing

'/usr/local/bin/perl' and owned by root



  check_procs -w 5 -c 10 --metric=VSZ

Alert if vsz of any processes over 50K or 100K

  check_procs -w 10 -c 20 --metric=CPU

Alert if cpu of any processes over 10% or 20%
  --

 *From:* Kenneth Holter [mailto:[EMAIL PROTECTED]
 *Sent:* Friday, October 10, 2008 8:18 AM
 *To:* nagios-users@lists.sourceforge.net
 *Subject:* [Nagios-users] Monitoring which user is running a
 service/process



 Hello all.





 I have some processes that are meant to be run by user A, but are often
 (for some human error reason) run by the root user. Is there a way to set up
 Nagios to alert me whenever this happens?





 Regards,

 Kenneth Holter

-
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] Monitoring which user is running a service/process

2008-10-10 Thread Kenneth Holter
Hello all.


I have some processes that are meant to be run by user A, but are often (for
some human error reason) run by the root user. Is there a way to set up
Nagios to alert me whenever this happens?


Regards,
Kenneth Holter
-
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] Monitoring 64-bit and 32-bit servers - plugin path problem

2008-09-26 Thread Kenneth Holter
Quite a lot of ways to solve this issue, it seem. :)

I have a working configuration in which the $USER macro is defined with
/usr/lib*64*/nagios/plugins/check_disk, and on 32-bit systems I make a
symlink from /usr/lib64/nagios to /usr/lib/nagios. This works like a charm,
and doesn't seem to be very messy.

I may consider the Gavins approach setting the PATH environment though,
since it looked like a very neat solution.



On 9/25/08, Tom Throckmorton [EMAIL PROTECTED] wrote:

 On Sep 23 08:18, Kenneth Holter wrote:
  Hello all.
 
 
  I've set up Nagios to monitor a few 64-bit machines, and this seems to be
  working correctly. For example, my command for checking a remote disk is
  defined like this:
 
 
  define command{
  command_namecheck_remote_disk
  command_line/somepath/check_by_ssh args -C
  /usr/lib64/nagios/plugins/check_disk remote args
  }
 
  This command executes /usr/*lib64*/nagios/plugins/check_disk on the
 remote
  system. On 32-bit systems, on the other hand, the path to the plugin is
  /usr/*lib*/nagios/plugins/check_disk. It thus looks like I have to
  differentiate between 32-bit and 64-bit commands, and in effect devide
 the
  configuration itself in a 32-bit section and 64-bit section.
 
  I'm sure there is a neat way of solving this, and could use some advice.
 I
  guess I could symlink all over the place to get things going, but there
 are
  probably a better way of doing this.

 Kenneth,

 Here are two more ideas for you:

 1) You could add some test logic into your command def, like so:

 $USER1$/check_by_ssh args -C if [ -e /usr/lib64/nagios/plugins/ ] ; then
 /usr/lib64/nagios/plugins/check_disk remote args ; else
 /usr/lib/nagios/plugins/check_disk remote args ; fi

 Rather ugly, but I think that would do what you want.

 2) configure the remote ssh client to know it's local path to the plugins;
 you
 could do this either in the public key, by using something like
 'environment=NAGIOSPATH=/usr/lib64/plugins' after your command and host
 restrictions (you _are_ using command and host restrictions in your public
 keys, right? ;-), or in ~/.ssh/environment on the remote host.  Note that
 to
 use either of those, you'd need to set PermitUserEnvironment=yes in your
 sshd_config - see sshd(8) and sshd_config(5).  Once that's set, you should
 be
 able to run:

 $USER1$/check_by_ssh args -C \$NAGIOSPATH\/check_disk remote_args

 ...which would also get you there, I think.

 Couple of disclaimers...
 - allowing user environments to be set via sshd can be a security risk
 - I've only tried this from the command line; you'll likely need to do some
 interesting escaping to get it to work correctly.

 Also,

 Gavin Carr wrote:
  We've found it easier to just leave the plugin invocations unqualified
 and
  add the relevant nagios plugins directory to the $PATH for the remote
 nagios
  user.  Works nicely here.

 +1 on that one, too - simple is good.

 Cheers,

 -tt

 --
 Tom Throckmorton

-
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] Monitoring 64-bit and 32-bit servers - plugin path problem

2008-09-23 Thread Kenneth Holter
Hello all.


I've set up Nagios to monitor a few 64-bit machines, and this seems to be
working correctly. For example, my command for checking a remote disk is
defined like this:


define command{
command_namecheck_remote_disk
command_line/somepath/check_by_ssh args -C
/usr/lib64/nagios/plugins/check_disk remote args
}

This command executes /usr/*lib64*/nagios/plugins/check_disk on the remote
system. On 32-bit systems, on the other hand, the path to the plugin is
/usr/*lib*/nagios/plugins/check_disk. It thus looks like I have to
differentiate between 32-bit and 64-bit commands, and in effect devide the
configuration itself in a 32-bit section and 64-bit section.

I'm sure there is a neat way of solving this, and could use some advice. I
guess I could symlink all over the place to get things going, but there are
probably a better way of doing this.


Regards,
Kenneth Holter
-
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] Nagios configuraion best practice

2008-09-17 Thread Kenneth Holter
I should have been more precise regarding the cluttering of the display - it
was the hostgroup display I was referring to. :/

Would it be an idea to as much as possible use this configuration method:
hosts --- hostgroups --- services? To elaborate some: Hosts are always
connected to host groups, and the same for services. This way one will
avoid linking services to specific hosts, making the service definitions
more clean.

Also, I'm thinking about having a host group called for example
linux-servers, to which all linux servers are linked. A number of service
checks common for all linux servers are also linked to this host group. When
adding new linux boxes I simply link them to the linux-servers host group,
and add extra services checks where needed. In a similar fashin I would
create a host-group called for example dell-servers to which all Dell
hosts and related service checks are linked. New Dell servers are then
linked to this host group.

I'm thinking this may be a good idea, but would like to hear how others have
structured their configuration and if there may be some hidden pitfalls in
my proposed configuration method.



On 9/16/08, dave stern - e-mail.pluribus.unum [EMAIL PROTECTED] wrote:

 Not quite sure what you're trying to do. If you monitor a service,
 it's going to be on the nagios
 service details pagre regardless, That's the whole point. There are
 some tricks to slim down
 some other displays eg I define a whole bunch of services under a host
 without defining the
 hosts these services run on explicitly. I just feed the IP address as
 part of the check_command.
 This reduced the hostgroup grid page. I don't think that will work for you.

 If you're asking how to most efficiently code this in your configs,
 the timesaving tips page
 mentions ganging together services. ie you don't need a service stanza
 for each host you want
 to run this on. Rather, use a wildcard or group.
 define service{
 use generic
  host_namehosta, hostb
  hostgroup special-ones,!webguy
   .
 }

 Run the service on hosts hosta, hostb, all hosts in the hostgroup,
 special-ones but not webguy

 One other thing you should consider. Where will the plugins live? The
 easy answer is to put them
 on an NFSmounted partition that all hosts can access and that you can
 easily update. This is a
 bad practise. What happens when NFS breaks? You should really copy the
 plugins to each
 host st they run locally.

 On Tue, Sep 16, 2008 at 8:05 AM, Kenneth Holter [EMAIL PROTECTED]
 wrote:
 
  Thanks for the reply. I'll read the documents you listed.
 
  Meanwhile, I have a design question: What's the best way to set up a
 service
  check to be executed on a selected few (or maybe all for that matter)
 nodes?
  Say I need to monitor a particular process (lets call this service A) on
 a
  number of systems, how would I implement this? I guess one way would be
 to
  link service A to a hostgroup, say hostgroup A, and add the selected
 systems
  to that hostgroup. This, however, will somewhat clutter up the web
 display,
  so I'm looking for alternative approaches.
 
  Any suggestions?
 
 
 
  On 9/15/08, dave stern - e-mail.pluribus.unum [EMAIL PROTECTED]
 wrote:
 
  Assuming you're already familiar with nagios, I'd look at the nagios
  documentation
  in the following order:
 
  Under Configuring nagios, look at Object definitions and make sure
you understand all parameters and what would make sense in your
  environment
  Under Advanced Topics, look at Timesaving tips for object
 definitions
  Under Advanced Topics, look at host and service dependancies
 
  Under Advanced Topics, look at both Distributed Monitoring and
  Redundant and
Failover Monitoring.
  Finally, under Security and Performance Tuning, look at Large
  Installation Tweaks
 
  On Mon, Sep 15, 2008 at 10:23 AM, Kenneth Holter [EMAIL PROTECTED]
 
  wrote:
   Hello all,
  
  
   I'm new to Nagios, and are planning on using Nagios for monitoring our
   network of Linux servers.
  
   Are there any best practice documents on how to manage the different
   definitions such as hostgroups, services, servicegroups, and so forth
 in
   an
   enterprise environment?
  
  
   Regards,
   Kenneth Holter
  
  
  
 -
   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

Re: [Nagios-users] Nagios configuraion best practice

2008-09-16 Thread Kenneth Holter
Thanks for the reply. I'll read the documents you listed.

Meanwhile, I have a design question: What's the best way to set up a service
check to be executed on a selected few (or maybe all for that matter) nodes?
Say I need to monitor a particular process (lets call this service A) on a
number of systems, how would I implement this? I guess one way would be to
link service A to a hostgroup, say hostgroup A, and add the selected systems
to that hostgroup. This, however, will somewhat clutter up the web display,
so I'm looking for alternative approaches.

Any suggestions?




On 9/15/08, dave stern - e-mail.pluribus.unum [EMAIL PROTECTED] wrote:

 Assuming you're already familiar with nagios, I'd look at the nagios
 documentation
 in the following order:

 Under Configuring nagios, look at Object definitions and make sure
   you understand all parameters and what would make sense in your
 environment
 Under Advanced Topics, look at Timesaving tips for object definitions
 Under Advanced Topics, look at host and service dependancies

 Under Advanced Topics, look at both Distributed Monitoring and
 Redundant and
   Failover Monitoring.
 Finally, under Security and Performance Tuning, look at Large
 Installation Tweaks

 On Mon, Sep 15, 2008 at 10:23 AM, Kenneth Holter [EMAIL PROTECTED]
 wrote:
  Hello all,
 
 
  I'm new to Nagios, and are planning on using Nagios for monitoring our
  network of Linux servers.
 
  Are there any best practice documents on how to manage the different
  definitions such as hostgroups, services, servicegroups, and so forth in
 an
  enterprise environment?
 
 
  Regards,
  Kenneth Holter
 
  -
  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
 

-
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] Nagios configuraion best practice

2008-09-15 Thread Kenneth Holter
Hello all,


I'm new to Nagios, and are planning on using Nagios for monitoring our
network of Linux servers.

Are there any best practice documents on how to manage the different
definitions such as hostgroups, services, servicegroups, and so forth in an
enterprise environment?


Regards,
Kenneth Holter
-
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