I do not have check_yum anywhere related to this host, yet I am getting the wrong response.
If I run check_apt locally I get the correct response:
Code: Select all
user@web-backups:~# /usr/lib/nagios/plugins/check_apt
APT OK: 0 packages available for upgrade (0 critical updates). |available_upgrades=0;;;0 critical_updates=0;;;0
Code: Select all
###############################################################################
###############################################################################
#
# HOST DEFINITION
#
###############################################################################
###############################################################################
# Define a host for the local machine
define host{
use linux-server
host_name host.name
alias Web Backups
address xxx.xxx.xxx.xxx
}
###############################################################################
###############################################################################
#
# SERVICE DEFINITIONS
#
###############################################################################
###############################################################################
define service{
use local-service
host_name host.name
service_description Drive Space
check_command check_hdd!10!5
}
define service{
use generic-service
host_name host.name
service_description Updates
check_command check_apt
}
define service{
use generic-service
host_name host.name
service_description Uptime
check_command check_remote_uptime
}
Code: Select all
# 'check_yum'
define command{
command_name check_yum
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_yum
}
# 'check_apt'
define command{
command_name check_apt
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_apt
}
Code: Select all
### SYSTEM UPDATES ###
#command[check_yum]=/usr/lib/nagios/plugins/check_yum
command[check_apt]=/usr/lib/nagios/plugins/check_apt
Code: Select all
### SYSTEM UPDATES ###
#command[check_yum]=/usr/lib/nagios/plugins/check_yum
command[check_yum]=/usr/lib/nagios/plugins/check_apt
Any ideas?
Thanks