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:
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:
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.