Changeset 1229
- Timestamp:
- 01/17/12 18:42:04 (4 months ago)
- Location:
- nagios/linuxmuster-nagios-base/branches/lml60testing
- Files:
-
- 5 edited
-
debian/changelog (modified) (1 diff)
-
debian/postinst (modified) (2 diffs)
-
usr/sbin/linuxmuster-nagios-setup (modified) (1 diff)
-
var/lib/linuxmuster-nagios/templates/apache2.conf.tpl (modified) (1 diff)
-
var/lib/linuxmuster-nagios/templates/linuxmuster_main.tpl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nagios/linuxmuster-nagios-base/branches/lml60testing/debian/changelog
r1228 r1229 1 linuxmuster-nagios-base (0.8.2-oneiric 1) unstable; urgency=low1 linuxmuster-nagios-base (0.8.2-oneiric5) unstable; urgency=low 2 2 3 3 * Testing for ubuntu server 4 * Removing nagiosstandard config 5 * Getting correct versioninfo 6 * check_ping to check_ping_4 7 * apache2.conf: index.php as DirectoryIndex 8 * linuxmuster-nagios-setup finds the wrong ips: fixed 4 9 5 10 -- Frank Schiebel <frank@linuxmuster.net> Mon, 16 Jan 2012 20:35:00 +0100 -
nagios/linuxmuster-nagios-base/branches/lml60testing/debian/postinst
r861 r1229 15 15 16 16 # Getting Version 17 VERSION=` awk -F/ '{print $1}' < /etc/issue`17 VERSION=`head -n 1 /etc/issue | cut -d' ' -f1,2 | tr -d '\n'` 18 18 19 19 case "$1" in 20 20 configure) 21 22 # First install on ubuntu 23 distconf=`ls /etc/nagios3/conf.d/*nagios2.cfg > /dev/null 2>&1` 24 if [ "x${distconf}" != "x" ]; then 25 # remove distributed config 26 rm /etc/nagios3/conf.d/* > /dev/null 2>&1 27 fi 21 28 22 29 # Upgrade fom nagios 2 to nagios 3 … … 120 127 if [[ -n "$INSTALLED" && -e "$INSTALLED" ]]; then 121 128 # patch LML Version to /etc/linuxmuster/nagios.conf 122 123 sed -i "s/DESC_SERVER=\".*\"/DESC_SERVER=\"Server: $VERSION\"/" /etc/linuxmuster/nagios.conf 124 sed -i "s/DESC_FW=\".*\"/DESC_FW=\"Firewall: $VERSION\"/" /etc/linuxmuster/nagios.conf 125 sed -i "s/DESC_SERVERGROUP=\".*\"/DESC_SERVERGROUP=\"Server $VERSION\"/" /etc/linuxmuster/nagios.conf 129 sed -i "s/DESC_SERVER=\".*\"/DESC_SERVER=\"Server: ${VERSION}\"/" /etc/linuxmuster/nagios.conf 130 sed -i "s/DESC_FW=\".*\"/DESC_FW=\"Firewall: ${VERSION}\"/" /etc/linuxmuster/nagios.conf 131 sed -i "s/DESC_SERVERGROUP=\".*\"/DESC_SERVERGROUP=\"Server ${VERSION}\"/" /etc/linuxmuster/nagios.conf 126 132 sed -i "s|/var/run/nagios2|/var/run/nagios3|" /etc/passwd 127 133 -
nagios/linuxmuster-nagios-base/branches/lml60testing/usr/sbin/linuxmuster-nagios-setup
r637 r1229 35 35 $temp = `host $SERVER`; 36 36 chomp($temp); 37 @temparray = split(/\s+/, $temp);38 $IP{$SERVER} = $temp array[2];37 $temp =~ s/^.*\s(.*)$/$1/; 38 $IP{$SERVER} = $temp; 39 39 40 40 $temp = `host $IPCOP`; 41 41 chomp($temp); 42 @temparray = split(/\s+/, $temp);43 $IP{$IPCOP} = $temp array[2];42 $temp =~ s/^.*\s(.*)$/$1/; 43 $IP{$IPCOP} = $temp; 44 44 45 45 # determine ldap basedn -
nagios/linuxmuster-nagios-base/branches/lml60testing/var/lib/linuxmuster-nagios/templates/apache2.conf.tpl
r638 r1229 31 31 Options FollowSymLinks 32 32 33 DirectoryIndex index.html 33 DirectoryIndex index.html index.php 34 34 35 35 AllowOverride AuthConfig -
nagios/linuxmuster-nagios-base/branches/lml60testing/var/lib/linuxmuster-nagios/templates/linuxmuster_main.tpl
r861 r1229 73 73 retain_status_information 1 ; savestatus information across restarts 74 74 retain_nonstatus_information 1 ; save non-status info across restarts 75 check_command check-host-alive 75 check_command check-host-alive_4 76 76 max_check_attempts 10 77 77 notification_interval 0 … … 120 120 alias ####DESC_SERVER#### 121 121 address ####SERVERIP#### 122 check_command check-host-alive 122 check_command check-host-alive_4 123 123 max_check_attempts 20 124 124 notification_interval 60 … … 132 132 alias ####DESC_FW#### 133 133 address ####FWIP#### 134 check_command check-host-alive 134 check_command check-host-alive_4 135 135 max_check_attempts 20 136 136 notification_interval 60 … … 182 182 service_description SYS - host up/ping 183 183 notification_options c,r 184 check_command check_ping !100.0,20%!500.0,60%184 check_command check_ping_4!100.0,20%!500.0,60% 185 185 } 186 186 … … 238 238 service_description SYS - host up/ping 239 239 notification_options c,r 240 check_command check_ping !100.0,20%!500.0,60%240 check_command check_ping_4!100.0,20%!500.0,60% 241 241 } 242 242
Note: See TracChangeset
for help on using the changeset viewer.
