[Nagios-users-br] notifications_enabled

2009-04-13 Thread ikami
Boa tarde pessoal,
Estou com um problema que é, aparentemente, fácil de resolver mas estou 
apanhando um pouco para tal.
Tenho um servidor que está desligado a alguns dias. O Nagios corretamente 
começou a me enviar notificações de DOWN deste então. O problema é que não 
consigo fazer com o que o Nagios pare me enviar estas notificações. De hora em 
hora chega um email com o assunto: Host DOWN alert for BD-teste!
Já tentei algumas coisas:
1- Habilitar o Scheduled Downtime pela interface WEB. Nela esta constando 
atualmente este 'Downtime' ativo. - In Scheduled Downtime?  YES
2- Desabilitar as notificações no arquivos hosts.cfg. Ele está assim agora:

define host{
use generic-bd
host_name  BD-teste
alias   Srv. BD de teste
address  x.y.z.w
check_commandcheck-host-alive
max_check_attempts  10
notifications_enabled   0
notification_interval 120
notification_period  24x7
notification_options d,u,r
}

3- Este generic-bd que estou usando tem habilitada a opção de 
notifications_enabled   1. Já desabilitei tambem mas nao deu certo.
4- Já excutei o comando 'restart' e 'reload' diversas vezes.

Alguem tem ideia do que pode estar acontecendo??

Íkami Garajau de Castilho


  Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com
--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
-- 
Nagios-users-br@lists.sourceforge.net mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki


[Nagios-users] how to let nagios think host is online

2009-04-13 Thread Mika Chu
Hi all,
I have one host need to be monitoring, but it is not allow ping. So the
nagios plug-in check_ping can not work. Host line in the web page is red.
How can I let nagios think it is OK?
I checked the manual, about host definition, check_command

This directive is used to specify the *short name* of the command that
should be used to check if the host is up or down. Typically, this command
would try and ping the host to see if it is alive. The command must return
a status of OK (0) or Nagios will assume the host is down. If you leave this
argument blank, the host will *not* be actively checked. Thus, Nagios will
likely always assume the host is up (it may show up as being in a PENDING
state in the web interface). This is useful if you are monitoring printers
or other devices that are frequently turned off. The maximum amount of time
that the notification command can run is controlled by the
host_check_timeout option.

sorry, I don't understand what should I do. Please advice me.

Thanks a lot!

-- 
---
Mika Chu
--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-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] Service Dependency Config

2009-04-13 Thread Nair
Friends,
I need to define mutal dependancy between two web services in different hosts.

PLease see the config below which end up throwing error:
---
Error: A circular execution dependency (which could result in a deadlock) 
exists for service 'www' on host 'host2'!
---
# Service Dependency Definition for cfservd 
define servicedependency{
host_namehost1
service_description  www
dependent_host_namehost2
dependent_service_description  www
execution_failure_criteriao
notification_failure_criteria  c,p
}

define servicedependency{
host_namehost2
service_descriptionwww
dependent_host_name  host1
dependent_service_description  www  
execution_failure_criteriao
notification_failure_criteria  c,p
}

Please share your thoughts for getting the config right.

Thank you in advance  
Nair

--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-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] status map

2009-04-13 Thread Lei Chen
2009/4/9 Genet Tesfaye gen...@yahoo.com:
 Hi All,

 i have installed and configured nagios 3.0.6 on SUSE linux.i plan to monitor
 Servers, Printers and Switches for which i have added samples. i need help
 on how to configure:
 1. if i have more than two partitions on windows machine. i have managed to
 monitor c and D partitions but could't for the additional partition
why not other partitions, can u provide your conf files?
 2. i have a problem with the status map. clicking on it brings an error
 Object Not found
status map need gd support, download and install gd first, then re
configure/make and cp status map cgi to the proper position.

 Thank you very much
 GT from Ethiopia

 --
 This SF.net email is sponsored by:
 High Quality Requirements in a Collaborative Environment.
 Download a free trial of Rational Requirements Composer Now!
 http://p.sf.net/sfu/www-ibm-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




-- 
Thanks,
Chenlei  石头++
MSN Messenger: c...@163.com

--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-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] Integrating host notes into Nagios html...

2009-04-13 Thread Lei Chen
I think that action_url can do that.
Such as:
 action_url /some_dir/some_pages?host=$HOSTNAME$some_key=some_value

2009/4/10 Andrew Davis ncc...@gmail.com:
 I'm thinking about using something like sysreport to generate info about our
 hosts. It (and other tools like it) have the ability to output to html. To
 me that makes it somewhat logical to add a per-host html link into Nagios
 (clicking the host name would take you to a page that shows the detailed
 info). Have any of you tried this or something similar? Care to share your
 experience or what you edited, etc?

 --


   A. Davis
   Email: ncc...@gmail.com

   There is no limit to what a man can accomplish
if he doesn't care who gets the credit. - Ronald Reagan

 --
 This SF.net email is sponsored by:
 High Quality Requirements in a Collaborative Environment.
 Download a free trial of Rational Requirements Composer Now!
 http://p.sf.net/sfu/www-ibm-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




-- 
Thanks,
Chenlei  石头++
MSN Messenger: c...@163.com

--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-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] how to let nagios think host is online

2009-04-13 Thread Lei Chen
You can use other  check_command instead of  check_ping.
Such as check_tcp, check_http or other.

For example:
This is a router, not permmit ping, but it's port 23 is open.

define host{
use generic-switch  ; Inherit default
values from a template
host_name   qz-gw
alias   qz-gw
address x.x.x.x
parents sjhl-gw
icon_image  switch.gif
icon_image_alt  Switch
vrml_image  switch.gif
statusmap_image switch.gd2
hostgroups  gws
check_command   check_tcp!23
}


2009/4/13 Mika Chu ledondo2...@gmail.com:
 Hi all,
 I have one host need to be monitoring, but it is not allow ping. So the
 nagios plug-in check_ping can not work. Host line in the web page is red.
 How can I let nagios think it is OK?
 I checked the manual, about host definition, check_command

 This directive is used to specify the short name of the command that should
 be used to check if the host is up or down. Typically, this command would
 try and ping the host to see if it is alive. The command must return a
 status of OK (0) or Nagios will assume the host is down. If you leave this
 argument blank, the host will not be actively checked. Thus, Nagios will
 likely always assume the host is up (it may show up as being in a PENDING
 state in the web interface). This is useful if you are monitoring printers
 or other devices that are frequently turned off. The maximum amount of time
 that the notification command can run is controlled by the
 host_check_timeout option.

 sorry, I don't understand what should I do. Please advice me.

 Thanks a lot!

 --
 ---
 Mika Chu

 --
 This SF.net email is sponsored by:
 High Quality Requirements in a Collaborative Environment.
 Download a free trial of Rational Requirements Composer Now!
 http://p.sf.net/sfu/www-ibm-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




-- 
Thanks,
Chenlei  石头++
MSN Messenger: c...@163.com

--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-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] Service Dependency Config

2009-04-13 Thread Jim Avery
2009/4/13 Nair vman...@rediffmail.com:
 Friends,
 I need to define mutal dependancy between two web services in different
 hosts.

Define each as individual services in the usual way, then use Nagios
Business Process Addons http://nagiosbp.projects.nagiosforge.org/ to
define a service view which is dependent on both of those services.

Cheers,

Jim

--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-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] Service Dependency Config

2009-04-13 Thread Lei Chen
Not permmit a circular execution dependency here.

That may be like this:

define servicedependency{
host_namehost1
service_description  www
dependent_host_namehost3
dependent_service_description  www
execution_failure_criteriao
notification_failure_criteria  c,p
}

define servicedependency{
host_namehost2
service_descriptionwww
dependent_host_name  host3
dependent_service_description  www
execution_failure_criteriao
notification_failure_criteria  c,p
}

Or:
define servicedependency{
host_namehost1
service_description  www
dependent_host_namehost1
dependent_service_description  ping
execution_failure_criteriao
notification_failure_criteria  c,p
}

define servicedependency{
host_namehost2
service_descriptionwww
dependent_host_name  host1
dependent_service_description  ping
execution_failure_criteriao
notification_failure_criteria  c,p
}


2009/4/13 Nair vman...@rediffmail.com:
 Friends,
 I need to define mutal dependancy between two web services in different
 hosts.

 PLease see the config below which end up throwing error:
 ---
 Error: A circular execution dependency (which could result in a deadlock)
 exists for service 'www' on host 'host2'!
 ---
 # Service Dependency Definition for cfservd
 define servicedependency{
 host_namehost1
 service_description  www
 dependent_host_namehost2
 dependent_service_description  www
 execution_failure_criteriao
 notification_failure_criteria  c,p
 }

 define servicedependency{
 host_namehost2
 service_descriptionwww
 dependent_host_name  host1
 dependent_service_description  www
 execution_failure_criteriao
 notification_failure_criteria  c,p
 }

 Please share your thoughts for getting the config right.

 Thank you in advance
 Nair


 --
 This SF.net email is sponsored by:
 High Quality Requirements in a Collaborative Environment.
 Download a free trial of Rational Requirements Composer Now!
 http://p.sf.net/sfu/www-ibm-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




-- 
Thanks,
Chenlei  石头++
MSN Messenger: c...@163.com

--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-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] Service Dependency Config

2009-04-13 Thread Nair
Thanks you, Lei. But, I have two web servers in cluster. Webserver may be 
online in any one of the servers. So I have defined www services in web servers 
- host1 and host2. And dont need an alert when www is online in any one of the 
servers.

Is there any config to support this senario.

Thank you
Nair.


On Mon, 13 Apr 2009 Lei Chen wrote :
Not permmit a circular execution dependency here.

That may be like this:

define servicedependency{
host_namehost1
service_description  www
dependent_host_namehost3
dependent_service_description  www
execution_failure_criteriao
notification_failure_criteria  c,p
}

define servicedependency{
host_namehost2
service_descriptionwww
dependent_host_name  host3
dependent_service_description  www
execution_failure_criteriao
notification_failure_criteria  c,p
}

Or:
define servicedependency{
host_namehost1
service_description  www
dependent_host_namehost1
dependent_service_description  ping
execution_failure_criteriao
notification_failure_criteria  c,p
}

define servicedependency{
host_namehost2
service_descriptionwww
dependent_host_name  host1
dependent_service_description  ping
execution_failure_criteriao
notification_failure_criteria  c,p
}


2009/4/13 Nair vman...@rediffmail.com:
  Friends,
  I need to define mutal dependancy between two web services in different
  hosts.
 
  PLease see the config below which end up throwing error:
  ---
  Error: A circular execution dependency (which could result in a deadlock)
  exists for service 'www' on host 'host2'!
  ---
  # Service Dependency Definition for cfservd
  define servicedependency{
  host_namehost1
  service_description  www
  dependent_host_namehost2
  dependent_service_description  www
  execution_failure_criteriao
  notification_failure_criteria  c,p
  }
 
  define servicedependency{
  host_namehost2
  service_descriptionwww
  dependent_host_name  host1
  dependent_service_description  www
  execution_failure_criteriao
  notification_failure_criteria  c,p
  }
 
  Please share your thoughts for getting the config right.
 
  Thank you in advance
  Nair
 
 
  --
  This SF.net email is sponsored by:
  High Quality Requirements in a Collaborative Environment.
  Download a free trial of Rational Requirements Composer Now!
  http://p.sf.net/sfu/www-ibm-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
 



--
Thanks,
Chenlei  ʯͷ++
MSN Messenger: c...@163.com


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-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] Service Dependency Config

2009-04-13 Thread Marc Powell

On Apr 13, 2009, at 8:37 AM, Nair wrote:

 Thanks you, Lei. But, I have two web servers in cluster. Webserver  
 may be online in any one of the servers. So I have defined www  
 services in web servers - host1 and host2. And dont need an alert  
 when www is online in any one of the servers.


It sounds like you want to use the check_cluster plugin, not service  
dependencies...

--
Marc


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-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] i want post in nagios-users mail list

2009-04-13 Thread Mihail N Bogdanov
mbogda...@ncport.ru

-- 
Mihail N. Bogdanov,
Programmer of Software Design Dept., mbogda...@ncport.ru
Newcom Port JSC


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-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] Name or service not known

2009-04-13 Thread Marc DeTrano
On Wednesday 08 April 2009 14:41:27 Thierry Lavall?e wrote:

  Hi,
  I am getting the following about 50 times per day:
 
  HTTPCRITICAL04-08-2009 09:37:29 0d 0h 1m 50s1/4 
  Name or service not
  known SSH   UNKNOWN 04-08-2009 09:34:39 0d 0h 4m 40s1/4 
  Usage:check_ssh
  [-46] [-t timeout] [-r remote version] [-p port] host
 
  I am somewhat at lost here...
  Can anyone help with this?
   
I'd recommend to first check your DNS setup on the machine.  If that's good, 
monitor your DNS servers.

Marc
Gridshield, S.A.



--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-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] Service Dependency Config

2009-04-13 Thread Jim Avery
2009/4/13 Nair vman...@rediffmail.com:
 Thanks you, Lei. But, I have two web servers in cluster. Webserver may be
 online in any one of the servers. So I have defined www services in web
 servers - host1 and host2. And dont need an alert when www is online in any
 one of the servers.

 Is there any config to support this senario.

 Thank you
 Nair.

Another option is you could define the cluster address as a host in
its own right, and specify host1 and host2 as parents.

Cheers,

Jim

--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-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] Compliance: Re: check_snmp memory leak

2009-04-13 Thread Chris Beattie
jmose...@corp.xanadoo.com wrote:
 
 The real question, though, is since you're using Cent OS, why not use the
 Nagios RPM's available via yum repository?  It makes upgrading and keeping
 track of dependencies a breeze.

A long time ago I got frustrated with a package provider installing 
Nagios in a different location.  I'd been compiling Nagios from source 
since the NetSaint days, so I just went back to doing what I'd always 
done.  That's worked on Red Hat 7.x, various Fedora versions, RHEL4, 
CentOS 5.x, and Debian so far.

I do use the disto provider's mechanisms to take care of Nagios' 
dependencies, however.  That does make life much easier than the RPM 
Hell days!

-- 
Chris Beattie

--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-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] check_snmp memory leak

2009-04-13 Thread Mark Krenz

  Think your so smart, then why doesn't the Fedora quickinstall in the
Nagios manual just tell you to do that. ;-) 

  Doh!
 
On Sun, Apr 12, 2009 at 11:26:36PM GMT, jmose...@corp.xanadoo.com 
[jmose...@corp.xanadoo.com] said the following:
 
 The real question, though, is since you're using Cent OS, why not use the
 Nagios RPM's available via yum repository?  It makes upgrading and keeping
 track of dependencies a breeze.
 
 Not sure what the problem was, but I compiled Nagios 3.0.6 on a RHEL 3
 system using the exact options that were found in the RPM spec file.  I
 ended up with a nagios binary that was twice as large as the one that came
 in the RPM package and the version I compiled myself ran using more memory
 and processor resources than the RPM version.  The difference was probably
 the compiler flags I was using were not optimized for my (or any RHEL)
 system.
 
 Nine times out of ten, using yum rpm's will ultimately end up yielding
 better results when factoring in system performce, upgrades, etc - and save
 tons of time and headaches.  That's why you're using RHEL, right?  Yes, I
 still have to make RPM's via compilation of source RPM's when the yum
 repository version doesn't include the feature's I need.  For example, I
 have to roll my own Postfix because I need mysql support.
 
 
 James Moseley
 
 
 
 

  Mark Krenz
  m...@suso.org   
 To 
  04/12/2009 09:20  nagios-users@lists.sourceforge.net  
  AM cc 

Subject 
Re: [Nagios-users] check_snmp   
memory leak 






 
 
 
 
 
 Nevermind, figured it out.  I just tried recompiling without the
 --enable-embedded-perl option and that seems to have fixed it. Now the
 memory usage is staying at just a couple MB.
 
 Not sure why check_snmp was the only check that seemed to aggravate it
 though.
 


-- 
Mark S. Krenz
IT Director
Suso Technology Services, Inc.
http://suso.org/

--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-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] i want post in nagios-users mail list

2009-04-13 Thread Marc Powell
Error -3324:  Access Granted

On Apr 13, 2009, at 9:12 AM, Mihail N Bogdanov wrote:

 mbogda...@ncport.ru

--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-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] check_snmp memory leak

2009-04-13 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 12/04/09 07:26 PM, jmose...@corp.xanadoo.com wrote:
 You could have also just disabled the embedded perl interpreter in the
 plugin itself.  By disabling the embedded perl function, your load  and
 memory usage will certainly be higher.
 
 The real question, though, is since you're using Cent OS, why not use the
 Nagios RPM's available via yum repository?  It makes upgrading and keeping
 track of dependencies a breeze.
 
 Not sure what the problem was, but I compiled Nagios 3.0.6 on a RHEL 3
 system using the exact options that were found in the RPM spec file.  I
 ended up with a nagios binary that was twice as large as the one that came
 in the RPM package and the version I compiled myself ran using more memory
 and processor resources than the RPM version.  The difference was probably
 the compiler flags I was using were not optimized for my (or any RHEL)
 system.

Are you sure your nagios binaries have been stripped?
 $ ls -lh /usr/src/nagios-3.0.1-cvs/base/nagios /usr/local/nagios/bin/nagios
 -rwxrwxr-- 1 nagios nagios 1.5M 2008-05-06 11:15 /usr/local/nagios/bin/nagios*
 -rwxr-xr-x 1 user   user   2.1M 2008-05-06 10:08 
 /usr/src/nagios-3.0.1-cvs/base/nagios*
 $ file /usr/src/nagios-3.0.1-cvs/base/nagios /usr/local/nagios/bin/nagios
 /usr/src/nagios-3.0.1-cvs/base/nagios: ELF 32-bit LSB executable, Intel 
 80386, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
 /usr/local/nagios/bin/nagios:  ELF 32-bit LSB executable, Intel 
 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped

The memory and processor (system time) is directly related to the size
of the running process (which includes executable image size). Every
time Nagios executes a check it has to fork two or three times
(depending on configuration) and the kernel has to map/copy the
executable memory for the new processes. Performance degradation can
become even worse on systems that does not support copy-on-write for
forked processes as they perform a full copy of the process memory
during forks only to free it seconds later.

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

iD8DBQFJ42Sl6dZ+Kt5BchYRAkMpAKCZTMJLOmfelHxjRfwOcV3qfYyrIACeMwaC
8u+QBWjmHfSjOvcYg3pQhK4=
=pL0b
-END PGP SIGNATURE-

--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-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] Apache Server configuration for Nagios 3.0

2009-04-13 Thread Jimmyboy
Hi All,

I am following the Quickstart Guide for installing NAGIOS using
http://nagios.sourceforge.net/docs/3_0/quickstart-ubuntu.html.

One of the prerequisites is Apache2, which I installed, and was successful
in getting *It Works!!* for http://127.0.0.1.

However, I am stuck at point 5) Configure the Web Interface, *make
install-webconf*.

*When this command is issued, this is what I get*.
/usr/bin/install -c -m 644 sample-config/httpd.conf
/etc/httpd/conf.d/nagios.conf
/usr/bin/install: cannot create regular file
'/etc/httpd/conf.d/nagios.conf': No such file or directory
make: *** [install-webconf] Error 1

Prefix for Apache: /etc/apache2

I believe the httpd.conf file and a few others also need to be edited for
Nagios. Can some please guide me through this?


Thanks,
Jim
--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-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] Fwd: Apache Server configuration for Nagios 3.0

2009-04-13 Thread Jimmyboy
Hi,

On reading https://help.ubuntu.com/8.10/serverguide/C/httpd.html, I
understand that /etc/apache2/*apache2.conf* is the most important file.
Though I have installed Apache in */etc/apache2* location, I do not have
apache2.conf file as mentioned in the site.

However, when I stop/start the Apache service using the
command '/etc/apache2/bin/apachectl -k stop/start' respectively, and check
http://127.0.0.1 and ps -A | grep httpd, the results are OK.

Thanks,
Jim

=-=-=-=-=

-- Forwarded message --
From: Jimmyboy jimmyjose2...@gmail.com
Date: Mon, Apr 13, 2009 at 11:49 PM
Subject: Apache Server configuration for Nagios 3.0
To: nagios-users@lists.sourceforge.net


Hi All,

I am following the Quickstart Guide for installing NAGIOS using
http://nagios.sourceforge.net/docs/3_0/quickstart-ubuntu.html.

One of the prerequisites is Apache2, which I installed, and was successful
in getting *It Works!!* for http://127.0.0.1.

However, I am stuck at point 5) Configure the Web Interface, *make
install-webconf*.

*When this command is issued, this is what I get*.
/usr/bin/install -c -m 644 sample-config/httpd.conf
/etc/httpd/conf.d/nagios.conf
/usr/bin/install: cannot create regular file
'/etc/httpd/conf.d/nagios.conf': No such file or directory
make: *** [install-webconf] Error 1

Prefix for Apache: /etc/apache2

I believe the httpd.conf file and a few others also need to be edited for
Nagios. Can some please guide me through this?


Thanks,
Jim
--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-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] Integrating host notes into Nagios html...

2009-04-13 Thread Marco Tirado
Actually it is the notes_url you are interested in, this is a variable you
can set in the host definition.

The action url is normally used to display extra actions for a host, this is
normally a pnp graph with the host performance data from pnp4nagios,
nagiosgraph or some other graphing plugin.

From the nagios documentation:

*notes_url: This variable is used to define an optional URL that can be used
to provide more information about the host. If you specify an URL, you will
see a red folder icon in the CGIs (when you are viewing host information)
that links to the URL you specify here. Any valid URL can be used. If you
plan on using relative paths, the base path will the the same as what is
used to access the CGIs (i.e. **/cgi-bin/nagios/). This can be very useful
if you want to make detailed information on the host, emergency contact
methods, etc. available to other support staff.
*
//Marco

2009/4/13 Lei Chen clo...@gmail.com

 I think that action_url can do that.
 Such as:
  action_url /some_dir/some_pages?host=$HOSTNAME$some_key=some_value

 2009/4/10 Andrew Davis ncc...@gmail.com:
  I'm thinking about using something like sysreport to generate info about
 our
  hosts. It (and other tools like it) have the ability to output to html.
 To
  me that makes it somewhat logical to add a per-host html link into Nagios
  (clicking the host name would take you to a page that shows the detailed
  info). Have any of you tried this or something similar? Care to share
 your
  experience or what you edited, etc?
 
  --
 
 
A. Davis
Email: ncc...@gmail.com
 
There is no limit to what a man can accomplish
 if he doesn't care who gets the credit. - Ronald Reagan
 
 
 --
  This SF.net email is sponsored by:
  High Quality Requirements in a Collaborative Environment.
  Download a free trial of Rational Requirements Composer Now!
  http://p.sf.net/sfu/www-ibm-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
 



 --
 Thanks,
 Chenlei  石头++
 MSN Messenger: c...@163.com


 --
 This SF.net email is sponsored by:
 High Quality Requirements in a Collaborative Environment.
 Download a free trial of Rational Requirements Composer Now!
 http://p.sf.net/sfu/www-ibm-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
--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-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] initial setups, hostgroup help requested

2009-04-13 Thread lance raymond




still getting things in order, and having a problem with adding my 1st
hostgroup. Side note, is there any kind of logging, or debugging to
see where a failure occurs? Ex. I add a new config file with the
following basic line in the main conf;
 cfg_file=/usr/local/nagios/etc/hostgroups.cfg
The file has the following;
 define hostgroup{
 hostgroup_name webservers
   alias webservers
   contact_groups sysadmins
   members cs0
   }

The alias I just made up, the contact group sysadmin's exists and the
member cs0 is one of my webservers. In the actual server.cfg file for
that server I have a line;
 hostgroups  webservers

I don't know if that needs to be there as I am defining his as a member
in the hostgroups.cfg file.

Keeping things like this I start nagios and simply get;
Starting nagios:CONFIG ERROR! Start aborted. Check your Nagios
configuration.
(which is why I am looking as the nagios.log says nothing helpful.

Now if I comment out the hostgroup line in the main conf, things start,
but I would like to use hostgroups for the obvious reasons. I am sure
these and the new ones will be pretty basic as the needs are simple,
and if I can debug where it stopping would be even easier, but again,
this will be a1 or 2 sentence reply I bet!

Tnx





--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-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] initial setups, hostgroup help requested

2009-04-13 Thread Marc Powell

On Apr 13, 2009, at 3:49 PM, lance raymond wrote:

 still getting things in order, and having a problem with adding my  
 1st hostgroup.  Side note, is there any kind of logging, or  
 debugging to see where a failure occurs?

run /path/to/nagios -v /path/to/nagios.cfg

   Ex. I add a new config file with the following basic line in the  
 main conf;
 cfg_file=/usr/local/nagios/etc/hostgroups.cfg
 The file has the following;
 define hostgroup{
hostgroup_name webservers
aliaswebservers
contact_groupssysadmins
memberscs0
}

 The alias I just made up, the contact group sysadmin's exists and  
 the member cs0 is one of my webservers.  In the actual server.cfg  
 file for that server I have a line;
 hostgroupswebservers

 I don't know if that needs to be there as I am defining his as a  
 member in the hostgroups.cfg file.

It needs to be in one or the other, not both; either on the members  
line in the hostgroup definition or the hostgroup specified in the  
service definition (I think the latter is more maintainable, IMHO).

--
Marc


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-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] Chan, Brian is out of the office.

2009-04-13 Thread Brian Chan

I will be out of the office starting  04/13/2009 and will not return until
04/14/2009.

I will respond to your message when I return.



--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-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] APC UPS Monitoring Setup.

2009-04-13 Thread David A.
Thank you, James.

Turns out I had two problems.

I edited my command definition in the commands.cfg file to match yours (I
actually had that at one point, but changed it when I could not the plugin
to work!)

I then used the switch.cfg sample file to set up the host, group and service
definitions.

And that is when I discovered my second problem.  After editing the
nagios.cfg file to include a pointer to my ups monitoring config file I ran
the verification command (/usr/local/nagios/bin/nagios -v
/usr/local/nagios/etc/nagios.cfg) and got the same darned WARNING (null
value on line 48) message I have been getting all weekend!  I don't know
what made me do it this time, but I decided to check the nagios.cfg file for
errors.  I had an error in my pointer line -- used a - isntead of an =.
$%@#$*!

Sigh.  All is well now.

Thanks again.  And I ran out this morning and picked up Wolfgang Barth's
book on Nagios to assist me with the rest of my configurations.



On Sun, Apr 12, 2009 at 10:26 PM, jmose...@corp.xanadoo.com wrote:

 Remember to CC the nagios users' list...  From looking at the script, it
 doesn't look like there are any options for setting critical/warning
 thresholds for temperature, load, etc.  It appears they are all predefined.

 In that case, the command configuration would look something like:

 define command {
  command_name check_apcups
  command_line $USER1$/check_snmp_apcups -H $HOSTADDRESS$ -C $ARG1$
 }

 The service check configuration would look like:

 define service{ use
 generic-service host_name  apc-smart-ups
 service_description APC_STATUS check_command
 check_apcups!public
 }

 Obviously, you would replace 'public' above with whatever SNMP community
 string you have setup...

 The host group and host defintions you supplied earlier should be fine.
 Remember, this script is fairly elementary in that it appears it
 predetermines all the critical/warning levels for things like temp, battery
 capacity, input/output voltage, etc.  So, there's nothing else you need to
 do.  It will either return an 'OK' value or generate a critical or warning
 alert with the simple configuration above.  Obviously, you could edit the
 script to change any of the thresholds by hardcoding them into the script,
 or you could modify it to accept warning/critical threshold limits as
 variables.



 James Moseley


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-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] Fwd: Apache Server configuration for Nagios 3.0

2009-04-13 Thread James Pratt
Hi - sounds like your issue is that the generic make install in nagios
src tries to drop a file called nagios.conf into httpd's (usually the
default) location, /etc/httpd/conf.d/, which, appears does not exist on
your server...

If you can find what directory your apache uses for /etc/httpd/conf.d/
you can manually copy and paste whatever is in nagios.conf (the one
trying to be installed from nagios src dir) into your
/etc/httpd/conf/httpd.conf (You can likely disregard the
apache2.conf stuff - sounds like they used their own file naming, as
the default is normally httpd.conf)  - Apache itself is very flexible,
there are many ways to configure it - nagios simply guesses you are
using redhat, so it tries to drop it's httpd config into
/etc/httpd/conf.d)

HTH ... 

Regards,
jamie

 -Original Message-
 From: Jimmyboy [mailto:jimmyjose2...@gmail.com]
 Sent: Monday, April 13, 2009 2:25 PM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Fwd: Apache Server configuration for Nagios
3.0
 
 Hi,
 
 On reading https://help.ubuntu.com/8.10/serverguide/C/httpd.html, I
 understand that /etc/apache2/apache2.conf is the most important file.
 Though I have installed Apache in /etc/apache2 location, I do not have
 apache2.conf file as mentioned in the site.
 
 However, when I stop/start the Apache service using the command
 '/etc/apache2/bin/apachectl -k stop/start' respectively, and check
 http://127.0.0.1 http://127.0.0.1/  and ps -A | grep httpd, the
results
 are OK.
 
 Thanks,
 Jim
 
 =-=-=-=-=
 
 
 -- Forwarded message --
 From: Jimmyboy jimmyjose2...@gmail.com
 Date: Mon, Apr 13, 2009 at 11:49 PM
 Subject: Apache Server configuration for Nagios 3.0
 To: nagios-users@lists.sourceforge.net
 
 
 
 Hi All,
 
 I am following the Quickstart Guide for installing NAGIOS using
 http://nagios.sourceforge.net/docs/3_0/quickstart-ubuntu.html.
 
 One of the prerequisites is Apache2, which I installed, and was
successful
 in getting It Works!! for http://127.0.0.1 http://127.0.0.1/ .
 
 However, I am stuck at point 5) Configure the Web Interface, make
install-
 webconf.
 
 When this command is issued, this is what I get.
 /usr/bin/install -c -m 644 sample-config/httpd.conf
 /etc/httpd/conf.d/nagios.conf
 /usr/bin/install: cannot create regular file
 '/etc/httpd/conf.d/nagios.conf': No such file or directory
 make: *** [install-webconf] Error 1
 
 Prefix for Apache: /etc/apache2
 
 I believe the httpd.conf file and a few others also need to be edited
for
 Nagios. Can some please guide me through this?
 
 
 Thanks,
 Jim
 
 


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-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] Files Missing While upgrading.

2009-04-13 Thread Jai Ram
Hello,

I have upgraded nagios from version 2.8 to 3.0.6 on Solaris-10. When I was
going through upgrade it has requested me for *statusmap.cgi*,*histogram.cgi
* and *trends.cgi*, was not found so I copied it from version 2.8.

** Is this because the above three files belongs to Version 2.8, If so how
would i get those three files for Nagios-3.0.6. I looked in to Nagios-3.0.6
and those three files are missing. So how do I compile them for
Nagios-3.0.6**

**When I try to access from webinterface below is the situation I am facing.

When I click trends on the webinterface

Host and Service State Trends
Last Updated: Mon Apr 13 18:56:33 EDT 2009
Logged in as *nagiosadmin*
- Notifications are disabled
- Service checks are disabled




 When I click Alert Histogram on the webinterface

Whoops!

*Error: Could not read object configuration data!*

Here are some things you should check in order to resolve this error:


   1. Verify configuration options using the *-v* command-line option to
   check for errors.
   2. Check the Nagios log file for messages relating to startup or status
   data errors.
   3. Make sure you've compiled the main program and the CGIs to use the
   same object data storage options (i.e. default text file or template-based
   file).

Make sure you read the documentation on installing, configuring and running
Nagios thoroughly before continuing. If all else fails, try sending a
message to one of the mailing lists. More information can be found at
http://www.nagios.org.


and when I click Status Map on webinterface

Whoops!

*Error: Could not read object configuration data!*

Here are some things you should check in order to resolve this error:


   1. Verify configuration options using the *-v* command-line option to
   check for errors.
   2. Check the Nagios log file for messages relating to startup or status
   data errors.
   3. Make sure you've compiled the main program and the CGIs to use the
   same object data storage options (i.e. default text file or template-based
   file).

Make sure you read the documentation on installing, configuring and running
Nagios thoroughly before continuing. If all else fails, try sending a
message to one of the mailing lists. More information can be found at
http://www.nagios.org

Any help in this is highly appreciated. http://www.nagios.org/



Thanks http://www.nagios.org/

Jai.
http://www.nagios.org/
--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-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] Files Missing While upgrading.

2009-04-13 Thread Marc Powell

On Apr 13, 2009, at 6:10 PM, Jai Ram wrote:

 Hello,

 I have upgraded nagios from version 2.8 to 3.0.6 on Solaris-10. When  
 I was going through upgrade it has requested me for  
 statusmap.cgi,histogram.cgi and trends.cgi, was not found so I  
 copied it from version 2.8.

 ** Is this because the above three files belongs to Version 2.8, If  
 so how would i get those three files for Nagios-3.0.6. I looked in  
 to Nagios-3.0.6 and those three files are missing. So how do I  
 compile them for Nagios-3.0.6**

It's because the GD libs (devel) are not installed or were not found  
in standard locations. There's a FAQ entry for it but it looks like  
the FAQ is broken right now. Examine the output of ./configure or  
config.log for information and links.

if the GD devel libraries are installed, you may need to pass their  
location to ./configure with --

--with-gd-lib=DIR sets location of the gd library
--with-gd-inc=DIR sets location of the gd include files

--
Marc

--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-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] i want post in nagios-users mail list

2009-04-13 Thread Onotsky, Steve x55328
Mission accomplished.


-Original Message-
From: Mihail N Bogdanov [mailto:mbogda...@ncport.ru] 
Sent: April 13, 2009 10:12
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] i want post in nagios-users mail list

mbogda...@ncport.ru

-- 
Mihail N. Bogdanov,
Programmer of Software Design Dept., mbogda...@ncport.ru
Newcom Port JSC

This message and any attachments are intended only for the use of the addressee 
and
may contain information that is privileged and confidential. If the reader of 
the 
message is not the intended recipient or an authorized representative of the
intended recipient, you are hereby notified that any dissemination of this
communication is strictly prohibited. If you have received this communication in
error, please notify us immediately by e-mail and delete the message and any
attachments from your system.


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-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] Pppnp4nagios graph customization

2009-04-13 Thread mohandas . k
Hi Mad, 

I have checked and tried to changed php template  file of   Swap 
Utilization but am not able to generate colors in graph as per service 
status (i.e. Green,Yellow,Red as per service status ). Have attached php 
file and graph as well for your reference. obviously I have changed 
hostname in PHP file.

I am not PHP expert to make changes in pnp template.

Could you please suggest what changes need to make for the same ? 

 




Mohandas Kudva K
ASE
Tata Consultancy Services
Cell:- +91 9619144048
Mailto: mohanda...@tcs.com
Website: http://www.tcs.com

Experience certainty.   IT Services
Business Solutions
Outsourcing




MAD sri.lu...@free.fr 
04/09/2009 08:33 PM

To
mohandas k mohanda...@tcs.com
cc
nagios-users@lists.sourceforge.net
Subject
Re: [Nagios-users] Pppnp4nagios graph customization






I managed to create some templates graphing in different colors according 
to the threshold defined with your services

This will graph in green if the value is under the warning threshold, in 
yellow if it is between warning and critical threshold and red if it is 
beyond critical threshold or unknown...

I don't know how to do this if the performance and the state are 
independent (for example if perf are the execution time of the check 
script...)

Marc-André


- Mail Original -
De: mohandas k mohanda...@tcs.com
À: nagios-users@lists.sourceforge.net
Envoyé: Jeudi 9 Avril 2009 15h30:05 GMT +01:00 Amsterdam / Berlin / Berne 
/ Rome / Stockholm / Vienne
Objet: [Nagios-users] Pppnp4nagios graph customization



Hi All, 

We have installed nagios (3.0.5) on Solaris sparc box and configured 
rrdtool (1.2.19) along with pnp4nagios- npcd (0.4.13) for dashboard/graph. 


By default we are getting following graph for locolhost free swap. I want 
to configure following requirements : 

(1) can we add more variable (i.e say Total Swap ) in graph ? 

(2) Can we create different-different color in graph for 
different-different status critical- RED,OK-Green,Warnijng-Yellow ? 

(3) last question how can we change graph updation time interval (here 
it's showing as 20 Minutes) however in our service definition,it's 10 
Minutes 

Following is default graph for your better understanding : 



=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you 
--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-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
ForwardSourceID:NT0F5E 
=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you


image/gif?php
#
# Template for check_swap
# Copyright (c) 2006-2008 Joerg Linge (http://www.pnp4nagios.org)
# $Id: check_swap.php 367 2008-01-23 18:10:31Z pitchfork $
#
#
# RRDtool Options
$opt[1] = -X 0 --vertical-label MB -l 0 -u $MAX[1] --title \Swap Utilization 
HOST=HOST1 \ ;
#
#
# Graphen Definitions

if ($WARN[1] != ) {
$warnThresh = $WARN[1];
$def[1] .= HRULE:$WARN[1]#00 ;
}
if ($CRIT[1] != ) {
$critThresh = $CRIT[1];
$def[1] .= HRULE:$CRIT[1]#ff ;
}

if($NAGIOS_SERVICESTATE == WARNING){
$couleurEtat = 00;
}
if($NAGIOS_SERVICESTATE == CRITICAL){
$couleurEtat = ff;
}

$def[1] .= DEF:var1=$rrdfile:$DS[1]:AVERAGE ;
$def[1] .= AREA:var1#c6c6c6:\Swap used\\n\ ;
$def[1] .= LINE1:var1#003300: ;
$def[1] .= HRULE:$MAX[1]#003300:\Total Capacity $MAX[1] MB \ ;
$def[1] .= HRULE:$WARN[1]#00:\Warning on $WARN[1] MB \ ;
$def[1]