<br><font size=2 face="Trebuchet MS">I have already setup nagios which
is working fine. It can monitor my localhost and window box perfectly with
default configs provided. </font>
<br><font size=2 face="Trebuchet MS">Can anyone help me to setup/monitor
unix host? I have these things ready with me</font>
<br>
<br><font size=2 face="Trebuchet MS"><b>template.cfg,</b></font>
<br>
<br><font size=2 face="Trebuchet MS">define host{</font>
<br><font size=2 face="Trebuchet MS"> name
redhat-server ; The name of this host template</font>
<br><font size=2 face="Trebuchet MS"> use
generic-host ; This template inherits other
values from the generic-host template</font>
<br><font size=2 face="Trebuchet MS"> check_period
24x7
; By default, Linux hosts are
checked round the clock</font>
<br><font size=2 face="Trebuchet MS"> check_interval
5
; Actively check the host every
5 minutes</font>
<br><font size=2 face="Trebuchet MS"> retry_interval
1
; Schedule host check retries
at 1 minute intervals</font>
<br><font size=2 face="Trebuchet MS"> max_check_attempts
10
; Check each Linux host 10 times (max)</font>
<br><font size=2 face="Trebuchet MS"> check_command
check-host-alive
; Default command to check Linux hosts</font>
<br><font size=2 face="Trebuchet MS"> notification_period
workhours
; Linux admins hate to be woken up, so we only notify during the day</font>
<br><font size=2 face="Trebuchet MS">
; Note that the notification_period variable is being overridden
from</font>
<br><font size=2 face="Trebuchet MS">
; the value that is inherited from the generic-host template!</font>
<br><font size=2 face="Trebuchet MS"> notification_interval
120
; Resend notifications every 2 hours</font>
<br><font size=2 face="Trebuchet MS"> notification_options
d,u,r
; Only send notifications for specific host states</font>
<br><font size=2 face="Trebuchet MS"> contact_groups
admins
; Notifications get sent to the admins by default</font>
<br><font size=2 face="Trebuchet MS"> register
0 ; DONT REGISTER
THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!</font>
<br><font size=2 face="Trebuchet MS"> }</font>
<br>
<br><font size=2 face="Trebuchet MS"><b>redhat5.cfg,</b></font>
<br><font size=2 face="Trebuchet MS">define host{</font>
<br><font size=2 face="Trebuchet MS"> use
redhat-server</font>
<br><font size=2 face="Trebuchet MS"> host_name
redhat5.remotehost.com</font>
<br><font size=2 face="Trebuchet MS"> alias
Redhat5
Remote Host</font>
<br><font size=2 face="Trebuchet MS"> address
172.17.38.201</font>
<br><font size=2 face="Trebuchet MS"> contact_groups
admins</font>
<br><font size=2 face="Trebuchet MS">}</font>
<br>
<br><font size=2 face="Trebuchet MS"># HOST GROUP DEFINITION</font>
<br><font size=2 face="Trebuchet MS"># Define an optional hostgroup for
Linux machines</font>
<br>
<br><font size=2 face="Trebuchet MS">define hostgroup{</font>
<br><font size=2 face="Trebuchet MS"> hostgroup_name
redhat-servers ; The name of the hostgroup</font>
<br><font size=2 face="Trebuchet MS"> alias
Linux Servers ; Long name of the group</font>
<br><font size=2 face="Trebuchet MS"> members
redhat5.remotehost.com ; Comma
separated list of hosts that belong to this group</font>
<br><font size=2 face="Trebuchet MS"> }</font>
<br>
<br>
<br><font size=2 face="Trebuchet MS">define service{</font>
<br><font size=2 face="Trebuchet MS"> use
generic-service</font>
<br><font size=2 face="Trebuchet MS"> service_description
Root Partition</font>
<br><font size=2 face="Trebuchet MS">
contact_groups admins</font>
<br><font size=2 face="Trebuchet MS"> check_command
check_nrpe!check_disk</font>
<br><font size=2 face="Trebuchet MS">}</font>
<br>
<br><font size=2 face="Trebuchet MS">define service{</font>
<br><font size=2 face="Trebuchet MS"> use
generic-service ; Name of service
template to use</font>
<br><font size=2 face="Trebuchet MS"> host_name
redhat5.remotehost.com</font>
<br><font size=2 face="Trebuchet MS"> service_description
Current Users</font>
<br><font size=2 face="Trebuchet MS"> check_command
check_nrpe!check_users!20!50</font>
<br><font size=2 face="Trebuchet MS"> }</font>
<br>
<br><font size=2 face="Trebuchet MS">Thanks,</font>
<br><font size=2 face="Trebuchet MS">Nilesh </font>
<BR>
______________________________________________________________________<BR>