Posts by ghovat

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

    You should better write it this way:


    Code
    1. vars.service-running = {
    2. "Redis Server Running" = {
    3. service_name = "redis-server"
    4. }
    5. }

    Thanks i changed it but i get the following error:


    Sorry here is the whole output:


    Here is my host object:


    Hi,


    I added a new check to my icinga2 Instance (the check works)

    But if i restart the host i get the following error, I dont find the error.

    Below you find my configuration and the error


    Code
    1. /etc/icinga2/zones.d/master/hosts.conf(1474):       vars.service-running["Redis Server Running"] = {
    2.                                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    3. /etc/icinga2/zones.d/master/hosts.conf(1475):   
    4.                                               ^^
    5. /etc/icinga2/zones.d/master/hosts.conf(1476):   service_name = "redis-server"
    6.                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    7. /etc/icinga2/zones.d/master/hosts.conf(1477):     
    8.                                               ^^^^
    9. /etc/icinga2/zones.d/master/hosts.conf(1478):   }
    10.                                               ^^^

    Here is my command:


    Here is my service:


    Code
    1. apply Service "service-running" {
    2. import "generic-service"
    3. check_command = "service-running"
    4. vars = host.vars.service-running
    5. command_endpoint = host.vars.client_endpoint
    6. assign where host.vars.client_endpoint && host.vars._check_service_running
    7. }

    Here is the part from the host config:

    Code
    1.       vars.service-running["Redis Server Running"] = {
    2.   service_name = "redis-server"
    3.   }

    Hi,


    In my Icinga Setup I monitor regular AWS EC2 instances, this works fine.

    Additional I have load based ec2 servers, if the load reaches a defined limit AWS starts this servers.

    Now I want also to monitor these servers but if the are turned of I dont want to get alerts.


    I was thinking to alert only for these servers if the turned on but I think this is a bad approach because

    it could possible that the servers is not reachable but should be turned on.


    Has anyone a different idea?

    Thanks

    Hi,


    in my infrastructure I have Fedora 25 and Ubuntu 16.04 hosts.

    In my service.conf I have a Service for apt and one for check_updates (see below)


    On my Fedora hosts I install

    su -c 'dnf upgrade nagios-plugins-check-updates'


    For the Ubuntu Hosts the apt check works fine.

    But as soon i add the check_updates service I get the following error:


    Hi,


    on my AWS AIM Linux Host i followed the steps mentionend up.

    But i get the following error:



    Here you find the steps that i made: