Author: glen Date: Sun Mar 6 20:49:47 2005 GMT Module: SOURCES Tag: DEVEL ---- Log message: - printf in PLD in /bin - cosmetics
---- Files affected: SOURCES: nagios-config.patch (1.1.2.1 -> 1.1.2.2) ---- Diffs: ================================================================ Index: SOURCES/nagios-config.patch diff -u SOURCES/nagios-config.patch:1.1.2.1 SOURCES/nagios-config.patch:1.1.2.2 --- SOURCES/nagios-config.patch:1.1.2.1 Sun Mar 6 21:36:33 2005 +++ SOURCES/nagios-config.patch Sun Mar 6 21:49:42 2005 @@ -50,7 +50,7 @@ +++ ./sample-config/checkcommands.cfg 2005-03-06 22:14:50.581683465 +0200 @@ -0,0 +1,224 @@ +################################################################################ -+# object config file for Nagios ++# object config file for Nagios +# +################################################################################ + @@ -264,7 +264,7 @@ + + +# This command checks to see if a host is "alive" by pinging it -+# The check must result in a 100% packet loss or 5 second (5000ms) round trip ++# The check must result in a 100% packet loss or 5 second (5000ms) round trip +# average time to produce a critical error. +# Note: Only one ICMP echo packet is sent (determined by the '-p 1' argument) + @@ -278,7 +278,7 @@ +++ ./sample-config/contactgroups.cfg 2005-03-06 22:14:50.593681034 +0200 @@ -0,0 +1,18 @@ +################################################################################ -+# object config file for Nagios ++# object config file for Nagios +# +################################################################################ + @@ -300,7 +300,7 @@ +++ ./sample-config/contacts.cfg 2005-03-06 22:14:50.593681034 +0200 @@ -0,0 +1,29 @@ +################################################################################ -+# object config file for Nagios ++# object config file for Nagios +# +################################################################################ + @@ -333,7 +333,7 @@ +++ ./sample-config/dependencies.cfg 2005-03-06 22:14:50.594680831 +0200 @@ -0,0 +1,16 @@ +################################################################################ -+# object config file for Nagios ++# object config file for Nagios +# +################################################################################ + @@ -353,7 +353,7 @@ +++ ./sample-config/escalations.cfg 2005-03-06 22:14:50.595680628 +0200 @@ -0,0 +1,19 @@ +################################################################################ -+# object config file for Nagios ++# object config file for Nagios +# +################################################################################ + @@ -361,7 +361,7 @@ +# SERVICE ESCALATION DEFINITIONS +# +################################################################################ -+ ++ +################################################################################ +# HOSTGROUP ESCALATION DEFINITIONS +# @@ -369,14 +369,14 @@ + +################################################################################ +# HOST ESCALATION DEFINITIONS -+# ++# +################################################################################ diff -Nur ../c/hostgroups.cfg ./hostgroups.cfg --- ../c/hostgroups.cfg 1970-01-01 03:00:00.000000000 +0300 +++ ./sample-config/hostgroups.cfg 2005-03-06 22:14:50.595680628 +0200 @@ -0,0 +1,18 @@ +################################################################################ -+# object config file for Nagios ++# object config file for Nagios +# +################################################################################ + @@ -398,7 +398,7 @@ +++ ./sample-config/hosts.cfg 2005-03-06 22:14:50.596680426 +0200 @@ -0,0 +1,46 @@ +################################################################################ -+# object config file for Nagios ++# object config file for Nagios +# +################################################################################ + @@ -419,7 +419,7 @@ + retain_status_information 1 ; Retain status information across program restarts + retain_nonstatus_information 1 ; Retain non-status information across program restarts + -+ register 0 ; DONT REGISTER THIS DEFINITION ++ register 0 ; DONT REGISTER THIS DEFINITION + ; - ITS NOT A REAL HOST, JUST A TEMPLATE! +} + @@ -443,12 +443,11 @@ + + +# vim:ts=8:sw=8 -diff -Nur ../c/misccommands.cfg ./misccommands.cfg ---- ../c/misccommands.cfg 1970-01-01 03:00:00.000000000 +0300 -+++ ./sample-config/misccommands.cfg 2005-03-06 22:14:50.597680223 +0200 -@@ -0,0 +1,97 @@ +--- /dev/null 2005-01-08 06:33:45.000000000 +0200 ++++ ./sample-config/misccommands.cfg 2005-03-06 22:38:01.799753000 +0200 +@@ -0,0 +1,89 @@ +################################################################################ -+# Object config file for Nagios ++# Object config file for Nagios +# +################################################################################ + @@ -492,31 +491,27 @@ +# 'notify-by-email' command definition +define command { + command_name notify-by-email -+ command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ ++ command_line /bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ +} + -+ +# 'notify-by-epager' command definition +define command { + command_name notify-by-epager -+ command_line /usr/bin/printf "%b" "Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $SERVICEOUTPUT$\nDate: $LONGDATETIME$" | /bin/mail -s "$NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$" $CONTACTPAGER$ ++ command_line /bin/printf "%b" "Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $SERVICEOUTPUT$\nDate: $LONGDATETIME$" | /bin/mail -s "$NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$" $CONTACTPAGER$ +} + -+ +# 'host-notify-by-email' command definition +define command { + command_name host-notify-by-email -+ command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$ ++ command_line /bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$ +} + -+ +# 'host-notify-by-epager' command definition +define command { + command_name host-notify-by-epager -+ command_line /usr/bin/printf "%b" "Host '$HOSTALIAS$' is $HOSTSTATE$\nInfo: $HOSTOUTPUT$\nTime: $LONGDATETIME$" | /bin/mail -s "$NOTIFICATIONTYPE$ alert - Host $HOSTNAME$ is $HOSTSTATE$" $CONTACTPAGER$ ++ command_line /bin/printf "%b" "Host '$HOSTALIAS$' is $HOSTSTATE$\nInfo: $HOSTOUTPUT$\nTime: $LONGDATETIME$" | /bin/mail -s "$NOTIFICATIONTYPE$ alert - Host $HOSTNAME$ is $HOSTSTATE$" $CONTACTPAGER$ +} + -+ +################################################################################ +# +# PERFORMANCE DATA COMMANDS @@ -529,27 +524,23 @@ +# +################################################################################ + -+ +# 'process-host-perfdata' command definition +define command { + command_name process-host-perfdata -+ command_line /usr/bin/printf "%b" "$LASTHOSTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$HOSTSTATETYPE$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$" >> /var/lib/nagios/host-perfdata.out ++ command_line /bin/printf "%b" "$LASTHOSTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$HOSTSTATETYPE$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$" >> /var/lib/nagios/host-perfdata.out +} + -+ +# 'process-service-perfdata' command definition +define command { + command_name process-service-perfdata -+ command_line /usr/bin/printf "%b" "$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$SERVICESTATETYPE$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$" >> /var/lib/nagios/service-perfdata.out ++ command_line /bin/printf "%b" "$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$SERVICESTATETYPE$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$" >> /var/lib/nagios/service-perfdata.out +} -+ -+ diff -Nur ../c/services.cfg ./services.cfg --- ../c/services.cfg 1970-01-01 03:00:00.000000000 +0300 +++ ./sample-config/services.cfg 2005-03-06 22:14:50.597680223 +0200 @@ -0,0 +1,53 @@ +################################################################################ -+# object config file for Nagios ++# object config file for Nagios +# +################################################################################ + @@ -606,7 +597,7 @@ +++ ./sample-config/timeperiods.cfg 2005-03-06 22:14:50.598680021 +0200 @@ -0,0 +1,72 @@ +################################################################################ -+# object config file for Nagios ++# object config file for Nagios +# +################################################################################ + ================================================================ ---- CVS-web: http://cvs.pld-linux.org/SOURCES/nagios-config.patch?r1=1.1.2.1&r2=1.1.2.2&f=u _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit