Hi All,
wonder is someone can point me in the right direction. Current I have an NTI Environmental unit which I want to monitor.
Have created a cfg file for the NTI unit but getting the below error, would appreciate some advice
Error: Service check command 'check_nti_snmp.pl -H 10.186.0.150 -C public -m batch -p envSems2d' specified in service 'check_nti_snmp' for host 'envSems2d_10.186.0.150' not defined anywhere!
Checked 9 services.
Warning: Host 'envSems2d_10.186.0.150' has no default contacts or contactgroups defined!
NTI Environmental Unit On Nagios Core
Re: NTI Environmental Unit On Nagios Core
Can you post your actual cfg file for us to look at?
Former Nagios Employee
-
elnunezgib
- Posts: 3
- Joined: Tue Aug 16, 2016 2:36 pm
Re: NTI Environmental Unit On Nagios Core
This is the configuration file for the NTI Unit
Code: Select all
###############################################################################
#
# HOST DEFINITION
#
###############################################################################
###############################################################################
# Define a host for the local machine
define host{
use generic-host ; Name of host template to use
; This host definition will inherit all variables that are defined
; in (or inherited by) the linux-server host template definition.
host_name envSems2d_10.186.0.150
alias Environmux-2D 10.186.0.150
address 10.186.0.150
max_check_attempts 5
}
###############################################################################
#
# HOST GROUP DEFINITION
#
###############################################################################
# Define an optional hostgroup for Linux machines
define hostgroup{
hostgroup_name generic-contact ; The name of the hostgroup
alias Environmental ; Long name of the group
members localhost ; Comma separated list of hosts that belong to this group
}
###############################################################################
#
# SERVICE DEFINITIONS
#
###############################################################################
# Define a service to "ping" the local machine
define service{
use local-service ; Name of service template to use
host_name envSems2d_10.186.0.150
service_description check_nti_snmp
check_command check_nti_snmp.pl -H 10.186.0.150 -C public -m batch -p envSems2d
}
Last edited by tmcdonald on Wed Aug 17, 2016 9:47 am, edited 1 time in total.
Reason: Please use [code][/code] tags around config file output
Reason: Please use [code][/code] tags around config file output
-
elnunezgib
- Posts: 3
- Joined: Tue Aug 16, 2016 2:36 pm
Re: NTI Environmental Unit On Nagios Core
This is the configuration on the command.cfg
# Command definition for Network Technologies Inc SNMP plugin
define command{
command_name check_nti_snmp
command_line $USER1$/check_nti_snmp.pl -H $HOSTADDRESS$ $ARG1$
}
###############################################################################
# Command definition for Network Technologies Inc SNMP plugin
define command{
command_name check_nti_snmp
command_line $USER1$/check_nti_snmp.pl -H $HOSTADDRESS$ $ARG1$
}
###############################################################################
Re: NTI Environmental Unit On Nagios Core
Code: Select all
check_command check_nti_snmp.pl -H 10.186.0.150 -C public -m batch -p envSems2d
Code: Select all
check_command check_nti_snmp!-C public -m batch -p envSems2d
Former Nagios Employee