in reply to Script to monitor

but it is still not making the expected result
what is the expected result? what is the observed result?

a couple observations: