Fórum Ubuntu CZ/SK

Ostatní => Ubuntu Server => Téma založeno: Marcelius 30 Července 2009, 19:04:03

Název: Nagios2 NRPE (No output returned from plugin)
Přispěvatel: Marcelius 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.
Název: Re: Nagios2 NRPE (No output returned from plugin)
Přispěvatel: picard 31 Července 2009, 12:11:46
Postupoval jste takto?
Viz www.fit.vutbr.cz/study/DP/rpfile.php?id=3458 (http://www.fit.vutbr.cz/study/DP/rpfile.php?id=3458)
Podrobněji: http://nagios.sourceforge.net/docs/2_0/toc.html (http://nagios.sourceforge.net/docs/2_0/toc.html)
Název: Re: Nagios2 NRPE (No output returned from plugin)
Přispěvatel: Marcelius 31 Července 2009, 12:46:15
Dobry den,
postupoval som podla tychto a este aj inych navodov, no nejde to.
Název: Re: Nagios2 NRPE (No output returned from plugin)
Přispěvatel: Marcelius 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.