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