Re: [Nagios-users] problems with a Script on nagios

2007-05-31 Thread Rev. Dr. Aaron M. Segura
Every user should have rights to read '/etc/passwd'. More likely you don't have rights to read /var/log/messages as nagios. On Thu, 2007-05-31 at 10:14 +0200, Jose luis Fernandez wrote: > Because the user on shell is "root" and you have rights to > process /etc/passwd, but the user of NAGIOS does

Re: [Nagios-users] problems with a Script on nagios

2007-05-31 Thread Jose luis Fernandez
Title: Jose Luis Fernández Sánchez Mi español es un poco mejor, lol     A mi me ha pasado algo parecido con otros scripts y mis pruebas han pasado por logarme con el usuario nagios y ejecutarlo. También se me ocurre que coloques el fichero passwd en el home del usuario nagiosdonde no es suscep

Re: [Nagios-users] problems with a Script on nagios

2007-05-31 Thread Aritz . Lazkano
Hola Jose Luis, Primero gracias por responderme, te lo agradezco. La cuestion es que le he dado los permisos al usuario nagios y todo sigue igual si se te ocurre algo mas nuevamente gracias por la ayuda! Aritz. -

Re: [Nagios-users] problems with a Script on nagios

2007-05-31 Thread Jose luis Fernandez
Because the user on shell is "root" and you have rights to process /etc/passwd, but the user of NAGIOS doesn´t have rights to read /etc/passwd [EMAIL PROTECTED] escribió: Hi Nagiosexchange users!!! I have some problems with this  bash script. The objetive is to monitor all the incor

[Nagios-users] problems with a Script on nagios

2007-05-31 Thread Aritz . Lazkano
Hi Nagiosexchange users!!! I have some problems with this bash script. The objetive is to monitor all the incorrect logins to the sistem so I created this script. check_acces --- #!/bin/bash di=`date '+%B %d'` for i in `cut -f1 -d: /etc/passwd`; do kkY=`grep \Failed\ \ke