Does anyone have any experience with the procedures that are to trigger alerts? I noted that even when 0 is passed as an argument to def alert(), it still causes the procedure to fail and send an alert. Is there something that I am missing? I created a small test procedure and unless I don’t pass arguments to the alerts function it always throws an alert. Sample code below…
please make ensure that all the indentation must be appropriate within the script before running it.
In alert () function accepts only the integer value as a passing argument.
CASE1: if you’re sending 0 as an argument it will return 000 which means alert would be in OFF state.
CASE2: if you’re sending 1 as an argument it will return 111 which means alert would be in ON state.
we have fixed the indentation errors in your sample code: Try this code
Thanks for the reply. That’s my problem, the results of my script should be zero which should NOT trigger an alert. The problem is that it does trigger an alert. What precipitated this was that I ran the S.M.A.R.T script against several computers. Even though the result passed a zero to the alert function which should not have triggered an alert, I received an email for all of the them that were run Regardless of the result. That’s what led me to creating a very simple script to test the alert function. I would be more than happy to do a shared session with you to show you what it’s doing.