[Nagios-users-br] teste da lista

2010-06-21 Thread Jose Oliveira
Colegas

ISTO É UM TESTE. FAVOR NÃO RESPONDER

Acho que a lista está com problemas de distribuição de mensagens. Pelo menos
das minhas.



-- 
Abraços
JGeraldo
--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
-- 
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] RES: RES: Monitorar PostgreSQL

2010-06-21 Thread benedito.ramos
André,

Tambem uso o mesmo plugin da bucardo, mesma versão inclusive.
E funciona certinho aqui.
Acho que o erro teu é no command, pois faltou a senha do banco. Inclusive, o 
erro de retorno é esse mesmo.
Veja meu command aqui:

define command {
   command_namecheck_postgres_backends
   command_line$USER1$/check_postgres.pl -H 
$HOSTADDRESS$ -u USUARIO --dbpass=SENHAUSUARIO --action=backends --port=$ARG1$ 
-db=$ARG2$ --warning=$ARG3$ --critical=$ARG4$

}

Se não for isso, segue um manual, segue um manual que fizemos.
Dê uma olhada e vê se te ajuda.


- Descompactar o pacote check_postgres-2.14.3.tar.gz 
# cd /tmp 
# tar -zxvf check-postgres-2.14.3.tar.gz
 - Copiar o arquivo extraído check_postgres.pl para a pasta de plugins do 
Nagios 
# cd check_postgres-2.14.3 
# mv check_postgres.pl /usr/local/nagios/libexec 
- Acessar o diretório dos scripts e efetuar os seguintes comandos: 
# cd /opt/nagioscaixa/libexec/ 
# mkdir postgres
# cd postgres 
# perl ../check_postgres.pl --symlinks 
- Instalar o Postgres no servidor Nagios para que o serviço psql esteja 
habilitado 
# aptitude update 
# aptitude install postgresql 
- Nos servidores Postgres que serão monitorados, editar o arquivo 
/etc/postgresql/8.3/main/pg_hba.conf, inserindo a seguinte linha: 
# host all all IP_NAGIOS/32 md5 
- Salvar o arquivo /etc/postgresql/8.3/main/pg_hba.conf 
- Reiniciar o banco de dados Postgres 
# /etc/init.d/postgresql-8.3 restart

As definições de service ficam assim:


define service {
 service_description  swBackends
 display_name   Utilização do Backends do Banco de Dados Postgres
 useservico-generico
 check_command   check_postgres_backends!5432!PNLDB001!75!85
 register   1
 }

Se funcionar, avisa.
Note que minha distro é Debian Lenny. Mas acho que funciona na sua aí também.

Diramos




-Mensagem original-
De: André Ormenese ( Yahoo ) [mailto:ormen...@yahoo.com.br] 
Enviada em: segunda-feira, 21 de junho de 2010 14:30
Para: nagios-users-br@lists.sourceforge.net
Assunto: Re: [Nagios-users-br] RES: Monitorar PostgreSQL

Diramos,
instalei os plugins padrões através do  nagios-plugins-1.4.14, e para 
monitorar o Postgresql, instalei o  check_postgres-2.14.3 que baixei do 
site : http://bucardo.org/wiki/Check_postgres

Vou postar aqui as linhas que estão no commands.cfg :


  define command {
  command_namecheck_postgres_size
  command_line/usr/local/bin/check_postgres.pl -H 
hibiscus.hemo.unicamp.br -p 5438 --dbuser=postgres --dbname=hemocentro 
--action database_size -w $ARG1$
-c $ARG2$
  }


  define service {
  host_name  hibiscus.hemo.unicamp.br
  service_descriptionPostgreSQL - Tamanho do banco
  check_command  check_postgres_size!25600!51200
  max_check_attempts 5
  check_interval 1
  retry_interval 1
  check_period   24x7
  notification_interval  30
  }

Se eu executar o mesmo comando pela linha de código funciona sem 
problemas. Tanto como root ou através do usuário nagios.
Veja :

%/usr/local/bin/check_postgres.pl -H hibiscus.hemo.unicamp.br -p 5438 
--dbuser=postgres --dbname=hemocentro --action database_size -w 0

POSTGRES_DATABASE_SIZE WARNING: DB hemocentro 
(host:hibiscus.hemo.unicamp.br) (port=5438) hemocentro: 7714865444 (7357 
MB) template1: 5497124 (5368 kB) template0: 5316612 (5192 kB)  | 
time=0.07  hemocentro=7714865444 template1=5497124 template0=5316612


Obrigado pela força

André


Em 21/6/2010 09:30, benedito.ra...@caixa.gov.br escreveu:
 André,

 Quais os plugins que você está utilizando prá monitorar o Postgres?
 Precisa ver os parâmetros necessários para a checagem.
 Passa aí os nomes e URL dos plugins prá tentarmos te ajudar.

 Diramos

 -Mensagem original-
 De: André Ormenese [mailto:ormen...@unicamp.br]
 Enviada em: sexta-feira, 18 de junho de 2010 16:02
 Para: Lista Nagios
 Assunto: [Nagios-users-br] Monitorar PostgreSQL

 Boa tarde a todos !!
 Pessoal,
 acabei de me inscrever na lista, e já chego com dúvidas !!!

 Instalei o Nagios 3.2.1 num host Freebsd 6.1 e que tem o PostgreSQL
 8.4.2 intalado também.

 Consegui executar alguns scrpits na linha de comando, mas qdo tento
 visualizar na interface web recebo uma mensage de alerta :
 ERROR: Password:
 psql: fe_sendauth: no password supplied

 Já coloquei o arquivo .pgpass na pasta home do usuário nagios ...

 Alguma sugestão 

 Obrigado
 André



 --
 ThinkGeek and WIRED's GeekDad team up for the Ultimate
 GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
 lucky parental unit.  See the prize list and enter to win:
 http://p.sf.net/sfu/thinkgeek-promo



--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental 

Re: [Nagios-users-br] RES: RES: Monitorar PostgreSQL

2010-06-21 Thread André Ormenese ( Yahoo )
Diramos,
eu utilizo o arquivo .pgpass ( 
http://www.postgresql.org/docs/8.4/static/libpq-pgpass.html  ) ao invés 
de passar a senha direto no command.
Vou tentar mudar o command amanhã, passando a senha, e dou um retorno.

Obrigado
André

Em 21/6/2010 16:29, benedito.ra...@caixa.gov.br escreveu:
 André,

 Tambem uso o mesmo plugin da bucardo, mesma versão inclusive.
 E funciona certinho aqui.
 Acho que o erro teu é no command, pois faltou a senha do banco. Inclusive, o 
 erro de retorno é esse mesmo.
 Veja meu command aqui:

 define command {
 command_namecheck_postgres_backends
 command_line$USER1$/check_postgres.pl -H 
 $HOSTADDRESS$ -u USUARIO --dbpass=SENHAUSUARIO --action=backends 
 --port=$ARG1$ -db=$ARG2$ --warning=$ARG3$ --critical=$ARG4$

 }

 Se não for isso, segue um manual, segue um manual que fizemos.
 Dê uma olhada e vê se te ajuda.

 
 - Descompactar o pacote check_postgres-2.14.3.tar.gz
 # cd /tmp
 # tar -zxvf check-postgres-2.14.3.tar.gz
   - Copiar o arquivo extraído check_postgres.pl para a pasta de plugins do 
 Nagios
 # cd check_postgres-2.14.3
 # mv check_postgres.pl /usr/local/nagios/libexec
 - Acessar o diretório dos scripts e efetuar os seguintes comandos:
 # cd /opt/nagioscaixa/libexec/
 # mkdir postgres
 # cd postgres
 # perl ../check_postgres.pl --symlinks
 - Instalar o Postgres no servidor Nagios para que o serviço psql esteja 
 habilitado
 # aptitude update
 # aptitude install postgresql
 - Nos servidores Postgres que serão monitorados, editar o arquivo 
 /etc/postgresql/8.3/main/pg_hba.conf, inserindo a seguinte linha:
 # host all all IP_NAGIOS/32 md5
 - Salvar o arquivo /etc/postgresql/8.3/main/pg_hba.conf
 - Reiniciar o banco de dados Postgres
 # /etc/init.d/postgresql-8.3 restart

 As definições de service ficam assim:


 define service {
   service_description  swBackends
   display_name   Utilização do Backends do Banco de Dados Postgres
   useservico-generico
   check_command   check_postgres_backends!5432!PNLDB001!75!85
   register   1
   }

 Se funcionar, avisa.
 Note que minha distro é Debian Lenny. Mas acho que funciona na sua aí também.

 Diramos




 -Mensagem original-
 De: André Ormenese ( Yahoo ) [mailto:ormen...@yahoo.com.br]
 Enviada em: segunda-feira, 21 de junho de 2010 14:30
 Para: nagios-users-br@lists.sourceforge.net
 Assunto: Re: [Nagios-users-br] RES: Monitorar PostgreSQL

 Diramos,
 instalei os plugins padrões através do  nagios-plugins-1.4.14, e para
 monitorar o Postgresql, instalei o  check_postgres-2.14.3 que baixei do
 site : http://bucardo.org/wiki/Check_postgres

 Vou postar aqui as linhas que estão no commands.cfg :


define command {
command_namecheck_postgres_size
command_line/usr/local/bin/check_postgres.pl -H
 hibiscus.hemo.unicamp.br -p 5438 --dbuser=postgres --dbname=hemocentro
 --action database_size -w $ARG1$
 -c $ARG2$
}


define service {
host_name  hibiscus.hemo.unicamp.br
service_descriptionPostgreSQL - Tamanho do banco
check_command  check_postgres_size!25600!51200
max_check_attempts 5
check_interval 1
retry_interval 1
check_period   24x7
notification_interval  30
}

 Se eu executar o mesmo comando pela linha de código funciona sem
 problemas. Tanto como root ou através do usuário nagios.
 Veja :

 %/usr/local/bin/check_postgres.pl -H hibiscus.hemo.unicamp.br -p 5438
 --dbuser=postgres --dbname=hemocentro --action database_size -w 0

 POSTGRES_DATABASE_SIZE WARNING: DB hemocentro
 (host:hibiscus.hemo.unicamp.br) (port=5438) hemocentro: 7714865444 (7357
 MB) template1: 5497124 (5368 kB) template0: 5316612 (5192 kB)  |
 time=0.07  hemocentro=7714865444 template1=5497124 template0=5316612


 Obrigado pela força

 André


 Em 21/6/2010 09:30, benedito.ra...@caixa.gov.br escreveu:

 André,

 Quais os plugins que você está utilizando prá monitorar o Postgres?
 Precisa ver os parâmetros necessários para a checagem.
 Passa aí os nomes e URL dos plugins prá tentarmos te ajudar.

 Diramos

 -Mensagem original-
 De: André Ormenese [mailto:ormen...@unicamp.br]
 Enviada em: sexta-feira, 18 de junho de 2010 16:02
 Para: Lista Nagios
 Assunto: [Nagios-users-br] Monitorar PostgreSQL

 Boa tarde a todos !!
 Pessoal,
 acabei de me inscrever na lista, e já chego com dúvidas !!!

 Instalei o Nagios 3.2.1 num host Freebsd 6.1 e que tem o PostgreSQL
 8.4.2 intalado também.

 Consegui executar alguns scrpits na linha de comando, mas qdo tento
 visualizar na interface web recebo uma mensage de alerta :
 ERROR: Password:
 psql: fe_sendauth: no password supplied

 Já coloquei o arquivo .pgpass na pasta home do usuário nagios ...

 Alguma sugestão 

 Obrigado
 André



 --
 ThinkGeek and WIRED's GeekDad team up 

[Nagios-users-br] RES: RES: RES: Monitorar PostgreSQL

2010-06-21 Thread benedito.ramos
OK.
Lembrando que você pode colocar a senha no arquivo resources.cfg do nagios 
($USERX$), para que não seja mostrada em cada command.

Diramos

-Mensagem original-
De: André Ormenese ( Yahoo ) [mailto:ormen...@yahoo.com.br] 
Enviada em: segunda-feira, 21 de junho de 2010 17:02
Para: nagios-users-br@lists.sourceforge.net
Assunto: Re: [Nagios-users-br] RES: RES: Monitorar PostgreSQL

Diramos,
eu utilizo o arquivo .pgpass ( 
http://www.postgresql.org/docs/8.4/static/libpq-pgpass.html  ) ao invés 
de passar a senha direto no command.
Vou tentar mudar o command amanhã, passando a senha, e dou um retorno.

Obrigado
André

Em 21/6/2010 16:29, benedito.ra...@caixa.gov.br escreveu:
 André,

 Tambem uso o mesmo plugin da bucardo, mesma versão inclusive.
 E funciona certinho aqui.
 Acho que o erro teu é no command, pois faltou a senha do banco. Inclusive, o 
 erro de retorno é esse mesmo.
 Veja meu command aqui:

 define command {
 command_namecheck_postgres_backends
 command_line$USER1$/check_postgres.pl -H 
 $HOSTADDRESS$ -u USUARIO --dbpass=SENHAUSUARIO --action=backends 
 --port=$ARG1$ -db=$ARG2$ --warning=$ARG3$ --critical=$ARG4$

 }

 Se não for isso, segue um manual, segue um manual que fizemos.
 Dê uma olhada e vê se te ajuda.

 
 - Descompactar o pacote check_postgres-2.14.3.tar.gz
 # cd /tmp
 # tar -zxvf check-postgres-2.14.3.tar.gz
   - Copiar o arquivo extraído check_postgres.pl para a pasta de plugins do 
 Nagios
 # cd check_postgres-2.14.3
 # mv check_postgres.pl /usr/local/nagios/libexec
 - Acessar o diretório dos scripts e efetuar os seguintes comandos:
 # cd /opt/nagioscaixa/libexec/
 # mkdir postgres
 # cd postgres
 # perl ../check_postgres.pl --symlinks
 - Instalar o Postgres no servidor Nagios para que o serviço psql esteja 
 habilitado
 # aptitude update
 # aptitude install postgresql
 - Nos servidores Postgres que serão monitorados, editar o arquivo 
 /etc/postgresql/8.3/main/pg_hba.conf, inserindo a seguinte linha:
 # host all all IP_NAGIOS/32 md5
 - Salvar o arquivo /etc/postgresql/8.3/main/pg_hba.conf
 - Reiniciar o banco de dados Postgres
 # /etc/init.d/postgresql-8.3 restart

 As definições de service ficam assim:


 define service {
   service_description  swBackends
   display_name   Utilização do Backends do Banco de Dados Postgres
   useservico-generico
   check_command   check_postgres_backends!5432!PNLDB001!75!85
   register   1
   }

 Se funcionar, avisa.
 Note que minha distro é Debian Lenny. Mas acho que funciona na sua aí também.

 Diramos




 -Mensagem original-
 De: André Ormenese ( Yahoo ) [mailto:ormen...@yahoo.com.br]
 Enviada em: segunda-feira, 21 de junho de 2010 14:30
 Para: nagios-users-br@lists.sourceforge.net
 Assunto: Re: [Nagios-users-br] RES: Monitorar PostgreSQL

 Diramos,
 instalei os plugins padrões através do  nagios-plugins-1.4.14, e para
 monitorar o Postgresql, instalei o  check_postgres-2.14.3 que baixei do
 site : http://bucardo.org/wiki/Check_postgres

 Vou postar aqui as linhas que estão no commands.cfg :


define command {
command_namecheck_postgres_size
command_line/usr/local/bin/check_postgres.pl -H
 hibiscus.hemo.unicamp.br -p 5438 --dbuser=postgres --dbname=hemocentro
 --action database_size -w $ARG1$
 -c $ARG2$
}


define service {
host_name  hibiscus.hemo.unicamp.br
service_descriptionPostgreSQL - Tamanho do banco
check_command  check_postgres_size!25600!51200
max_check_attempts 5
check_interval 1
retry_interval 1
check_period   24x7
notification_interval  30
}

 Se eu executar o mesmo comando pela linha de código funciona sem
 problemas. Tanto como root ou através do usuário nagios.
 Veja :

 %/usr/local/bin/check_postgres.pl -H hibiscus.hemo.unicamp.br -p 5438
 --dbuser=postgres --dbname=hemocentro --action database_size -w 0

 POSTGRES_DATABASE_SIZE WARNING: DB hemocentro
 (host:hibiscus.hemo.unicamp.br) (port=5438) hemocentro: 7714865444 (7357
 MB) template1: 5497124 (5368 kB) template0: 5316612 (5192 kB)  |
 time=0.07  hemocentro=7714865444 template1=5497124 template0=5316612


 Obrigado pela força

 André


 Em 21/6/2010 09:30, benedito.ra...@caixa.gov.br escreveu:

 André,

 Quais os plugins que você está utilizando prá monitorar o Postgres?
 Precisa ver os parâmetros necessários para a checagem.
 Passa aí os nomes e URL dos plugins prá tentarmos te ajudar.

 Diramos

 -Mensagem original-
 De: André Ormenese [mailto:ormen...@unicamp.br]
 Enviada em: sexta-feira, 18 de junho de 2010 16:02
 Para: Lista Nagios
 Assunto: [Nagios-users-br] Monitorar PostgreSQL

 Boa tarde a todos !!
 Pessoal,
 acabei de me inscrever na lista, e já chego com dúvidas !!!

 Instalei o Nagios 3.2.1 num host Freebsd 6.1 e que tem o PostgreSQL
 8.4.2 intalado também.

 Consegui executar alguns 

[Nagios-users-br] Meu primeiro post

2010-06-21 Thread Jose Geraldo Oliveira
Olá a todos.

Desculpem mas este post é somente um teste, se vou receber meus proprios
emails.

Abraços
--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
-- 
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] Using PNP4Nagios

2010-06-21 Thread Jim Avery
On 21 June 2010 03:56, Daniel Bareiro daniel-lis...@gmx.net wrote:
 Hi, all!

 I'm testing PNP4Nagios, but for some reason I'm just looking graphics
 for services in the Nagios server. For the rest of the remote hosts,
 when I click on the some red star, I get something like this:

 Initalising
 (OK) Using /usr/local/nagios/share/perfdata/
 (OK) RRDTool /usr/bin/rrdtool found.
 (OK) RRDTool /usr/bin/rrdtool is executable
 (OK) PHP Function proc_open is enabled
 (OK) PHP Function fpassthru is enabled
 (OK) PHP Function xml_parser_create is enabled
 (OK) PHP zlib Support found.
 (OK) PHP GD Support found.
 (OK) RRD Base Directory /usr/local/nagios/share/perfdata/ found.
 (OK) Hostname Router is set.
 (!)  Directory /usr/local/nagios/share/perfdata/alderamin not found.

 Where Alderamin is the hostname. In the service status interface, the
 Nagios server shows no red stars for the host or for services. However I
 can access their information through the following URL:

 http://ws1/nagios/pnp/index.php


 These are the lines I've in /usr/local/nagios/etc/nagios.cfg for
 pnp4nagios:


 broker_module=/usr/local/nagios/bin/npcdmod.o

 process_performance_data=1
 enable_environment_macros=1

 host_perfdata_command=process-host-perfdata
 service_perfdata_command=process-service-perfdata


 In /usr/local/nagios/etc/objects/mynet.cfg I added srv-pnp to the
 service definitions in the directive use and I added host-pnp to the
 directive use in the hosts definitions. Also, I'm using
 process_perf_data 0 in both hosts and services definitions.


The srv-pnp and host-pnp templates will set the process_perf_data
directive like so:

  process_perf_data   1

If you override this by setting process_perf_data to 0 in the host or
service definition, this will stop PNP from generating the graph!

I recommend you remove the line which says process_perf_data 0 from
those service and host definitions in mynet.cfg which use the
srv-pnp and host-pnp template.

I hope that helps,

Jim

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
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] New active checks stuck in PENDING

2010-06-21 Thread Ryan C Ash
Cliff notes: ALL active checks are not executing

MY ENV: nagios 3.2.0, RHEL 5.4

I have an earlier post where I discussed this problem in detail.
http://forums.meulie.net/viewtopic.php?f=59t=6062hilit=pending

The services show up in the GUI but they are in a permanent PENDING. if
I reload/restart the GUI indicates an updated scheduled check time but
it never appears to occur, i.e I see nothing in nagios.log or
nagios.debug. Here is my service definition:
define service {
service_description
NG-ETL-LINUX-PERF_swap_used
display_name Linux swap used
servicegroups
NG-ETL-LINUX-PERF_service_group
hostgroup_name   NG-ETL-LINUX-PERF
check_commandcheck_nrpe!check_swap
passive_checks_enabled   0
active_checks_enabled1
check_interval   5
normal_check_interval5
max_check_attempts   1
check_period24x7
; The service can be checked at any time of the day
}


As you can see it doesn't use a template and it has only the bare
minimum because I am trying to figure out what is wrong. 

Nagios.cfg entries:
log_file=/opt/nagios/var/nagios.log
cfg_dir=/opt/nagios/etc/objects/hosts
cfg_dir=/opt/nagios/etc/objects/rel_hosts
cfg_dir=/opt/nagios/etc/objects/services
cfg_dir=/opt/nagios/etc/objects/host_groups
cfg_dir=/opt/nagios/etc/objects/global
object_cache_file=/opt/nagios/var/objects.cache
precached_object_file=/opt/nagios/var/objects.precache
resource_file=/opt/nagios/etc/resource.cfg
status_file=/opt/nagios/var/status.dat
status_update_interval=10
nagios_user=ccadmin
nagios_group=ccadmin
check_external_commands=1
command_check_interval=-1
command_file=/opt/nagios/var/rw/nagios.cmd
external_command_buffer_slots=4096
lock_file=/opt/nagios/var/nagios.lock
temp_file=/opt/nagios/var/nagios.tmp
temp_path=/tmp
event_broker_options=-1
broker_module=/opt/nagios/bin/ndomod-3x.o
config_file=/opt/nagios/etc/ndomod.cfg
broker_module=/usr/local/pnp4nagios/bin/npcdmod.o
config_file=/usr/local/pnp4nagios/etc/npcd.cfg 
log_rotation_method=d
log_archive_path=/opt/nagios/var/archives
use_syslog=0
log_notifications=1
log_service_retries=1
log_host_retries=1
log_event_handlers=1
log_initial_states=0
log_external_commands=1
log_passive_checks=1
global_host_event_handler=troubleticket_host
global_service_event_handler=troubleticket_service
service_inter_check_delay_method=s
max_service_check_spread=10 #ASH was 30
service_interleave_factor=s
host_inter_check_delay_method=s
max_host_check_spread=30
max_concurrent_checks=0
check_result_reaper_frequency=10
max_check_result_reaper_time=30
check_result_path=/opt/nagios/var/spool/checkresults
max_check_result_file_age=3600
cached_host_check_horizon=15
cached_service_check_horizon=15
enable_predictive_host_dependency_checks=1
enable_predictive_service_dependency_checks=1
soft_state_dependencies=0
auto_reschedule_checks=0
auto_rescheduling_interval=30
auto_rescheduling_window=180
sleep_time=0.25
service_check_timeout=30 #ASH was 60
host_check_timeout=30 #ASH was 30
event_handler_timeout=30
notification_timeout=30
ocsp_timeout=5
perfdata_timeout=5
retain_state_information=1
state_retention_file=/opt/nagios/var/retention.dat
retention_update_interval=60
use_retained_program_state=1
use_retained_scheduling_info=1
retained_host_attribute_mask=0
retained_service_attribute_mask=0
retained_process_host_attribute_mask=0
retained_process_service_attribute_mask=0
retained_contact_host_attribute_mask=0
retained_contact_service_attribute_mask=0
interval_length=60
check_for_updates=1
bare_update_check=0
use_aggressive_host_checking=0
execute_service_checks=1
accept_passive_service_checks=1
execute_host_checks=1
accept_passive_host_checks=1
enable_notifications=0
enable_event_handlers=1
process_performance_data=1
service_perfdata_file=/usr/local/pnp4nagios/var/service-perfdata
service_perfdata_file_template=DATATYPE::SERVICEPERFDATA\tTIMET::$TIMET$
\tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$SE
RVICEPERFDATA$\tSERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\tHOSTSTATE::$
HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tSERVICESTATE::$SERVICESTATE$
\tSERVICESTATETYPE::$SERVICESTATETYPE$
service_perfdata_file_mode=a
service_perfdata_file_processing_interval=15
service_perfdata_file_processing_command=process-service-perfdata-file
host_perfdata_file=/usr/local/pnp4nagios/var/host-perfdata
host_perfdata_file_template=DATATYPE::HOSTPERFDATA\tTIMET::$TIMET$\tHOST
NAME::$HOSTNAME$\tHOSTPERFDATA::$HOSTPERFDATA$\tHOSTCHECKCOMMAND::$HOSTC
HECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$
host_perfdata_file_mode=a
host_perfdata_file_processing_interval=15
host_perfdata_file_processing_command=process-host-perfdata-file

[Nagios-users] automated response

2010-06-21 Thread Nigel Heaney
I am unavailable until 8th July.  I will respond to email upon my return.


*
This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity 
to whom they are addressed. If you have received this email 
in error please notify postmas...@bgfl.org

The views expressed within this email are those of the 
individual, and not necessarily those of the organisation
*


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
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] bandwidth monitoring and presentation?

2010-06-21 Thread Roderick A. Anderson
On 06/19/2010 08:17 AM, Jim Avery wrote:
 On 18 June 2010 22:02, Roderick A. Andersonraand...@cyber-office.net  wrote:
 Similar to what Solarwinds does?

 I'm back.  Last August I asked about monitoring Tranzeo wireless radios
 and SNMP.

 Did some more searching and found my own posts :-) and a few more but
 nothing really substantial.

 More research and a bit of clarification of needs/desires leads me to
 think I need monitor bandwidth utilization and graph it.  I found the
 check_bandwidth plug-in.  Haven't tried it yet so was hoping some one on
 the list could offer some insight and as to what it will provide
 Nagios-wise.


 I'm not familiar with Tranzeo.  I guess what you're trying to do might
 be similar to the plugins for Motorola/Symbol WS8100 wireless
 switches.  You might be able to adapt those.

 http://www.monitoringexchange.org/inventory/Check-Plugins/Software/SNMP/Assorted-Nagios-Plugins

Thanks Jim.  Turns out I was misinformed about what they were trying to 
monitor but I will keep this in mind for further reference.


Rod
-- 

 --
 ThinkGeek and WIRED's GeekDad team up for the Ultimate
 GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
 lucky parental unit.  See the prize list and enter to win:
 http://p.sf.net/sfu/thinkgeek-promo
 ___
 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


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
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] Not receiving notification mails

2010-06-21 Thread R, Naveen
Dear All,
I have configured Nagios xi in my machine, that is on windows xp, making use of 
VM Player Virtual Machine. I have configure it to track some websites and it is 
tracking correctly, but as last I'm not receiving any mails of this 
notification. I tried to send the test mail, and I'm receiving it correctly, 
but when the service is down/up or might be any, I'm not receiving any 
notification mails for that. So, please can you guide me how I go further in 
this.

And also when I click on Apply configuration, it happens correctly and when I 
come to any apply configuration page it says Warning: configuration file is 
out of date! in red.

Also could you tell me the difference between Nagios Xi and Nagios 3.0.6 
version, because people who have installed 3.0.6 version, its working correctly 
for them, but not for me. :-(

So please guide me in resolving this issues.

Regards,
Naveen

The information contained in this message may be confidential and legally 
protected under applicable law. The message is intended solely for the 
addressee(s). If you are not the intended recipient, you are hereby notified 
that any use, forwarding, dissemination, or reproduction of this message is 
strictly prohibited and may be unlawful. If you are not the intended recipient, 
please contact the sender by return e-mail and destroy all copies of the 
original message.

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
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] Not receiving notification mails

2010-06-21 Thread shadih rahman
There are three things you need to check

1)  if Nagios server notification is enabled?
2) if service or host level notification is enabled?
3) if your contact definition has proper notification attribute?

On Mon, Jun 21, 2010 at 11:11 AM, R, Naveen navee...@philips.com wrote:

 Dear All,
 I have configured Nagios xi in my machine, that is on windows xp, making
 use of VM Player Virtual Machine. I have configure it to track some websites
 and it is tracking correctly, but as last I'm not receiving any mails of
 this notification. I tried to send the test mail, and I'm receiving it
 correctly, but when the service is down/up or might be any, I'm not
 receiving any notification mails for that. So, please can you guide me how I
 go further in this.

 And also when I click on Apply configuration, it happens correctly and when
 I come to any apply configuration page it says Warning: configuration file
 is out of date! in red.

 Also could you tell me the difference between Nagios Xi and Nagios 3.0.6
 version, because people who have installed 3.0.6 version, its working
 correctly for them, but not for me. :-(

 So please guide me in resolving this issues.

 Regards,
 Naveen

 The information contained in this message may be confidential and legally
 protected under applicable law. The message is intended solely for the
 addressee(s). If you are not the intended recipient, you are hereby notified
 that any use, forwarding, dissemination, or reproduction of this message is
 strictly prohibited and may be unlawful. If you are not the intended
 recipient, please contact the sender by return e-mail and destroy all copies
 of the original message.


 --
 ThinkGeek and WIRED's GeekDad team up for the Ultimate
 GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
 lucky parental unit.  See the prize list and enter to win:
 http://p.sf.net/sfu/thinkgeek-promo
 ___
 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




-- 
Cordially,
Shadhin Rahman
--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] Define dependencie in service defs?

2010-06-21 Thread Litwin, Matthew
Is there a way to define  what service a service depends on within te  
service definition itself for cases where the dependency heirarchy is  
localized to the same host? Dependency definitions are terrific in  
that they are so flexible, but it would be nice to contain that  
functionailty within a single service definition in an effort to  
simplify configuration.

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
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] Define dependencie in service defs?

2010-06-21 Thread Assaf Flatto
Litwin, Matthew wrote:
 Is there a way to define  what service a service depends on within te  
 service definition itself for cases where the dependency heirarchy is  
 localized to the same host? Dependency definitions are terrific in  
 that they are so flexible, but it would be nice to contain that  
 functionailty within a single service definition in an effort to  
 simplify configuration.
   
At the moment you must define it in a separate definition , but it does 
not have to be in a separate file .
just put the service dependency definition below/above the service 
declaration and thus you have a more easy to maintain way to know what 
you set up and how you need it .

You might want to suggest it as a feature for future development to be  
somewhat similar to the host parents definition , but i can see several 
issues with such an in service declaration .

Assaf

-- 
Never,Ever Cut A Deal With a Dragon 


I am doing a Charity Bike ride On the 27 of June for the
Capital to Coast Charity. Please help by Donating
http://www.justgiving.com/Lovefilm-capital-to-coast



--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
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 PNP4Nagios

2010-06-21 Thread Daniel Bareiro
Hi, Jim.

On Monday, 21 June 2010 12:32:00 +0100,
Jim Avery wrote:

  I'm testing PNP4Nagios, but for some reason I'm just looking
  graphics for services in the Nagios server. For the rest of the
  remote hosts, when I click on the some red star, I get something
  like this:
 
  Initalising
  (OK) Using /usr/local/nagios/share/perfdata/
  (OK) RRDTool /usr/bin/rrdtool found.
  (OK) RRDTool /usr/bin/rrdtool is executable
  (OK) PHP Function proc_open is enabled
  (OK) PHP Function fpassthru is enabled
  (OK) PHP Function xml_parser_create is enabled
  (OK) PHP zlib Support found.
  (OK) PHP GD Support found.
  (OK) RRD Base Directory /usr/local/nagios/share/perfdata/ found.
  (OK) Hostname Router is set.
  (!)  Directory /usr/local/nagios/share/perfdata/alderamin not found.
 
  Where Alderamin is the hostname. In the service status interface,
  the Nagios server shows no red stars for the host or for services.
  However I can access their information through the following URL:
 
  http://ws1/nagios/pnp/index.php
 
 
  These are the lines I've in /usr/local/nagios/etc/nagios.cfg for
  pnp4nagios:
 
 
  broker_module=/usr/local/nagios/bin/npcdmod.o
 
  process_performance_data=1
  enable_environment_macros=1
 
  host_perfdata_command=process-host-perfdata
  service_perfdata_command=process-service-perfdata
 
 
  In /usr/local/nagios/etc/objects/mynet.cfg I added srv-pnp to the
  service definitions in the directive use and I added host-pnp to
  the directive use in the hosts definitions. Also, I'm using
  process_perf_data 0 in both hosts and services definitions.

 The srv-pnp and host-pnp templates will set the process_perf_data
 directive like so:
 
   process_perf_data   1
 
 If you override this by setting process_perf_data to 0 in the host or
 service definition, this will stop PNP from generating the graph!
 
 I recommend you remove the line which says process_perf_data 0 from
 those service and host definitions in mynet.cfg which use the
 srv-pnp and host-pnp template.

Good. This made the difference. Now I can see the graphics on all remote
hosts but I can not see them on the host on which Nagios is installed.
But I found why this is. I was missing add host-pnp and srv-pnp in
the directive use in /usr/local/nagios/etc/objects/localhost.cfg file.

There are services that are failing to be plotted but I believe that it
is because they are not providing information for perfdata, as in the
case of check_md_raid. In the service state information table for the
check_md_raid service, the performance data is empty.

But I don't believe that it has much sense, for this particular case, to
make some type of graph. Perhaps for this case it may be desirable to
set process_perf_data to 0.

check_ssh and check_local_procs don't give information for perfdata
either.

On the other hand, I've a router whose host_name is Router#1. It
appears that the # was causing a conflict that would prevent the
creation of the directory to keep track of charting. After removing this
character, the problem was solved.

For this router I'm checking three services: Enet0, PING, uptime. Of
these three services, only PING (check_ping) is providing perfdata
information. Uptime is obtained using check_snmp and in this case it
would not have sense to plotting these values. But the values of the
Enet0 interface (check_snmp_int [1]) can be useful.



Thanks for your reply.

Regards,
Daniel

[1] http://nagios.manubulon.com/snmp_int.html
-- 
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Lenny - Linux user #188.598


signature.asc
Description: Digital signature
--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo___
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] Define dependencie in service defs?

2010-06-21 Thread Litwin, Matthew

On Jun 21, 2010, at 10:03 AM, Assaf Flatto wrote:

 Litwin, Matthew wrote:
 Is there a way to define  what service a service depends on within te  
 service definition itself for cases where the dependency heirarchy is  
 localized to the same host? Dependency definitions are terrific in  
 that they are so flexible, but it would be nice to contain that  
 functionailty within a single service definition in an effort to  
 simplify configuration.
 
 At the moment you must define it in a separate definition , but it does 
 not have to be in a separate file .
 just put the service dependency definition below/above the service 
 declaration and thus you have a more easy to maintain way to know what 
 you set up and how you need it .

Thanks, that is actually a good and simple solution. I suppose if I employ the 
regular expression matching tool for configuration that would make it even more 
automated. Have you worked with that. It seems pretty new.


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
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