The easier route may be to use the epel repository and just yum install 
check-mk-agent.

I'm doing that at home with CentOS7 and at work with Red Hat 7 and it works 
just fine.

I didn't check to see if there is a newer version, but this works in kickstart:
wget -O /tmp/epel-release.rpm 
http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
rpm -Uvh /tmp/epel-release.rpm
yum update epel-release -y
yum install check-mk-agent -y

If you want to do it manually, check your IP stack like Marcel recommended.  

Allen

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Robert
Sent: Sunday, March 29, 2015 11:05 AM
To: [email protected]
Subject: [omd-users] Getting agent to work

Hello,

I have installed Centos7 that I want to use as my monitoring server. I 
presently trying to get the agent running on the monitoring server but I seem 
to not be setting something up correctly.

I could not find any rpm files so I decided to following this url;

        https://mathias-kettner.de/checkmk_linuxagent.html

I copied the agent to /usr/bin/check_mk_agent from the agent directory under omd

I also copied xinetd.conf to /etc/xinetd.d/check_mk and changed it as
so:


**********BEGIN**********
service check_mk
{
        type           = UNLISTED
        port           = 6556
        socket_type    = stream
        protocol       = tcp
        wait           = no
        user           = root
        server         = /usr/bin/check_mk_agent

        # If you use fully redundant monitoring and poll the client
        # from more then one monitoring servers in parallel you might
        # want to use the agent cache wrapper:
        server         = /usr/bin/check_mk_caching_agent

        # configure the IP address(es) of your Nagios server here:
        only_from      = 127.0.0.1 192.168.15.100

        # Don't be too verbose. Don't log every check. This might be
        # commented out for debugging. If this option is commented out
        # the default options will be used for this service.
        log_on_success =

        disable        = no
}
**********END**********

I restarted the xinetd service and ensured it was up and running

**********BEGIN**********
[root@localhost xinetd.d]# systemctl status xinetd.service xinetd.service - 
Xinetd A Powerful Replacement For Inetd
   Loaded: loaded (/usr/lib/systemd/system/xinetd.service; enabled)
   Active: active (running) since Sun 2015-03-29 11:39:25 EDT; 10min ago
  Process: 20910 ExecStart=/usr/sbin/xinetd -stayalive -pidfile 
/var/run/xinetd.pid $EXTRAOPTIONS (code=exited,
status=0/SUCCESS) Main PID: 20911 (xinetd)
CGroup: /system.slice/xinetd.service └─20911 /usr/sbin/xinetd -stayalive 
-pidfile /var/run/xinetd.pid
**********END**********

I checked what is listing on what ports with 'netstat -ltn':

**********BEGIN**********
[root@localhost xinetd.d]# netstat -ltn                   
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address
State tcp        0      0 127.0.0.1:25
0.0.0.0:*               LISTEN tcp        0      0
127.0.0.1:5000          0.0.0.0:*               LISTEN tcp
0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
tcp6       0      0 ::1:25                  :::*
LISTEN tcp6       0
0 :::6556                 :::*                    LISTEN tcp6
0      0 :::80                   :::*                    LISTEN
tcp6       0      0 :::22                   :::*
LISTEN     
**********END**********

What am I missing here?

All help is must appreciated.


--
Regards
Robert

Smile... it increases your face value!
_______________________________________________
omd-users mailing list
[email protected]
http://lists.mathias-kettner.de/mailman/listinfo/omd-users


---------------------------------------------------------------------------
The information transmitted in this e-mail and in any replies and forwards are 
for the sole use of the above individual(s) or entities and may contain 
proprietary, privileged and/or highly confidential information. Any 
unauthorized dissemination, review, distribution or copying of these 
communications is strictly prohibited. If this e-mail has been transmitted to 
you in error, please notify and return the original message to the sender 
immediately at the above listed address. Thank you for your cooperation.

_______________________________________________
omd-users mailing list
[email protected]
http://lists.mathias-kettner.de/mailman/listinfo/omd-users

Reply via email to