Prosíme přihlašte se nebo zaregistrujte.

Přihlašte se svým uživatelským jménem a heslem.
Vaše pomoc je stále potřeba!

Autor Téma: Nagios2 NRPE (No output returned from plugin)  (Přečteno 2365 krát)

Marcelius

  • Návštěvník
  • Příspěvků: 81
  • ...super načural...
Nagios2 NRPE (No output returned from plugin)
« kdy: 30 Července 2009, 19:04:03 »
Zdravim,
uz nejaky cas riesim NRPE agenta a nejako sa neviem pohnut. Google toho povedal sice vela, ale nejako som nepokrocil...

Mam 2 servery. Ubuntu 8.04 (Nagios2 192.168.0.120) a Debian 5 (NRPE agent 192.168.0.138)
Pri pokuse nacitat sluzbu (napr. check user) mi Nagios hlasi: No output returned from plugin
Rucne to vsak ide:
Kód: [Vybrat]
marcel@ubuntu:~$ /usr/lib/nagios/plugins/check_nrpe -H 192.168.0.138 -c check_users
USERS OK - 1 users currently logged in |users=1;5;10;0


Posielam este konfigurak hosta:
Kód: [Vybrat]
define host {
        host_name                       flower
        hostgroups                       linux virtual servers
        alias                                  Flower
        address                            192.168.0.138
        use                                   generic-host
        check_command              check-host-alive
        max_check_attempts       3
        checks_enabled                1
        notification_interval           0
        notification_period             24x7
        notification_options           d,r
        notifications_enabled         1
#       first_notification_delay      0
        contact_groups                  admins
}

define service{
        use                             generic-service
        host_name                       flower
        service_description             SSH
        check_command                   check_ssh
        }

define service{
        use                             generic-service
        host_name                       flower
        service_description             PING
        check_command                   check-host-alive
        }

define service {
use                     generic-service
host_name               flower
service_description     Current Users
check_command           check_nrpe!check_users
}
   

Vdaka za akukolvek radu.
elá hop...

picard

  • Stálý člen
  • **
  • Příspěvků: 563
Re: Nagios2 NRPE (No output returned from plugin)
« Odpověď #1 kdy: 31 Července 2009, 12:11:46 »
« Poslední změna: 31 Července 2009, 12:18:01 od drhlik »

Marcelius

  • Návštěvník
  • Příspěvků: 81
  • ...super načural...
Re: Nagios2 NRPE (No output returned from plugin)
« Odpověď #2 kdy: 31 Července 2009, 12:46:15 »
Dobry den,
postupoval som podla tychto a este aj inych navodov, no nejde to.
elá hop...

Marcelius

  • Návštěvník
  • Příspěvků: 81
  • ...super načural...
Re: Nagios2 NRPE (No output returned from plugin)
« Odpověď #3 kdy: 01 Srpna 2009, 15:47:26 »
Tak uz to ide.
Problem nebol v konfiguracii hosta (hosts.cfg), ani v konfiguracii NRPE agenta. Problem bol v nespravnom zapise konfiguracie check_nrpe.cfg
Kód: [Vybrat]
#define command {
# command_name check_nrpe
# command_line /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -c $ARG2$
#}

define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$


Tak dufam ze to niekomu, kto riesi Nagios a NRPE agenta pomoze.
elá hop...

 

Provoz zaštiťuje spolek OpenAlt.