Changeset 1229


Ignore:
Timestamp:
01/17/12 18:42:04 (4 months ago)
Author:
fsch
Message:

oneiric5

Location:
nagios/linuxmuster-nagios-base/branches/lml60testing
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • nagios/linuxmuster-nagios-base/branches/lml60testing/debian/changelog

    r1228 r1229  
    1 linuxmuster-nagios-base (0.8.2-oneiric1) unstable; urgency=low 
     1linuxmuster-nagios-base (0.8.2-oneiric5) unstable; urgency=low 
    22 
    33  * 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 
    49 
    510 -- Frank Schiebel <frank@linuxmuster.net>  Mon, 16 Jan 2012 20:35:00 +0100 
  • nagios/linuxmuster-nagios-base/branches/lml60testing/debian/postinst

    r861 r1229  
    1515 
    1616# Getting Version  
    17 VERSION=`awk -F/ '{print $1}' < /etc/issue` 
     17VERSION=`head -n 1 /etc/issue  | cut -d' ' -f1,2 | tr -d '\n'` 
    1818 
    1919case "$1" in 
    2020    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 
    2128         
    2229        # Upgrade fom nagios 2 to nagios 3 
     
    120127        if [[ -n "$INSTALLED" && -e "$INSTALLED" ]]; then 
    121128                # 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  
    126132                sed -i "s|/var/run/nagios2|/var/run/nagios3|"  /etc/passwd 
    127133 
  • nagios/linuxmuster-nagios-base/branches/lml60testing/usr/sbin/linuxmuster-nagios-setup

    r637 r1229  
    3535$temp = `host $SERVER`; 
    3636chomp($temp); 
    37 @temparray = split(/\s+/, $temp); 
    38 $IP{$SERVER} = $temparray[2]; 
     37$temp =~ s/^.*\s(.*)$/$1/; 
     38$IP{$SERVER} = $temp; 
    3939 
    4040$temp = `host $IPCOP`; 
    4141chomp($temp); 
    42 @temparray = split(/\s+/, $temp); 
    43 $IP{$IPCOP} = $temparray[2]; 
     42$temp =~ s/^.*\s(.*)$/$1/; 
     43$IP{$IPCOP} = $temp; 
    4444 
    4545# determine ldap basedn 
  • nagios/linuxmuster-nagios-base/branches/lml60testing/var/lib/linuxmuster-nagios/templates/apache2.conf.tpl

    r638 r1229  
    3131           Options FollowSymLinks 
    3232 
    33            DirectoryIndex index.html 
     33           DirectoryIndex index.html index.php 
    3434 
    3535           AllowOverride AuthConfig 
  • nagios/linuxmuster-nagios-base/branches/lml60testing/var/lib/linuxmuster-nagios/templates/linuxmuster_main.tpl

    r861 r1229  
    7373   retain_status_information       1 ; savestatus information across restarts 
    7474   retain_nonstatus_information    1 ; save non-status info across restarts 
    75    check_command                   check-host-alive 
     75   check_command                   check-host-alive_4 
    7676   max_check_attempts              10 
    7777   notification_interval           0 
     
    120120        alias                   ####DESC_SERVER#### 
    121121        address                 ####SERVERIP#### 
    122         check_command           check-host-alive 
     122        check_command           check-host-alive_4 
    123123        max_check_attempts      20 
    124124        notification_interval   60 
     
    132132        alias                   ####DESC_FW#### 
    133133        address                 ####FWIP#### 
    134         check_command           check-host-alive 
     134        check_command           check-host-alive_4 
    135135        max_check_attempts      20 
    136136        notification_interval   60 
     
    182182        service_description             SYS - host up/ping 
    183183        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% 
    185185        } 
    186186 
     
    238238        service_description             SYS - host up/ping 
    239239        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% 
    241241        } 
    242242 
Note: See TracChangeset for help on using the changeset viewer.