Lmiltchev,
Thanks for your instructions and I followed the step with almost success. Unfortunately, I'm getting a "null" return and "warning" status. I'm sure it has something to do with my environment/config and I would like you please review my config and recommend a fix if at all possible. Our area is notorious for bad weather related damages and would like to utilize this useful plugin for this season.
/usr/local/nagios/etc/objects/commands.cfg
################################################################################
#
# SAMPLE SERVICE CHECK COMMANDS
#
# These are some example service check commands. They may or may not work on
# your system, as they must be modified for your plugins. See the HTML
# documentation on the plugins for examples of how to configure command definitions.
#
# NOTE: The following 'check_local_...' functions are designed to monitor
# various metrics on the host that Nagios is running on (i.e. this one).
################################################################################
# 'check_cap' command definition
define command {
command_name check_cap
command_line $USER1$/./check_cap -s MN -l 027123 -w Moderate -c Severe
}
# 'check_local_disk' command definition
define command{
command_name check_local_disk
command_line $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
}
/usr/local/nagios/etc/objects/localhost.cfg
# Define an optional hostgroup for Linux machines
define hostgroup{
hostgroup_name linux-servers ; The name of the hostgroup
alias Linux Servers ; Long name of the group
members localhost ; Comma separated list of hosts that belong to this group
}
###############################################################################
###############################################################################
#
# SERVICE DEFINITIONS
#
###############################################################################
###############################################################################
# Define a service to "check_cap" for weather alerts from NOAA
define service{
use local-service ; Name of service template to use
host_name localhost
service_description Weather Alerts
check_command check_cap
}
Thanks in advance.
Scott