Ad Widget

Collapse

FPING Question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • doingthere
    Junior Member
    • Jul 2014
    • 3

    #1

    FPING Question

    Hi Guys

    I am a bit of newbie to zabbix and linux for that matter so I downloaded and began using the appliance version. I have invested time in working out Hosts, items, triggers etc and that all works great now but I am stuck on one thing which I would really appreciate some help.

    I want to be able to ping agentless hosts using simplecheck but my zabbix install keeps telling me I need fping installed. I have worked my way through the forums and all i can find is a list of commands I need to run and its supposed to work. The commands are:

    chown root:zabbix /usr/sbin/fping
    chmod 4710 /usr/sbin/fping

    as per the manual

    this dosent fix it for me, correct me if I am wrong but I log into my appliance via the putty shell, login as root and then run these commands (hopefully this is correct as I said not much linux experience here)

    I have read the other posts but its not making sense to me, please help I like the product and I am enjoying using it but obviously my knowledge is letting me down here.

    Thanks

    Simon
  • filipp.sudanov
    Senior Member
    Zabbix Certified Specialist
    • May 2014
    • 137

    #2
    I've grabbed Zabbix appliance 2.2.2. The two commands you listed did not change anything - the appliance was already in a state that these command are trying to achieve.

    But is I login to shell as "zabbix" user and try to run fping, I get:
    Code:
    zabbix@linux-xhfb:~> /usr/sbin/fping
    -bash: /usr/sbin/fping: Permission denied
    Let's see...

    Code:
    linux-xhfb:/ # ls /usr/sbin/fping -l
    -rws--x--- 1 root zabbix 31400 jan 31  2013 /usr/sbin/fping
    "--x" in the middle says, that users belongint to group "zabbix" have right to execute fping. Let's see, which groups user "zabbix" belongs to:
    Code:
    linux-xhfb:/ # groups zabbix
    zabbix : users
    The only group user "zabbix" belongs to is "users". There seems to be some misconfiguration. Let's try to fix it by adding user "zabbix" to group "zabbix".
    Code:
    usermod -a -G zabbix zabbix
    (First "zabbix" is group, second - user name). Logout and login again as "zabbix" for the changes to get applied.

    Code:
    zabbix@linux-xhfb:~> /usr/sbin/fping 192.168.1.254
    192.168.1.254 is alive
    UPD:
    Groups are applied when user logs out and relogins. For zabbix_server runs under "zabbix" user, so it's needs restarting for the changes to get applied. The simplies was is to restart the whole virtual appliance.
    Last edited by filipp.sudanov; 15-07-2014, 12:16.

    Comment

    • doingthere
      Junior Member
      • Jul 2014
      • 3

      #3
      Thank you very much for replying to me

      so if I understand you correctly you are saying that we need to change permissions.

      Again almost complete nooby with linux (but following your code) will the code you supplied change anything or do I need further changes after that will this enable fping

      sorry for silly question just trying to get my head around it.

      Comment

      • doingthere
        Junior Member
        • Jul 2014
        • 3

        #4
        actually i just re read it and forgot to restart its working

        I understand now

        thank you for explaining

        Comment

        Working...