DX NetOps

  • 1.  How to run ifmon script on Linux server

    Posted May 26, 2015 10:56 PM
      |   view attached

    Hi Team,

     

    For cases "00070267 - Physical Memory 101%" and "00087695 - interface usange over than 16000% bandwidth utilizationeHealth", both are Linux eHealth server. I tried to run ifmon script to verify the data from a device. But got below error.

    Please correct me if I am wrong.

     

    I followed below steps to run this script.

    ---

    [ehealth@IM1RH65EH tmp]$ cd ..

    [ehealth@IM1RH65EH eHealth]$ cd bin

    [ehealth@IM1RH65EH bin]$ ../nethealthrc.sh

    [ehealth@IM1RH65EH bin]$ cd ..

    [ehealth@IM1RH65EH eHealth]$ cd tmp

    [ehealth@IM1RH65EH tmp]$ ll

    total 1592

    -rw-r--r-- 1 root    root       4761 May 13  2015 ifMon.sh

    [ehealth@IM1RH65EH tmp]$ dos2unix -ascii ifMon.sh

    dos2unix: converting file ifMon.sh to UNIX format ...

    [ehealth@IM1RH65EH tmp]$ chmod 777 ifMon.sh

    [ehealth@IM1RH65EH tmp]$ ll

    total 1592

    -rwxrwxrwx 1 ehealth ehealth    4761 May 13 15:12 ifMon.sh

    [ehealth@IM1RH65EH tmp]$ ./ifMon.sh 10.241.248.191 public

    bash: ./ifMon.sh: /usr/bin/sh: bad interpreter: No such file or directory

     

    Then checked ksh installation(on customer's environment)

    [caadmin@ehealth tmp]$ rpm -qa | grep ksh

    yum install kshksh-20100621-6.el6.x86_64

    [caadmin@ehealth tmp]$ rpm -qa | grep ksh

    ksh-20100621-6.el6.x86_64

    [caadmin@ehealth tmp]$

    ---

    Attached the ifmon.sh script.

     

    Any help is appreciated.

     

    Thanks and Best regards,

     

    Shen Peng

    Attachment(s)

    zip
    ifmon_fix.txt.zip   2 KB 1 version


  • 2.  Re: How to run ifmon script on Linux server

    Posted May 27, 2015 02:00 PM

    You need to customize the ifmon script per the instructions in the script's file header if Support did not do it for you.



  • 3.  Re: How to run ifmon script on Linux server
    Best Answer

    Posted May 27, 2015 06:15 PM

    Hi Shen,

     

    It looks like that version of the script prompts for the IP address as well as the community string name, so you don't need to specify the IP when you invoke it.

     

    It is also an older version of the script. We have a much newer one which runs on all platforms. I will send it to you.

     

    Regards,

    Chris