minimal.cfg file
David Turner
dturner at wams.com
Sat Nov 26 08:02:06 CET 2005
I just installed nagios and the online way I could get it started is by
commenting out the following lines in the minimal.cfg file The service
starts now, but I am wondering why I had to comment out the lines and if it
will affect anything.
#define command{
# command_name notify-by-email
# command_line /usr/bin/printf "%b" "***** Nagios
*****\n\nNotificatio
n Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost:
$HOSTALIAS$\nAddress
: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time:
$LONGDATETIME$\n\nAdditiona
l Info:\n\n$OUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ alert -
$HOSTALIAS$/$
SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
# }
# This is a sample host notification command that can be used to send email
# notifications (about host alerts) to contacts.
#define command{
# command_name host-notify-by-email
# command_line /usr/bin/printf "%b" "***** Nagios
*****\n\nNotificatio
n Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress:
$HOST
ADDRESS$\nInfo: $OUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s
"Host $H
OSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$
# }
# Command to check to see if a host is "alive" (up) by pinging it
#define command{
# command_name check-host-alive
# command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 99,99% -c
100,10
0% -p 1
# }
# Generic command to check a device by pinging it
#define command{
# command_name check_ping
# command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c
$ARG2$
-p 5
# }
# Command used to check disk space usage on local partitions
#define command{
# command_name check_local_disk
# command_line $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
# }
# Command used to check the number of currently logged in users on the
# local machine
#define command{
# command_name check_local_users
# command_line $USER1$/check_users -w $ARG1$ -c $ARG2$
# }
# Command to check the number of running processing on the local machine
#define command{
# command_name check_local_procs
# command_line $USER1$/check_procs -w $ARG1$ -c $ARG2$
# }
# Command to check the load on the local machine
#define command{
# command_name check_local_load
# command_line $USER1$/check_load -w $ARG1$ -c $ARG2$
# }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20051125/d0939e6c/attachment.html>
More information about the Users
mailing list