Re: (No output on stdout) stderr:
Posted: Tue Dec 30, 2014 2:38 pm
Can you query other performance counters?
Support for Nagios products and services
https://support.nagios.com/forum/
Code: Select all
define host{
host_name fghi ; The name we're giving to this host
alias ggggg ; A longer name associated with the host
address 10.40.10.2 ; IP address of the host
hostgroups servers
address 10.40.1.33 ; IP address of the host
check_period 24x7 ; By default, Windows servers are monitored round the clock
check_interval 5 ; Actively check the server every 5 minutes
retry_interval 1 ; Schedule host check retries at 1 minute intervals
max_check_attempts 10 ; Check each server 10 times (max)
check_command check-host-alive ; Default command to check if servers are "alive"
notification_period 24x7 ; Send notification out at any time - day or night
notification_interval 30 ; Resend notifications every 30 minutes
notification_options d,r ; Only send notifications for specific host states
contact_groups admins ; Notifications get sent to the admins by default
}Code: Select all
define hostgroup{
hostgroup_name sgxnet-servers ; The name of the hostgroup
alias sgxnet Servers ; Long name of the group
members jklm, fghi
}Code: Select all
/usr/local/nagios/bin/nagios -vvv /usr/local/nagios/etc/nagios.cfgCode: Select all
enable_environment_macros=1Code: Select all
service nagios restart