With 1.7 million freelancers, we'll match you with the perfect talent.
The client has made the following changes to the job.
Client prefers freelancers from:
You are still able to submit a proposal for this job.
The client prefers freelancers from
a different location.
I need to modify the script to add an additional feature to it.
The ethstat.sh script will return this output which works fine:
Col 0 Err 0 OutDis 0 InDis 0 OutErr 0 InErr 0
Now I need to add an additional featue that will do 3 levels of checks:
1. If all fields are 0 then return --returncode=0
2. If any of the fields if they are greater than 0 and less than 50 have --returncode=1
3. If any field is greater than 100 have a --returncode=2
The output (--returncode=) must determine the line to use for reporting to another system.
Below you can see that the --returncode= must coordinate with the errors discovered.
if [ "$etherr" = "$errors" ]
/usr//bin/send_gearman --server=192.168.5.99:4730 --encryption=yes --key=Modlinux23 --host=xigear --service=Ethernet_Stats --message="$eth" --returncode=0
/usr//bin/send_gearman --server=192.168.5.99:4730 --encryption=yes --key=Modlinux23 --host=xigear --service=Ethernet_Stats --message="$eth" --returncode=1
Sign in or Register to see more