Re: [Nagios-users-br] Nagios-users-br Digest, Vol 14, Issue 17

2007-08-22 Thread guimba guimba
Não estou usando o seu pacote não.. to tentando usar um que peguei no 
nagiosexchange ... o que eu não to conseguindo fazer é sacar como configurar o 
plugin na maquina que tem o banco, e na maquina que tem o nagios.. eu consigo 
estabelecer comunicação entre as duas via o client do Oracle... mas não saquei 
como construir o comando dentro do command.cfg e o que configurar no micro do 
banco... ou no micro do banco não precisa nada
  

[EMAIL PROTECTED] escreveu:
  Send Nagios-users-br mailing list submissions to
nagios-users-br@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]

You can reach the person managing the list at
[EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than Re: Contents of Nagios-users-br digest...


Today's Topics:

1. Re: Nagios - Oracle (Jose Oliveira)
2. Re: Res: Imagens (Jose Augusto)
3. Re: Ajuda :( (Jose Oliveira)


--

Message: 1
Date: Tue, 21 Aug 2007 16:58:55 -0300
From: Jose Oliveira 
Subject: Re: [Nagios-users-br] Nagios - Oracle
To: Unofficial Brazilian (Portuguese) Nagios Users List

Message-ID:
[EMAIL PROTECTED]
Content-Type: text/plain; charset=ISO-8859-1

?pa

Qual plugin voce est? tentando? Meu pacote de plugins ? velho pacas...



Em 21/08/07, guimba guimba escreveu:

 Pessoal,
 Preciso de ajuda quanto ao monitoramento de um banco de dados oracle...
 n?o consigo configurar plugin algum... d? sempre erro... ou me retorna a
 informa??o de null.
 O banco de dados esta instalado numa maquina com Windows2003, e o Nagios
 num Red Hat Enterprise. No Red Hat eu instalei o Instant Client do Oracle, e
 consigo estabelecer conex?o com o Banco de dados.
 Gostaria de testar Table Space.. mas n?o estou entendendo como
 configurar o plug-in... copiei o plug-in pra pasta libexec... mas n?o sei
 como criar o comando dentro do arquivo commands.cfg... e como criar um
 servi?o para isso... se alguem puder me enviar o arquivo de configura??o..
 ou postar como fez a configura??o... estou dando cabe?ada nisso e nao to
 saidno do lugar


 Flickr agora em portugu?s. Voc? clica, todo mundo v?. Saiba mais.
 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems? Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now  http://get.splunk.com/
 --
 Nagios-users-br@lists.sourceforge.net mailing list
 https://lists.sourceforge.net/lists/listinfo/nagios-users-br
 Wiki: http://nagios-br.sf.net/wiki




-- 

Abra?os
JGeraldo


--

Message: 2
Date: Tue, 21 Aug 2007 17:13:32 -0300
From: Jose Augusto 
Subject: Re: [Nagios-users-br] Res: Imagens
To: Unofficial Brazilian (Portuguese) Nagios Users List

Message-ID:
[EMAIL PROTECTED]
Content-Type: text/plain; charset=ISO-8859-1

Uia,
Agora foi o.O

Eu sou um dos que mais movimenta a lista, aheuaheuau!! So chato pacas :)

Habilite o 3d map aqui tb :)

BOm, s? pra dar meus 3 centavos, s? baixar a extens?o pro FF.

Este CGI cria um modelo VRML 3-D de todos os hosts, fa?a o download de um
VRML Browser. Voc? encontra alguns em:

- http://www.parallelgraphics.com/cortona/
- http://www.cosmosoftware.com/
- http://www.intervista.com/



Aproveitando,
Eu instalei o NRPE no cliente Linux :) s? que no Nagios (STATUS
INFORMATION) fica assim:

CHECK_NRPE: Error - Could not complete SSL handshake.


Eu n?o sei o que ?? Eu instalei o NRPE no cliente linux, adicionei no
XINETD, restartei, e dei

./nrpe -c nrpe.cfg -d

Teoricamente o NRPE t? rodando :)

Algu?m j? passou por isso?

Vlws Galera

PS: Em breve vou divulgar um artigo no VivaoLinux com estes passos que eu
aprendi aqui!




Em 21/08/07, ikami  [EMAIL PROTECTED] escreveu:

 Ola Jose Augusto,
 Se nao me engano (alguem me corrija se eu estiver errado) a pasta raiz
 (inicial) do diretorios de imagens eh o
 /usr/local/nagios/share/images/logos. Entao, tome ela como base.
 Se voce quiser colocar as imagens em /usr/local/nagios/share/images
 coloque no campo icon_image ../win40.png. Se quiser no
 /usr/local/nagios/share/images/base coloque ../base/win40.png e por
 assim vai.
 Isso funciona se vc nao mexeu na configuracao original do cgi.cfg no campo
 physical_html_path=/usr/local/nagios/share
 Outra coisa, eu nao lembro se no statusmap ele aceita figuras png. Sei q
 gif nao funciona (ja testei em varios servidores e nao funcionou). Entao,
 procure colocar gd2 e png, se funcionar, para o statusmap e qualquer outro
 formato (png, gif, gd2) para o resto.
 Outra coisa, voce compilou o seu nagios para suporte a esses tipos de
 arquivos? Verifique se sim.
 Testa ai e veja se funciona!

 ?kami

 Jose Augusto escreveu: Eu tentei colocar as
 

Re: [Nagios-users-br] Nagios-users-br Digest, Vol 14, Issue 17

2007-08-22 Thread Jose Oliveira
Oi

Quando eu escrevi meu pacote não quiz dizer o plugin que escrevi mas o
nagios-plugins que está disponível no site oficial do Nagios.

Eu tenho o nagios-plugins versão 1.3.1 e provavelmente o plugin que voce
está tentando usar não está disponível no meu pacote.

para implementar, o que voce precisa fazer primeiro é fazer o plugin
funcionar na linha de comando, utilizando o usuário que executa o seu
nágios. Se voce mandar um check_x -h no diretorio NAGIOS_HOME/libexec
voce verá as opções de parâmetros e (provavelmente) alguma instrução do que
precisa para que o danado funcione.

Depois que ele funcionar, colocar no Nagios é moleza...

Normalmente o micro do banco não precisa de nada, pois o plugin acessa o
Banco via sql*net do cliente instalado na máquina do Nagios ou até de algum
pacote interno, que eu sei que o perl tem, bem como java (com jdbc).


Em 22/08/07, guimba guimba [EMAIL PROTECTED] escreveu:

 Não estou usando o seu pacote não.. to tentando usar um que peguei no
 nagiosexchange ... o que eu não to conseguindo fazer é sacar como configurar
 o plugin na maquina que tem o banco, e na maquina que tem o nagios.. eu
 consigo estabelecer comunicação entre as duas via o client do Oracle... mas
 não saquei como construir o comando dentro do command.cfg e o que
 configurar no micro do banco... ou no micro do banco não precisa nada




-- 

Abraços
JGeraldo
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
-- 
Nagios-users-br@lists.sourceforge.net mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki


Re: [Nagios-users-br] Ajuda :(

2007-08-22 Thread Linux
 Mas eu defini no services não?
 
 define service{
 contact_groups administrador

Sim e não. Você definiu aqui quem vai receber as mensagens para esse
serviço. Mas você tem que definir também quem faz parte deste grupo. Como já
falei no mail anterior...


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
-- 
Nagios-users-br@lists.sourceforge.net mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki


[Nagios-users-br] E-mail

2007-08-22 Thread Jose Augusto
Olha eu de novo, heheheeh!!

Galera, meu nagios não tá enviando e-mail? Tem que definir aonde? no
services? no contacgroups? no contacts?
o meu contacts.cfg

define  contact {
contact_nameaugusto
alias   Suporte a Desenvolvimento
host_notification_period24x7
service_notification_period 24x7
host_notification_options   d,u,r
service_notification_optionsw,u,c,r
service_notification_commands   notify-by-email
host_notification_commands  host-notify-by-email
email   [EMAIL PROTECTED]

}

Tem que definir aonde mais?
 Eu tenho o postfix rodando na máquina do Nagios (porque o CACIC necessita
de um server de e-mail hehe) fiz algo de errado?

Abraços


-- 
--
Segurança da Informação se faz com tecnologia, processos e pessoas, e a
formação destas exige mais que uma seqüência de treinamentos. Porque você
treina macacos. Pessoas,você educa.

Se a gente se lança sem vigor, sete de dez ações tomadas não dão certo. É
extremamente difícil tomar decisões num estado de agitação. Por outro lado,
se sem se preocupar com as conseqüências menores, abordamos os problemas com
o espíito afiado como uma lâmina, sempre encontramos a solução em menos
tempo do que é necessáio para respirar sete vezes.  Nabeshima Naoshige
(1538-1618)
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
-- 
Nagios-users-br@lists.sourceforge.net mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki


Re: [Nagios-users] NDOutils on FreeBSD -- solved

2007-08-22 Thread Ton Voon
Hi Michael,

On 21 Aug 2007, at 22:16, Michael W. Lucas wrote:

 The problem is in ndoutils-x/include/config.h .  The configure script
 puts all the libraries under /usr/lib instead of letting mysql be
 under /usr/local/lib.  I edited config.h as shown, and ndoutils
 compiled just fine.

Can you try this patch we posted on altinity.org? http:// 
altinity.blogs.com/dotorg/2007/04/better_mysqlcli.html

It uses the same detection mechanism that the Nagios Plugins uses.  
I've tested on Mac OS X which has mysql in /usr/local/mysql/lib,  
which is also non-standard.

I think Ethan has said he is interested in this patch, so a  
confirmation from yourself might help swing his decision.

Ton

http://www.altinity.com
T: +44 (0)870 787 9243
F: +44 (0)845 280 1725
Skype: tonvoon



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


Re: [Nagios-users] No host, or service notifications received from Nagios 2.9 for criticalstates

2007-08-22 Thread Dennis Huenseler
Hello,

if i checked your config right i think you have to define a host-template 
windows-servers with the parameter contact_groups where you define the 
contact_group if you want to use it for server03


hosts.cfg:

define host{
host_name   windows-servers
check_period24x7
etc
etc
-  contact_groups  admins  -  
}


define host{
 use windows-servers  ; Name of host 
template to use
 host_name   server03
 alias   Label Server
 address 192.168.10.127
 }

Kind regards,
 
Dennis Hünseler
_
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Nassy
Sent: Wednesday, August 22, 2007 9:54 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] No host,or service notifications received from Nagios 
2.9 for criticalstates

no notifications are being received from nagios when a service is  
down. i power off server03 and did not receive a notification from  
nagios. the log shows no record of an attempt to send a notification.  
i can manually send notifications successfully. any ideas why?

here is the log with no record of a notification attempt.

$ cat /opt/local/var/nagios/nagios.log
[1187737502] HOST ALERT: server03;DOWN;SOFT;9;CRITICAL - Plugin timed  
out after 10 seconds
[1187737512] HOST ALERT: server03;DOWN;HARD;10;CRITICAL - Plugin  
timed out after 10 seconds
[1187737512] SERVICE ALERT: server03;PING;CRITICAL;HARD;1;CRITICAL -  
192.168.10.127: rta nan, lost 100%
[1187738002] HOST ALERT: server03;UP;HARD;1;PING OK - Packet loss =  
0%, RTA = 0.45 ms
[1187738002] SERVICE ALERT: server03;PING;OK;HARD;1;OK -  
192.168.10.127: rta 0.589ms, lost 0%
[1187739982] Auto-save of retention data completed successfully.
...
1187741712] HOST ALERT: server03;DOWN;HARD;10;CRITICAL - Plugin timed  
out after 10 seconds
[1187741712] SERVICE ALERT: server03;PING;CRITICAL;HARD;1;CRITICAL -  
192.168.10.127: rta nan, lost 100%
[1187743582] Auto-save of retention data completed successfully.
[1187745607] Caught SIGEXIT, shutting down...
[1187745607] Successfully shutdown... (PID=3492)
[1187745618] Nagios 2.9 starting... (PID=5949)
[1187745618] LOG VERSION: 2.0
[1187745618] Finished daemonizing... (New PID=5950)
[1187749218] Auto-save of retention data completed successfully.



file system permissions review looks ok (to me).
$ ls -l
...
-r-sr-xr-x   2 root  admin   46644 Aug 20 11:46 check_icmp
...
-rwxr-xr-x   2 root  admin   42496 Aug 20 11:46 check_ping



using the check_ping command returns the expected result for a host  
or service that is down.
$ sudo -u nagios ./check_ping -H server03 -w 100.0,20% -c 500.0,60%
CRITICAL - Plugin timed out after 10 seconds


manually sending an email using the code from the notification  
command works. i receive the email.
$ sudo -u nagios  /usr/bin/printf %b * Nagios 2.9 *\n 
\nNotification Type: CRITICAL\n\nService: PING\nHost: server03 
\nAddress: 192.168.10.127\nState: down\n\nDate/Time: Today Aug 22nd\n 
\nAdditional Info:\n\nTimeout | /usr/bin/mail -s ** CRITICAL alert  
- server03/PING is down ** [EMAIL PROTECTED]


config directory set and notifications turned on.
$ cat /opt/local/etc/nagios/nagios.cfg
...
cfg_dir=/opt/local/etc/nagios/ny
...
log_notifications=1



$ cat /opt/local/etc/nagios/ny/contacts.cfg
...
define contact{
 contact_namenagios-admin
 alias   Nagios Admin
 service_notification_period 24x7
 host_notification_period24x7
 service_notification_optionsw,u,c,r
 host_notification_options   d,r
 service_notification_commands   notify-by-email
 host_notification_commands  host-notify-by-email
 email   [EMAIL PROTECTED]
 }




$ cat /opt/local/etc/nagios/ny/contactgroups.cfg
...
define contactgroup{
 contactgroup_name   admins
 alias   Nagios Administrators
 members nagios-admin
 }



note: the ping command actually runs check_icmp in the command line.
$ cat /opt/local/etc/nagios/ny/commands.cfg
...

# 'check_ping' command definition
define command{
 command_namecheck_ping
 command_line$USER1$/check_icmp -H $HOSTADDRESS$ -w $ARG1 
$ -c $ARG2$ -p 5
 }
...
# 'host-notify-by-email' command definition
define command{
 command_namehost-notify-by-email
 command_line/usr/bin/printf %b * Nagios 2.9 * 
\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState:  
$HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time:  
$LONGDATETIME$\n | /usr/bin/mail -s Host $HOSTSTATE$ alert for  
$HOSTNAME$! $CONTACTEMAIL$
 }

# 

[Nagios-users] Map / Host Parents / Redundant Rings

2007-08-22 Thread Giles Coochey
Hi,

I have a query with regard to setting up links in the statusmap.

In our environment we have high availability redundant rings, e.g.
MetroEthernet  RPR.

If I try to set up parents as per the infrastructure e.g. each member of
a ring has parents of both its neighbors then Nagios complains during
the pre-flight check:

Error: There is a circular parent/child path that exists for host
'HostA'!

Well, yes, very true - that is our infrastructure design. I understand
that Nagios might have some problems with it's reachability algorithms,
but I would like to know how people with this kind of infrastructure set
this up.

Feedback is appreciated.

Best regards

Giles


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

Re: [Nagios-users] No host, or service notifications received from Nagios 2.9 for criticalstates

2007-08-22 Thread Mark Nassy

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios- 
 [EMAIL PROTECTED] On Behalf Of Mark Nassy
 Sent: Wednesday, August 22, 2007 9:54 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] No host,or service notifications received  
 from Nagios 2.9 for criticalstates

 no notifications are being received from nagios when a service is
 down. i power off server03 and did not receive a notification from
 nagios. the log shows no record of an attempt to send a notification.
 i can manually send notifications successfully. any ideas why?

 here is the log with no record of a notification attempt.

 $ cat /opt/local/var/nagios/nagios.log
 [1187737502] HOST ALERT: server03;DOWN;SOFT;9;CRITICAL - Plugin timed
 out after 10 seconds
 [1187737512] HOST ALERT: server03;DOWN;HARD;10;CRITICAL - Plugin
 timed out after 10 seconds
 [1187737512] SERVICE ALERT: server03;PING;CRITICAL;HARD;1;CRITICAL -
 192.168.10.127: rta nan, lost 100%
 [1187738002] HOST ALERT: server03;UP;HARD;1;PING OK - Packet loss =
 0%, RTA = 0.45 ms
 [1187738002] SERVICE ALERT: server03;PING;OK;HARD;1;OK -
 192.168.10.127: rta 0.589ms, lost 0%
 [1187739982] Auto-save of retention data completed successfully.
 ...
 1187741712] HOST ALERT: server03;DOWN;HARD;10;CRITICAL - Plugin timed
 out after 10 seconds
 [1187741712] SERVICE ALERT: server03;PING;CRITICAL;HARD;1;CRITICAL -
 192.168.10.127: rta nan, lost 100%
 [1187743582] Auto-save of retention data completed successfully.
 [1187745607] Caught SIGEXIT, shutting down...
 [1187745607] Successfully shutdown... (PID=3492)
 [1187745618] Nagios 2.9 starting... (PID=5949)
 [1187745618] LOG VERSION: 2.0
 [1187745618] Finished daemonizing... (New PID=5950)
 [1187749218] Auto-save of retention data completed successfully.



 file system permissions review looks ok (to me).
 $ ls -l
 ...
 -r-sr-xr-x   2 root  admin   46644 Aug 20 11:46 check_icmp
 ...
 -rwxr-xr-x   2 root  admin   42496 Aug 20 11:46 check_ping



 using the check_ping command returns the expected result for a host
 or service that is down.
 $ sudo -u nagios ./check_ping -H server03 -w 100.0,20% -c 500.0,60%
 CRITICAL - Plugin timed out after 10 seconds


 manually sending an email using the code from the notification
 command works. i receive the email.
 $ sudo -u nagios  /usr/bin/printf %b * Nagios 2.9 *\n
 \nNotification Type: CRITICAL\n\nService: PING\nHost: server03
 \nAddress: 192.168.10.127\nState: down\n\nDate/Time: Today Aug 22nd\n
 \nAdditional Info:\n\nTimeout | /usr/bin/mail -s ** CRITICAL alert
 - server03/PING is down ** [EMAIL PROTECTED]


 config directory set and notifications turned on.
 $ cat /opt/local/etc/nagios/nagios.cfg
 ...
 cfg_dir=/opt/local/etc/nagios/ny
 ...
 log_notifications=1



 $ cat /opt/local/etc/nagios/ny/contacts.cfg
 ...
 define contact{
  contact_namenagios-admin
  alias   Nagios Admin
  service_notification_period 24x7
  host_notification_period24x7
  service_notification_optionsw,u,c,r
  host_notification_options   d,r
  service_notification_commands   notify-by-email
  host_notification_commands  host-notify-by-email
  email   [EMAIL PROTECTED]
  }




 $ cat /opt/local/etc/nagios/ny/contactgroups.cfg
 ...
 define contactgroup{
  contactgroup_name   admins
  alias   Nagios Administrators
  members nagios-admin
  }



 note: the ping command actually runs check_icmp in the command line.
 $ cat /opt/local/etc/nagios/ny/commands.cfg
 ...

 # 'check_ping' command definition
 define command{
  command_namecheck_ping
  command_line$USER1$/check_icmp -H $HOSTADDRESS$ -w $ARG1
 $ -c $ARG2$ -p 5
  }
 ...
 # 'host-notify-by-email' command definition
 define command{
  command_namehost-notify-by-email
  command_line/usr/bin/printf %b * Nagios 2.9 *
 \n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState:
 $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time:
 $LONGDATETIME$\n | /usr/bin/mail -s Host $HOSTSTATE$ alert for
 $HOSTNAME$! $CONTACTEMAIL$
  }

 # 'notify-by-email' command definition
 define command{
  command_namenotify-by-email
  command_line/usr/bin/printf %b * Nagios 2.9 *
 \n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$
 \nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n
 \nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$
 | /usr/bin/mail -s ** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/
 $SERVICEDESC$ is $SERVICESTATE$ ** $CONTACTEMAIL$
  }




 $ cat /opt/local/etc/nagios/ny/hostgroups.cfg
 ...
 define hostgroup{
  hostgroup_name  windows-servers
  alias   Windows Servers
  members 

[Nagios-users] check host alive by passive

2007-08-22 Thread D.Parise
One question: how can I use something like check host alive only with
passive checks? I have for one host only one passive service, and I
would like the status of the host to go to critical if this service is
critical.

 

Thanks,

 

 

 

Davide Parise

Safeguards Systems Analyst

Division of Technical Support (SGTS)

International Atomic Energy Agency (IAEA) 

Tel.: +43 1 2600 26496 (Office)

Fax: +43 1 2600 29317 (21st Floor)

E-mail: [EMAIL PROTECTED]

 

This email message is intended only for the use of the named recipient.
Information contained in this email message and its attachments may be
privileged, confidential and protected from disclosure. If you are not the
intended recipient, please do not read, copy, use or disclose this
communication to others. Also please notify the sender by replying to this
message and then delete it from your system.

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

Re: [Nagios-users] NDOutils on FreeBSD -- solved

2007-08-22 Thread Michael W. Lucas
On Wed, Aug 22, 2007 at 09:13:29AM +0100, Ton Voon wrote:
 Hi Michael,
 
 On 21 Aug 2007, at 22:16, Michael W. Lucas wrote:
 
 The problem is in ndoutils-x/include/config.h .  The configure script
 puts all the libraries under /usr/lib instead of letting mysql be
 under /usr/local/lib.  I edited config.h as shown, and ndoutils
 compiled just fine.
 
 Can you try this patch we posted on altinity.org? http:// 
 altinity.blogs.com/dotorg/2007/04/better_mysqlcli.html
 
 It uses the same detection mechanism that the Nagios Plugins uses.  
 I've tested on Mac OS X which has mysql in /usr/local/mysql/lib,  
 which is also non-standard.

No joy.  I did the following:

download the patch and the np_mysqlclient.m4 into my home dir.

extract a clean ndoutils, go into it

patch  ../ndoutils_better_mysql_detection_cvs.patch

mkdir m4
mv ../np_mysqlclient.m4 m4/

Ran configure, and got:

Script started on Wed Aug 22 09:15:52 2007
aubsr023~/ndoutils-1.4b4;configure./configure 

checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... i386-unknown-freebsd6.2
checking host system type... i386-unknown-freebsd6.2
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether make sets $(MAKE)... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking for inttypes.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking ltdl.h usability... no
checking ltdl.h presence... no
checking for ltdl.h... no
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking socket.h usability... no
checking socket.h presence... no
checking for socket.h... no
checking for stdint.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/msg.h usability... yes
checking sys/msg.h presence... yes
checking for sys/msg.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/sendfile.h usability... no
checking sys/sendfile.h presence... no
checking for sys/sendfile.h... no
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for sys/stat.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking 

Re: [Nagios-users] No host, or service notifications received from Nagios 2.9 for critical states, Resolved

2007-08-22 Thread Mark Nassy

On Aug 22, 2007, at 6:54 AM, Mark Nassy wrote:


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios- 
 [EMAIL PROTECTED] On Behalf Of Mark Nassy
 Sent: Wednesday, August 22, 2007 9:54 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] No host,or service notifications received  
 from Nagios 2.9 for criticalstates

 no notifications are being received from nagios when a service is
 down. i power off server03 and did not receive a notification from
 nagios. the log shows no record of an attempt to send a notification.
 i can manually send notifications successfully. any ideas why?

 here is the log with no record of a notification attempt.

 $ cat /opt/local/var/nagios/nagios.log
 [1187737502] HOST ALERT: server03;DOWN;SOFT;9;CRITICAL - Plugin timed
 out after 10 seconds
 [1187737512] HOST ALERT: server03;DOWN;HARD;10;CRITICAL - Plugin
 timed out after 10 seconds
 [1187737512] SERVICE ALERT: server03;PING;CRITICAL;HARD;1;CRITICAL -
 192.168.10.127: rta nan, lost 100%
 [1187738002] HOST ALERT: server03;UP;HARD;1;PING OK - Packet loss =
 0%, RTA = 0.45 ms
 [1187738002] SERVICE ALERT: server03;PING;OK;HARD;1;OK -
 192.168.10.127: rta 0.589ms, lost 0%
 [1187739982] Auto-save of retention data completed successfully.
 ...
 1187741712] HOST ALERT: server03;DOWN;HARD;10;CRITICAL - Plugin timed
 out after 10 seconds
 [1187741712] SERVICE ALERT: server03;PING;CRITICAL;HARD;1;CRITICAL -
 192.168.10.127: rta nan, lost 100%
 [1187743582] Auto-save of retention data completed successfully.
 [1187745607] Caught SIGEXIT, shutting down...
 [1187745607] Successfully shutdown... (PID=3492)
 [1187745618] Nagios 2.9 starting... (PID=5949)
 [1187745618] LOG VERSION: 2.0
 [1187745618] Finished daemonizing... (New PID=5950)
 [1187749218] Auto-save of retention data completed successfully.



 file system permissions review looks ok (to me).
 $ ls -l
 ...
 -r-sr-xr-x   2 root  admin   46644 Aug 20 11:46 check_icmp
 ...
 -rwxr-xr-x   2 root  admin   42496 Aug 20 11:46 check_ping



 using the check_ping command returns the expected result for a host
 or service that is down.
 $ sudo -u nagios ./check_ping -H server03 -w 100.0,20% -c 500.0,60%
 CRITICAL - Plugin timed out after 10 seconds


 manually sending an email using the code from the notification
 command works. i receive the email.
 $ sudo -u nagios  /usr/bin/printf %b * Nagios 2.9 *\n
 \nNotification Type: CRITICAL\n\nService: PING\nHost: server03
 \nAddress: 192.168.10.127\nState: down\n\nDate/Time: Today Aug 22nd\n
 \nAdditional Info:\n\nTimeout | /usr/bin/mail -s ** CRITICAL alert
 - server03/PING is down ** [EMAIL PROTECTED]


 config directory set and notifications turned on.
 $ cat /opt/local/etc/nagios/nagios.cfg
 ...
 cfg_dir=/opt/local/etc/nagios/ny
 ...
 log_notifications=1



 $ cat /opt/local/etc/nagios/ny/contacts.cfg
 ...
 define contact{
  contact_namenagios-admin
  alias   Nagios Admin
  service_notification_period 24x7
  host_notification_period24x7
  service_notification_optionsw,u,c,r
  host_notification_options   d,r
  service_notification_commands   notify-by-email
  host_notification_commands  host-notify-by-email
  email   [EMAIL PROTECTED]
  }




 $ cat /opt/local/etc/nagios/ny/contactgroups.cfg
 ...
 define contactgroup{
  contactgroup_name   admins
  alias   Nagios Administrators
  members nagios-admin
  }



 note: the ping command actually runs check_icmp in the command line.
 $ cat /opt/local/etc/nagios/ny/commands.cfg
 ...

 # 'check_ping' command definition
 define command{
  command_namecheck_ping
  command_line$USER1$/check_icmp -H $HOSTADDRESS$ -w $ARG1
 $ -c $ARG2$ -p 5
  }
 ...
 # 'host-notify-by-email' command definition
 define command{
  command_namehost-notify-by-email
  command_line/usr/bin/printf %b * Nagios 2.9 *
 \n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState:
 $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time:
 $LONGDATETIME$\n | /usr/bin/mail -s Host $HOSTSTATE$ alert for
 $HOSTNAME$! $CONTACTEMAIL$
  }

 # 'notify-by-email' command definition
 define command{
  command_namenotify-by-email
  command_line/usr/bin/printf %b * Nagios 2.9 *
 \n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$
 \nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n
 \nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$
 | /usr/bin/mail -s ** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/
 $SERVICEDESC$ is $SERVICESTATE$ ** $CONTACTEMAIL$
  }




 $ cat /opt/local/etc/nagios/ny/hostgroups.cfg
 ...
 define hostgroup{
  hostgroup_name  windows-servers
  alias   

[Nagios-users] Best way to monitoring Oracle on Windows

2007-08-22 Thread narendran.neelamegam
 

Dear All,

 

Please suggest me the best method to monitor Oracle on Windows?

 

I tried using the Oracle_nrpe_nt to monitor Oracle on Windows
(Oracle_nrpe_nt)

 

I had configured TNS, PMON and Table Space monitoring.

 

There seems to be memory leak with this agent and due to which the
NSclient++ stopped working.

 

Has any one else observed this behavior and are there any patches.

 

Thanks and Regards,

Naren

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

Re: [Nagios-users] No host, or service notifications received from Nagios 2.9 for criticalstates, Resolved

2007-08-22 Thread Mark Nassy

On Aug 22, 2007, at 9:52 AM, Dennis Huenseler wrote:

 Looking @your time zone i think i know where to find the problem:
 As from your config:

 notification_period workhours   ; Admins

 Take a look @ timeperiods :-)

thanks for your help. i am sure that was it now. makes sense why i  
got a notification today.

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


Re: [Nagios-users] NDOutils on FreeBSD -- solved

2007-08-22 Thread Ton Voon

On 22 Aug 2007, at 14:23, Michael W. Lucas wrote:

 No joy.  I did the following:

 download the patch and the np_mysqlclient.m4 into my home dir.

 extract a clean ndoutils, go into it

 patch  ../ndoutils_better_mysql_detection_cvs.patch

 mkdir m4
 mv ../np_mysqlclient.m4 m4/

 Ran configure, and got:

You need to run aclocal -I m4  autoconf in the top level directory  
before you run configure.

The configure log doesn't have any entries re: mysql_config which is  
what this patch will try to use.

Ton

http://www.altinity.com
T: +44 (0)870 787 9243
F: +44 (0)845 280 1725
Skype: tonvoon



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


Re: [Nagios-users] NDOutils on FreeBSD -- solved

2007-08-22 Thread Michael W. Lucas
On Wed, Aug 22, 2007 at 03:11:38PM +0100, Ton Voon wrote:
 
 On 22 Aug 2007, at 14:23, Michael W. Lucas wrote:
 
 No joy.  I did the following:
 
 download the patch and the np_mysqlclient.m4 into my home dir.
 
 extract a clean ndoutils, go into it
 
 patch  ../ndoutils_better_mysql_detection_cvs.patch
 
 mkdir m4
 mv ../np_mysqlclient.m4 m4/
 
 Ran configure, and got:
 
 You need to run aclocal -I m4  autoconf in the top level directory  
 before you run configure.
 
 The configure log doesn't have any entries re: mysql_config which is  
 what this patch will try to use.

Sorry, still no joy.  This was with aclocal14 and autoconf259; are
particular versions required?  (I'm a BSD guy, so this aclocal and
autoconf stuff is foreign, sorry.)

Thanks,
==ml

-- 
Michael W. Lucas[EMAIL PROTECTED], [EMAIL PROTECTED]
http://www.BlackHelicopters.org/~mwlucas/
  Coming Soon: Absolute FreeBSD -- http://www.AbsoluteFreeBSD.com
On 5/4/2007, the TSA kept 3 pairs of my soiled undies for security reasons.

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


Re: [Nagios-users] NDOutils on FreeBSD -- solved

2007-08-22 Thread Ton Voon

On 22 Aug 2007, at 15:20, Michael W. Lucas wrote:

 On Wed, Aug 22, 2007 at 03:11:38PM +0100, Ton Voon wrote:

 On 22 Aug 2007, at 14:23, Michael W. Lucas wrote:

 No joy.  I did the following:

 download the patch and the np_mysqlclient.m4 into my home dir.

 extract a clean ndoutils, go into it

 patch  ../ndoutils_better_mysql_detection_cvs.patch

 mkdir m4
 mv ../np_mysqlclient.m4 m4/

 Ran configure, and got:

 You need to run aclocal -I m4  autoconf in the top level directory
 before you run configure.

 The configure log doesn't have any entries re: mysql_config which is
 what this patch will try to use.

 Sorry, still no joy.  This was with aclocal14 and autoconf259; are
 particular versions required?  (I'm a BSD guy, so this aclocal and
 autoconf stuff is foreign, sorry.)

Can you try with a higher automake (where aclocal comes from)? You  
need at least 1.9.2, I think.

Can you also try the nagiosplugins and see if check_mysql compiles  
there?

I'll try and create a new tarball for ndoutils later today for you to  
try. I'll post on our blog site.

Ton

http://www.altinity.com
T: +44 (0)870 787 9243
F: +44 (0)845 280 1725
Skype: tonvoon



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


Re: [Nagios-users] Map / Host Parents / Redundant Rings

2007-08-22 Thread Michael W. Lucas
My network has a few small rings in it.  Certain hosts have multiple
IP addresses.  I use separate hosts entries for those.

It's ugly, but it works.

On Wed, Aug 22, 2007 at 10:50:44AM -0400, Adam Kennedy wrote:
 I am also interested in everyone elses feedback with this. We have 
 several rings in our network for redundancy and currently I can only 
 monitor one path of the ring.
 
 Giles Coochey wrote:
  Hi,
  
  I have a query with regard to setting up links in the statusmap.
  
  In our environment we have high availability redundant rings, e.g. 
  MetroEthernet  RPR.
  
  If I try to set up parents as per the infrastructure e.g. each member of 
  a ring has parents of both its neighbors then Nagios complains during 
  the pre-flight check:
  
  Error: There is a circular parent/child path that exists for host 'HostA'!
  
  Well, yes, very true ? that is our infrastructure design. I understand 
  that Nagios might have some problems with it?s reachability algorithms, 
  but I would like to know how people with this kind of infrastructure set 
  this up.
  
  Feedback is appreciated.
  
  Best regards
   
  Giles
  
  
  
  
  -
  This SF.net email is sponsored by: Splunk Inc.
  Still grepping through log files to find problems?  Stop.
  Now Search log events and configuration files using AJAX and a browser.
  Download your FREE copy of Splunk now   http://get.splunk.com/
  
  
  
  
  ___
  Nagios-users mailing list
  Nagios-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/nagios-users
  ::: Please include Nagios version, plugin version (-v) and OS when 
  reporting any issue. 
  ::: Messages without supporting info will risk being sent to /dev/null
 
 -- 
 
 Adam Kennedy
 Network Administrator
 Cyberlink International
 Phone: 888-293-3693 x4352
 Fax: 574-855-5761
 
 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now   http://get.splunk.com/
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when reporting 
 any issue. 
 ::: Messages without supporting info will risk being sent to /dev/null

-- 
Michael W. Lucas[EMAIL PROTECTED], [EMAIL PROTECTED]
http://www.BlackHelicopters.org/~mwlucas/
  Coming Soon: Absolute FreeBSD -- http://www.AbsoluteFreeBSD.com
On 5/4/2007, the TSA kept 3 pairs of my soiled undies for security reasons.

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


[Nagios-users] ACKNOWLEDGEMENT comment in e-mail

2007-08-22 Thread Robert Fitzpatrick
Is there any way to get the comment made by who acknowledged the problem
included in the e-mail sent?

-- 
Robert


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


Re: [Nagios-users] ACKNOWLEDGEMENT comment in e-mail

2007-08-22 Thread Adam Kennedy
Yes. Take a look at the MACRO section of the nagios guide, it explains 
all the different $$ variables you can include in notifications.

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


Robert Fitzpatrick wrote:
 Is there any way to get the comment made by who acknowledged the problem
 included in the e-mail sent?
 

-- 

Adam Kennedy
Network Administrator
Cyberlink International
Phone: 888-293-3693 x4352
Fax: 574-855-5761

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


Re: [Nagios-users] NDOutils on FreeBSD -- solved

2007-08-22 Thread Ton Voon

On 22 Aug 2007, at 15:49, Michael W. Lucas wrote:

 On Wed, Aug 22, 2007 at 03:37:21PM +0100, Ton Voon wrote:
 I'll try and create a new tarball for ndoutils later today for you to
 try. I'll post on our blog site.

 Let me know, I'm happy to test.

The tarball (based on ndoutils-1.4b3) is here: http:// 
resources.opsview.org/ndoutils-1.4b3_with_mysql_patch.tar.gz

./configure should give output like:

checking for mysql_config... /usr/local/mysql/bin/mysql_config

Ton

http://www.altinity.com
T: +44 (0)870 787 9243
F: +44 (0)845 280 1725
Skype: tonvoon



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


[Nagios-users] Using contributed check

2007-08-22 Thread Wheeler, JF (Jonathan)
We have recently started trying to use the contributed plugin
/usr/lib/nagios/plugins/contrib/check_snmp_process_monitor.pl to run
checks from our Linux Nagios servers on a Solaris system.  Using perl
from userid nagios we get successful output:

[EMAIL PROTECTED] ~]# su - nagios
-sh-3.00$ cd /usr/lib/nagios/plugins/contrib/
-sh-3.00$ perl check_snmp_process_monitor.pl -H 130.246.183.131 -C
public -e arrayd -w 0,3 -c 1,2 -s --memory --cpu
OK - 1 process(es) found resembling
'arrayd'|count=1:memory=1216:cpu=0.08

However Nagios returns this text:

**ePN /usr/lib/nagios/plugins/contrib/check_snmp_process_monitor.pl:
Reference found where even-sized list expected at (eval 1) line 194,. 

Now I understand that the problem is that the code is not compatible
with Embedded Perl Interpreter in Nagios, but an someone help me further
understand and solve this problem.

Jonathan Wheeler
e-Science Centre
Rutherford Appleton Laboratory

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


Re: [Nagios-users] NDOutils on FreeBSD -- solved

2007-08-22 Thread Michael W. Lucas
On Wed, Aug 22, 2007 at 04:32:15PM +0100, Ton Voon wrote:
 
 On 22 Aug 2007, at 15:49, Michael W. Lucas wrote:
 
 On Wed, Aug 22, 2007 at 03:37:21PM +0100, Ton Voon wrote:
 I'll try and create a new tarball for ndoutils later today for you to
 try. I'll post on our blog site.
 
 Let me know, I'm happy to test.
 
 The tarball (based on ndoutils-1.4b3) is here: http:// 
 resources.opsview.org/ndoutils-1.4b3_with_mysql_patch.tar.gz
 
 ./configure should give output like:
 
 checking for mysql_config... /usr/local/mysql/bin/mysql_config

...
checking for type of socket size... size_t
checking for linker flags for loadable modules... -shared
checking for mysql_config... /usr/local/bin/mysql_config
checking for mysql_init in -lmysqlclient... yes
MySQL library and include file(s) were found!
...

This is more like it.  Now make the main distribution work like that.  ;-)

Thanks much,

==ml

-- 
Michael W. Lucas[EMAIL PROTECTED], [EMAIL PROTECTED]
http://www.BlackHelicopters.org/~mwlucas/
  Coming Soon: Absolute FreeBSD -- http://www.AbsoluteFreeBSD.com
On 5/4/2007, the TSA kept 3 pairs of my soiled undies for security reasons.

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


Re: [Nagios-users] NDOutils on FreeBSD -- solved

2007-08-22 Thread Ton Voon

On 22 Aug 2007, at 16:44, Michael W. Lucas wrote:

 checking for type of socket size... size_t
 checking for linker flags for loadable modules... -shared
 checking for mysql_config... /usr/local/bin/mysql_config
 checking for mysql_init in -lmysqlclient... yes
 MySQL library and include file(s) were found!
 ...

 This is more like it.  Now make the main distribution work like  
 that.  ;-)

That's up to Ethan. Another happy user may sway him...

Ton

http://www.altinity.com
T: +44 (0)870 787 9243
F: +44 (0)845 280 1725
Skype: tonvoon



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


Re: [Nagios-users] Using contributed check

2007-08-22 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Wheeler, JF (Jonathan)
 Sent: Wednesday, August 22, 2007 10:38 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Using contributed check
 


 However Nagios returns this text:
 
 **ePN /usr/lib/nagios/plugins/contrib/check_snmp_process_monitor.pl:
 Reference found where even-sized list expected at (eval 1) line 194,.
 
 Now I understand that the problem is that the code is not compatible
 with Embedded Perl Interpreter in Nagios, but an someone help me
further
 understand and solve this problem.
 

You've got three options really --

1) Modify the plugin to be compatible with ePN by following the
guidelines at http://nagios.sourceforge.net/docs/2_0/embeddedperl.html.
Other people would likely value the contribution.

2) Modify how you call the plugin so that ePN isn't used. This can be
accomplished by prefacing the command{} command_line with
/your/path/to/perl i.e.

define command{
command_name check_snmp_process
command_line /usr/bin/perl $USER1$/check_snmp_process_monitor.pl
-w ... other args
}

3) recompile nagios without ePN and re-install. This is pretty
straightforward 

cd /path/to/nagios-src  ./configure --enable-embedded-perl=no your
other args  make  /etc/init.d/nagios stop  make install 
/etc/init.d/nagios start

--
Marc

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


Re: [Nagios-users] Best way to monitoring Oracle on Windows

2007-08-22 Thread Anthony Montibello
NC_net also offers the ability to run scripts, however it does not use NRPE
but its own version of CHECK_NT to do this.

If interested it is availible at: http://sourceforge.net/projects/nc-net


Good luck,

Tony (Author of NC_Net)


On 8/22/07, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:



 Dear All,



 Please suggest me the best method to monitor Oracle on Windows?



 I tried using the Oracle_nrpe_nt to monitor Oracle on Windows
 (Oracle_nrpe_nt)



 I had configured TNS, PMON and Table Space monitoring.



 There seems to be memory leak with this agent and due to which the
 NSclient++ stopped working.



 Has any one else observed this behavior and are there any patches.



 Thanks and Regards,

 Naren

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

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

[Nagios-users] nrpe doesn't start after rebooting solaris server

2007-08-22 Thread Lalita Drolia
Hi,

I rebooted a solaris server and nrpe did not start on its own. I was
able to resolve it by doing the following on solaris 10-

Add the following entry to /etc/inetd.conf: 

 nrpestream  tcp nowait  nagios /usr/local/nagios/nrpe -c
/usr/local/nagios/nrpe.cfg --inetd

Then run the following command- 

#inetconv -i /etc/inetd.conf 

 

But inetconv command is not available in solaris 9 and 8. so nrpe is
not starting on those servers after a reboot.

My configuration on solaris 8 and 9 boxes is-

Add the following file nrpe under /etc/init.d -

#!/sbin/sh

#

# /etc/init.d/nagios startup script

#

case $1 in

start)

[ -f /usr/local/nagios/nrpe.cfg ] || exit 0

# start nagios

cd /usr/local/nagios

./nrpe -c /usr/local/nagios/nrpe.cfg --daemon

;;

stop)

# stop nagios

echo use ps to kill nrpe

;;

*)

echo Usage: $0 { start | stop }

exit 1

;;

esac

exit 0

now open nrpe.cfg in /usr/local/nagios and add server ip address

allowed_hosts=127.0.0.1, 172.22.48.7

Start nrpe as daemon in solaris by issuing following command-

#/usr/local/nagios/nrpe -c /usr/local/nagios/nrpe.cfg --deamon

 

I tried starting nrpe with -inetd switch instead of as a daemon but the
process is not getting started.

 

Kindly help.

 

Regards,

Lalita


Notice:  This email message, together with any attachments, may contain 
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated 
entities,  that may be confidential,  proprietary,  copyrighted  and/or legally 
privileged, and is intended solely for the use of the individual or entity 
named in this message. If you are not the intended recipient, and have received 
this message in error, please immediately return this by email and then delete 
it.-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] check host alive by passive

2007-08-22 Thread Hugo van der Kooij
On Wed, 22 Aug 2007, [EMAIL PROTECTED] wrote:

 One question: how can I use something like check host alive only with
 passive checks? I have for one host only one passive service, and I
 would like the status of the host to go to critical if this service is
 critical.

Hosts and services are two different things. It sounds like you want to 
abandon that concept.

Hugo.

-- 
[EMAIL PROTECTED]   http://hugo.vanderkooij.org/
This message is using 100% recycled electrons.

Some men see computers as they are and say Windows
I use computers with Linux and say Why Windows?
(Thanks JFK, for this quote of George Bernard Shaw.)

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