Posts by rajeshballa

This forum was archived to /woltlab and is now in read-only mode.

    root@sard:/var/log/apache2# cat error.log
    [Mon Feb 13 22:27:58.731549 2017] [mpm_event:notice] [pid 10608:tid 140177662515072] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
    [Mon Feb 13 22:27:58.731646 2017] [core:notice] [pid 10608:tid 140177662515072] AH00094: Command line: '/usr/sbin/apache2'
    [Mon Feb 13 22:28:09.707368 2017] [mpm_event:notice] [pid 10608:tid 140177662515072] AH00491: caught SIGTERM, shutting down
    [Mon Feb 13 22:28:10.791795 2017] [mpm_prefork:notice] [pid 16618] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
    [Mon Feb 13 22:28:10.791883 2017] [core:notice] [pid 16618] AH00094: Command line: '/usr/sbin/apache2'
    [Mon Feb 13 22:28:12.191273 2017] [mpm_prefork:notice] [pid 16618] AH00169: caught SIGTERM, shutting down
    [Mon Feb 13 22:28:13.371863 2017] [mpm_prefork:notice] [pid 16729] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
    [Mon Feb 13 22:28:13.371953 2017] [core:notice] [pid 16729] AH00094: Command line: '/usr/sbin/apache2'
    [Mon Feb 13 22:34:21.030175 2017] [mpm_prefork:notice] [pid 16729] AH00169: caught SIGTERM, shutting down
    [Mon Feb 13 22:34:22.252858 2017] [mpm_prefork:notice] [pid 22635] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
    [Mon Feb 13 22:34:22.252945 2017] [core:notice] [pid 22635] AH00094: Command line: '/usr/sbin/apache2'
    [Mon Feb 13 22:34:23.479766 2017] [mpm_prefork:notice] [pid 22635] AH00171: Graceful restart requested, doing restart
    AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
    [Mon Feb 13 22:34:23.664241 2017] [mpm_prefork:notice] [pid 22635] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
    [Mon Feb 13 22:34:23.664255 2017] [core:notice] [pid 22635] AH00094: Command line: '/usr/sbin/apache2'
    [Mon Feb 13 22:57:18.729446 2017] [mpm_prefork:notice] [pid 22635] AH00169: caught SIGTERM, shutting down
    [Mon Feb 13 22:57:20.384097 2017] [mpm_prefork:notice] [pid 11242] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
    [Mon Feb 13 22:57:20.384226 2017] [core:notice] [pid 11242] AH00094: Command line: '/usr/sbin/apache2'
    [Mon Feb 13 23:01:37.636407 2017] [mpm_prefork:notice] [pid 11242] AH00169: caught SIGTERM, shutting down
    [Mon Feb 13 23:01:38.647186 2017] [mpm_prefork:notice] [pid 11703] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
    [Mon Feb 13 23:01:38.647289 2017] [core:notice] [pid 11703] AH00094: Command line: '/usr/sbin/apache2'
    [Mon Feb 13 23:38:34.651078 2017] [mpm_prefork:notice] [pid 11703] AH00171: Graceful restart requested, doing restart
    AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
    [Mon Feb 13 23:38:35.965865 2017] [mpm_prefork:notice] [pid 11703] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
    [Mon Feb 13 23:38:35.965885 2017] [core:notice] [pid 11703] AH00094: Command line: '/usr/sbin/apache2'
    [Mon Feb 13 23:38:36.201877 2017] [mpm_prefork:notice] [pid 11703] AH00169: caught SIGTERM, shutting down
    [Mon Feb 13 23:38:37.420395 2017] [wsgi:warn] [pid 14297] mod_wsgi: Compiled for Python/2.7.11.
    [Mon Feb 13 23:38:37.420438 2017] [wsgi:warn] [pid 14297] mod_wsgi: Runtime using Python/2.7.12.
    [Mon Feb 13 23:38:37.435017 2017] [mpm_prefork:notice] [pid 14297] AH00163: Apache/2.4.18 (Ubuntu) mod_wsgi/4.3.0 Python/2.7.12 configured -- resuming normal operations
    [Mon Feb 13 23:38:37.435070 2017] [core:notice] [pid 14297] AH00094: Command line: '/usr/sbin/apache2'
    [Tue Feb 14 00:34:24.548839 2017] [mpm_prefork:notice] [pid 14297] AH00169: caught SIGTERM, shutting down
    [Tue Feb 14 00:39:07.304474 2017] [wsgi:warn] [pid 24588] mod_wsgi: Compiled for Python/2.7.11.
    [Tue Feb 14 00:39:07.304507 2017] [wsgi:warn] [pid 24588] mod_wsgi: Runtime using Python/2.7.12.
    [Tue Feb 14 00:39:07.365344 2017] [mpm_prefork:notice] [pid 24588] AH00163: Apache/2.4.18 (Ubuntu) mod_wsgi/4.3.0 Python/2.7.12 configured -- resuming normal operations
    [Tue Feb 14 00:39:07.365407 2017] [core:notice] [pid 24588] AH00094: Command line: '/usr/sbin/apache2'
    [Tue Feb 14 00:41:20.816079 2017] [mpm_prefork:notice] [pid 24588] AH00169: caught SIGTERM, shutting down
    [Tue Feb 14 00:41:48.080063 2017] [wsgi:warn] [pid 24833] mod_wsgi: Compiled for Python/2.7.11.
    [Tue Feb 14 00:41:48.080107 2017] [wsgi:warn] [pid 24833] mod_wsgi: Runtime using Python/2.7.12.
    [Tue Feb 14 00:41:48.109357 2017] [mpm_prefork:notice] [pid 24833] AH00163: Apache/2.4.18 (Ubuntu) mod_wsgi/4.3.0 Python/2.7.12 configured -- resuming normal operations
    [Tue Feb 14 00:41:48.109403 2017] [core:notice] [pid 24833] AH00094: Command line: '/usr/sbin/apache2'
    [Tue Feb 14 00:42:52.524552 2017] [mpm_prefork:notice] [pid 24833] AH00169: caught SIGTERM, shutting down
    [Tue Feb 14 00:42:53.431412 2017] [wsgi:warn] [pid 25007] mod_wsgi: Compiled for Python/2.7.11.
    [Tue Feb 14 00:42:53.431445 2017] [wsgi:warn] [pid 25007] mod_wsgi: Runtime using Python/2.7.12.
    [Tue Feb 14 00:42:53.473906 2017] [mpm_prefork:notice] [pid 25007] AH00163: Apache/2.4.18 (Ubuntu) mod_wsgi/4.3.0 Python/2.7.12 configured -- resuming normal operations
    [Tue Feb 14 00:42:53.473941 2017] [core:notice] [pid 25007] AH00094: Command line: '/usr/sbin/apache2'
    [Tue Feb 14 00:43:37.833200 2017] [mpm_prefork:notice] [pid 25007] AH00169: caught SIGTERM, shutting down
    [Tue Feb 14 00:43:39.727205 2017] [wsgi:warn] [pid 25409] mod_wsgi: Compiled for Python/2.7.11.
    [Tue Feb 14 00:43:39.727267 2017] [wsgi:warn] [pid 25409] mod_wsgi: Runtime using Python/2.7.12.
    [Tue Feb 14 00:43:39.786863 2017] [mpm_prefork:notice] [pid 25409] AH00163: Apache/2.4.18 (Ubuntu) mod_wsgi/4.3.0 Python/2.7.12 configured -- resuming normal operations
    [Tue Feb 14 00:43:39.786902 2017] [core:notice] [pid 25409] AH00094: Command line: '/usr/sbin/apache2'
    [Tue Feb 14 00:46:43.482520 2017] [mpm_prefork:notice] [pid 25409] AH00169: caught SIGTERM, shutting down
    [Tue Feb 14 00:46:44.555719 2017] [wsgi:warn] [pid 25802] mod_wsgi: Compiled for Python/2.7.11.
    [Tue Feb 14 00:46:44.555772 2017] [wsgi:warn] [pid 25802] mod_wsgi: Runtime using Python/2.7.12.
    [Tue Feb 14 00:46:44.621001 2017] [mpm_prefork:notice] [pid 25802] AH00163: Apache/2.4.18 (Ubuntu) mod_wsgi/4.3.0 Python/2.7.12 configured -- resuming normal operations
    [Tue Feb 14 00:46:44.621037 2017] [core:notice] [pid 25802] AH00094: Command line: '/usr/sbin/apache2'
    [Tue Feb 14 00:50:48.461984 2017] [mpm_prefork:notice] [pid 25802] AH00169: caught SIGTERM, shutting down
    [Tue Feb 14 00:50:49.540985 2017] [wsgi:warn] [pid 26191] mod_wsgi: Compiled for Python/2.7.11.
    [Tue Feb 14 00:50:49.541022 2017] [wsgi:warn] [pid 26191] mod_wsgi: Runtime using Python/2.7.12.
    [Tue Feb 14 00:50:49.574900 2017] [mpm_prefork:notice] [pid 26191] AH00163: Apache/2.4.18 (Ubuntu) mod_wsgi/4.3.0 Python/2.7.12 configured -- resuming normal operations
    [Tue Feb 14 00:50:49.574941 2017] [core:notice] [pid 26191] AH00094: Command line: '/usr/sbin/apache2'

    1. i am working on Ubuntu 16.04 LTE. Even I done all these, graphs are not effective. It seems very basic version of graphs. Visualisation of graphs are not much effective.


    2. Reporting tab is not present.


    3. I think Pnp4nagios gives better visulasation of graphs. Pnp4nagios will able to integrate icingaweb2 ( on Ubuntu 16.04). ???


    Pls provide me detailed information.


    Thanks,

    @src


    root@sard:~# icinga2 object list --type service --name 'sard!apt'



    Object 'sard!apt' of type 'Service':
    % declared in '/etc/icinga2/conf.d/apt.conf', lines 1:0-1:18
    * __name = "sard!apt"
    * action_url = ""
    * check_command = "apt"
    % = modified in '/etc/icinga2/conf.d/apt.conf', lines 4:3-4:23
    * check_interval = 60
    % = modified in '/etc/icinga2/conf.d/templates.conf', lines 28:3-28:21
    * check_period = ""
    * check_timeout = null
    * command_endpoint = ""
    * display_name = "apt"
    * enable_active_checks = true
    * enable_event_handler = true
    * enable_flapping = false
    * enable_notifications = true
    * enable_passive_checks = true
    * enable_perfdata = true
    * event_command = ""
    * flapping_threshold = 30
    * groups = [ ]
    * host_name = "sard"
    % = modified in '/etc/icinga2/conf.d/apt.conf', lines 1:0-1:18
    * icon_image = ""
    * icon_image_alt = ""
    * max_check_attempts = 5
    % = modified in '/etc/icinga2/conf.d/templates.conf', lines 27:3-27:24
    * name = "apt"
    % = modified in '/etc/icinga2/conf.d/apt.conf', lines 1:0-1:18
    * notes = ""
    * notes_url = ""
    * package = "_etc"
    % = modified in '/etc/icinga2/conf.d/apt.conf', lines 1:0-1:18
    * retry_interval = 30
    % = modified in '/etc/icinga2/conf.d/templates.conf', lines 29:3-29:22
    * templates = [ "apt", "generic-service" ]
    % = modified in '/etc/icinga2/conf.d/apt.conf', lines 1:0-1:18
    % = modified in '/etc/icinga2/conf.d/templates.conf', lines 26:1-26:34
    * type = "Service"
    * vars = null
    * volatile = false
    * zone = ""
    root@sard:~#
    root@sard:~# cd /var/lib/graphite/whisper/icinga2/sard/services/apt/apt/perfdata root@sard:/var/lib/graphite/whisper/icinga2/sard/services/apt/apt/perfdata# ls - l
    total 8
    drwxr-xr-x 2 _graphite _graphite 4096 Feb 5 22:16 available_upgrades
    drwxr-xr-x 2 _graphite _graphite 4096 Feb 5 22:16 critical_updates
    root@sard:/var/lib/graphite/whisper/icinga2/sard/services/apt/apt/perfdata# whis per-dump available_upgrades/value.wsp
    Meta data:
    aggregation method: average
    max retention: 86400
    xFilesFactor: 0.5



    Archive 0 info:
    offset: 28
    seconds per point: 60
    points: 1440
    retention: 86400
    size: 17280



    Archive 0 data:
    0: 1486313160, 18
    1: 1486313220, 18
    2: 1486313280, 18
    3: 1486313340, 18
    4: 1486313400, 18
    5: 1486313460, 18
    6: 1486313520, 18
    7: 1486313580, 18
    8: 1486313640, 18
    9: 1486313700, 18
    10: 1486313760, 18
    11: 1486313820, 18
    12: 0, 0
    13: 1486313940, 18
    14: 1486314000, 18
    15: 1486314060, 18
    16: 1486314120, 18
    17: 1486314180, 18
    18: 0, 0
    19: 1486314300, 18
    20: 1486314360, 18
    21: 1486314420, 18
    22: 1486314480, 18
    23: 1486314540, 18
    24: 1486314600, 18
    25: 1486314660, 18
    26: 1486314720, 18
    27: 1486314780, 18
    28: 1486314840, 18
    29: 1486314900, 18
    30: 1486314960, 18
    31: 0, 0
    32: 0, 0
    33: 0, 0
    34: 0, 0
    35: 0, 0
    36: 0, 0
    37: 0, 0
    38: 0, 0
    39: 0, 0
    40: 0, 0
    41: 0, 0
    42: 0, 0
    43: 0, 0
    44: 0, 0
    45: 0, 0
    46: 0, 0
    47: 0, 0
    48: 0, 0
    49: 0, 0
    50: 0, 0
    51: 0, 0
    52: 0, 0
    53: 0, 0
    54: 0, 0
    55: 0, 0
    56: 0, 0
    57: 0, 0
    58: 0, 0
    59: 0, 0
    60: 0, 0
    61: 0, 0
    62: 0, 0
    63: 0, 0
    64: 0, 0

    Thanks, @src


    Please find the attachments,


    I am getting an error like unable to see graphs for apt service and when i open the graphs in new tab i am getting error ( Ref : "icinga3 attachment").


    i followed below procedure.



    root@sard:~# icinga2 feature list
    Disabled features: api compatlog debuglog gelf influxdb livestatus opentsdb statusdata syslog
    Enabled features: checker command graphite ido-mysql mainlog notification perfdata



    sudo apt-get update
    sudo apt-get install graphite-web graphite-carbon
    sudo apt-get install postgresql libpq-dev python-psycopg2



    root@sard:~# vim /etc/icinga2/features-available/graphite.conf



    /**
    * The GraphiteWriter type writes check result metrics and
    * performance data to a graphite tcp socket.
    */



    library "perfdata"



    object GraphiteWriter "graphite" {
    //host = "127.0.0.1"
    //port = 2003
    }
    ~




    root@sard:~# service carbon-cache status
    ● carbon-cache.service - Graphite Carbon Cache
    Loaded: loaded (/lib/systemd/system/carbon-cache.service; enabled; vendor pre
    Active: active (running) since Sun 2017-02-05 22:15:21 IST; 3min 12s ago
    Main PID: 30886 (carbon-cache)
    Tasks: 2
    Memory: 19.3M
    CPU: 459ms
    CGroup: /system.slice/carbon-cache.service
    └─30886 /usr/bin/python /usr/bin/carbon-cache --config=/etc/carbon/ca



    Feb 05 22:15:21 sard systemd[1]: Starting Graphite Carbon Cache...
    Feb 05 22:15:21 sard systemd[1]: Started Graphite Carbon Cache.




    root@sard:~# ls -l /var/lib/graphite/whisper/icinga2/
    total 4
    drwxr-xr-x 4 _graphite _graphite 4096 Feb 5 22:15 sard




    root@sard:~# icinga2 object list --type service | grep enable_perfdata
    * enable_perfdata = true
    * enable_perfdata = true
    * enable_perfdata = true
    * enable_perfdata = true
    * enable_perfdata = true
    * enable_perfdata = true
    * enable_perfdata = true
    * enable_perfdata = true
    * enable_perfdata = true
    * enable_perfdata = true
    * enable_perfdata = true
    * enable_perfdata = true



    sudo apt-get install graphite-web graphite-carbon
    77 apt-get install graphite-carbon graphite-web apache2 libapache2-mod-wsgi curl
    78 echo 'CARBON_CACHE_ENABLED=true' >> /etc/default/graphite-carbon
    79 graphite-manage syncdb
    80 chown _graphite:icingaweb2 /var/lib/graphite/graphite.db
    81 a2ensite graphite-web
    82 vim /etc/icinga2/features-available/graphite.conf




    git clone https://github.com/Icinga/icingaweb2-module-graphite
    87 mv icingaweb2-module-graphite graphite
    88 ls
    89 mv /usr/share/icingaweb2/modules/
    90 mv graphite /usr/share/icingaweb2/modules/
    91 cd /usr/share/icingaweb2/modules/
    92 ls
    93 cd graphite
    94 mkdir -p /etc/icingaweb2/modules/graphite
    95 cp -rv sample-config/icinga2/* /etc/icingaweb2/modules/graphite
    96 vi /etc/icingaweb2/modules/graphite/config.ini
    97 chown -R root:icingaweb2 /etc/icingaweb2/modules/graphite
    98 chmod -R 2755 /etc/icingaweb2/modules/graphite
    99 vi /etc/icingaweb2/modules/graphite/config.ini
    100 vim /etc/default/graphite-carbon
    101 vim /etc/carbon/carbon.conf
    102 vim /etc/carbon/storage-schemas.conf
    103 cp /usr/share/doc/graphite-carbon/examples/storage-aggregation.conf.example /etc/carbon/storage-aggregation.conf
    104 vim /etc/carbon/storage-aggregation.conf
    105 service carbon-cache restart
    106 apt-get install apache2 libapache2-mod-wsgi
    107 a2dissite 000-default
    108 cp /usr/share/graphite-web/apache2-graphite.conf /etc/apache2/sites-available
    109 a2ensite apache2-graphite
    110 service icinga2 restart
    111 icinga2 feature enable livestatus statusdata
    112 service icinga2 restart
    113 vim /etc/carbon/carbon.conf
    114 ls
    115 vim /etc/icingaweb2/modules/graphite/config.ini
    116 service carbon-cache restart
    117 service icinga2 restart