Ad Widget

Collapse

fping on Suse 10.3 not working / Zabbix 1.4.2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RohrbaGe
    Senior Member
    • Aug 2005
    • 167

    #1

    fping on Suse 10.3 not working / Zabbix 1.4.2

    Hello,

    I have some problems to get the fping working on Suse 10.3
    As I have some experience with zabbix on Suse 9.3,10.1 and 10.2 I think I have done
    the right steps.
    1) user and group zabbix are created, user zabbix is member of group zabbix
    2) fping is installed under /usr/sbin/fping ( default)
    3) zabbix_server.conf is pointing for fping in the path /usr/sbin/fping

    4) I set the rights as described in the manual
    -rws--s--- 1 root zabbix 26620 Sep 22 00:06 fping

    5) If I run su -zabbix and try to run fping -C 5 -q 12.2.2.2: command not found
    If I run /usr/sbin/fping -C 5 -q 12.2.2.2 it works fine.

    I guess, that the server process will have the same problem and will not find the fping command.

    Has someone a similiar effect and already a soloution.

    Where do I have to search?

    Regards

    Gerald


    Forgot that, after a reboot everything works fine.
    Still I do not understand, why it does not work before.
    Last edited by RohrbaGe; 21-10-2007, 10:51.
  • jeenam
    Member
    • Oct 2007
    • 43

    #2
    dur

    Try this:

    su - zabbix
    echo $PATH

    Does the $PATH variable include the path to 'fping'? It's unlikely it does since regular user accounts do not include *sbin in their path. Either create a link to fping in /usr/bin/ (e.g. ln -s /usr/sbin/fping /usr/bin/fping) or edit the /home/zabbix/.bashrc file to include:

    PATH=$PATH:/usr/bin

    Creating a link is safer as regular user accounts should not have super user bin (/sbin, /usr/sbin, /usr/local/sbin) directories in their path as it is a security risk.

    Comment

    Working...