Patrick, This is the sysedge rule that I use, it executes that batch script when its polled by Spectrum.
#monitor the number of buckets queued in the mysql directory extension 22 Integer ReadOnly f:\check_queued_buckets.bat monitor oid 1.3.6.1.4.1.546.14.22.0 29 0x200508 360 absolute >= 325 'Warning : Interface Avail Bucket Queue Threshold Exceeded' 'C:\sysedge\bin\email.exe -a -r x.x.x.x [email protected] [email protected]' ( mailto:[email protected]' ) Here is the batch script: @echo off perl.exe f:/check_queued_buckets.pl Here is the perl script that the batch script runs, forgive me i could probably make it one script but I figured it was small enough and getting perl to launch right in windows from the scheduler was what I had issues with. #!/usr/bin/perl my $numfiles; my $check_numfiles = `ls /f/win32app/SPECTRUM/mysql/data/reporting | grep ^intavail | wc -l`; print "$check_numfiles"; I am sure you can edit this to do what you are looking to do. Its been in place for about a year now, there is no automatic clear for this though im sure it wouldn't be that hard to put that in place also. If you need more information then let me know. Regards, Sean Sean Carnes Cablevision Systems Corp. Network Management Systems & Metrics 172*85*77/5167902323/5163905910 -------------------------------------------------------- The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain information concerning Cablevision and/or its affiliates and subsidiaries that is proprietary, privileged, confidential and/or subject to copyright. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient(s) is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof. -------------------------------------------------------- --- To unsubscribe from spectrum, send email to [email protected] with the body: unsubscribe spectrum [email protected]
