Thanks Javier. Now I applied it to the Ethernet interface on one of the workstations being monitored (VIA Compatable Fast Ethernet A....ID is 19)
bash-2.05b# cd /opt/jffnms/engine/ bash-2.05b# php rrd_analizer.php 19 bash-2.05b# php rrd_analizer.php 19 > log.txt bash-2.05b# ls -al log.txt -rw-r--r-- 1 root jffnms 0 Feb 4 10:10 log.txt The other SLAs (which are all the defaults that came with the software seem to work) 10:30:07 I2 : ======================================================================== ================== 10:30:07 I2 : Start: 2006-02-04 09:55:00 Stop: 2006-02-04 10:25:00 Measures: 6 10:30:07 I2 : cpu(76) num_users(1) num_procs(36) tcp_active(0) tcp_passive(0) tcp_established(0) 10:30:07 I2 : ------------------------------------------------------------------------ ------------------ 10:30:08 New Event (799): 2006-02-04 10:30:08 - 12 - 2 - CPU - alert - rrd_analizer_sla - CPU > 10%: 76 % - 11 10:30:08 I2 : sla : Cond0: (76 > 10) = 1 -TRUE- CPU > 10%: 76 % 10:30:08 I2 : sla : Cond1: (36 > 100) = 0 -FALSE- Processes > 100: 36 Processes 10:30:08 I2 : sla : Cond0= Eval 1 vs 0: 0 OR 1 = 1 10:30:08 I2 : sla : Final Eval: True. INFO: CPU > 10%: 76 % 10:30:08 I3 : ======================================================================== ================== 10:30:08 I3 : Start: 2006-02-04 09:55:00 Stop: 2006-02-04 10:25:00 Measures: 6 10:30:08 I3 : storage_block_size(4096) storage_block_count(9767512) storage_used_blocks(1043656) 10:30:08 I3 : ------------------------------------------------------------------------ ------------------ 10:30:08 I3 : sla : Cond0: ( 1043656 > ((9767512*80)/100)) = 0 -FALSE- Used > 80%: 10.68 % 10:30:08 I3 : sla : Final Eval: False. 10:30:08 I4 : ======================================================================== ================== 10:30:08 I4 : Start: 2006-02-04 09:55:00 Stop: 2006-02-04 10:25:00 Measures: 6 10:30:08 I4 : storage_block_size(4096) storage_block_count(19537040) storage_used_blocks(13916266) 10:30:08 I4 : ------------------------------------------------------------------------ ------------------ 10:30:08 I4 : sla : Cond0: ( 13916266 > ((19537040*80)/100)) = 0 -FALSE- Used > 80%: 71.23 % 10:30:08 I4 : sla : Final Eval: False. 10:30:09 I5 : ======================================================================== ================== 10:30:09 I5 : Start: 2006-02-04 09:55:00 Stop: 2006-02-04 10:25:00 Measures: 6 10:30:09 I5 : storage_block_size(4096) storage_block_count(48839600) storage_used_blocks(47700176) 10:30:09 I5 : ------------------------------------------------------------------------ ------------------ 10:30:09 New Event (800): 2006-02-04 10:30:09 - 12 - 2 - E: - alert - rrd_analizer_sla - Storage Used > 90%: 97.67 % - 9 10:30:09 I5 : sla : Cond0: ( 47700176 > ((48839600*90)/100)) = 1 -TRUE- Used > 90%: 97.67 % 10:30:09 I5 : sla : Final Eval: True. INFO: Storage Used > 90%: 97.67 % 10:30:09 I6 : ======================================================================== ================== 10:30:09 I6 : Start: 2006-02-04 09:55:00 Stop: 2006-02-04 10:25:00 Measures: 6 10:30:09 I6 : storage_block_size(65536) storage_block_count(32406) storage_used_blocks(3627) 10:30:09 I6 : ------------------------------------------------------------------------ ------------------ 10:30:09 I6 : sla : Cond0: ( 3627 > ((32406*80)/100)) = 0 -FALSE- Used > 80%: 11.19 % 10:30:09 I6 : sla : Final Eval: False. 10:30:09 I7 : ======================================================================== ================== 10:30:09 I7 : Start: 2006-02-04 09:55:00 Stop: 2006-02-04 10:25:00 Measures: 6 10:30:09 I7 : storage_block_size(65536) storage_block_count(8183) storage_used_blocks(5174) 10:30:09 I7 : ------------------------------------------------------------------------ ------------------ 10:30:09 I7 : sla : Cond0: ( 5174 > ((8183*80)/100)) = 0 -FALSE- Used > 80%: 63.23 % 10:30:09 I7 : sla : Final Eval: False. 10:30:09 I13 : ======================================================================== ================== 10:30:09 I13 : Start: 2006-02-04 09:55:00 Stop: 2006-02-04 10:25:00 Measures: 6 10:30:09 I13 : cpu(0) mem_used(11934658) mem_free(4842560) acct_packets(0) acct_bytes(0) tcp_active(0) tcp_passive(0) tcp_established(0) 10:30:09 I13 : ------------------------------------------------------------------------ ------------------ 10:30:09 I13 : sla : Cond0: (0 > 60) = 0 -FALSE- CPU > 60%: 0 % 10:30:09 I13 : sla : Cond1: ( ((11934658 * 100) / (11934658 + 4842560)) > 80) = 0 -FALSE- Memory Usage > 80%: 71.14 % 10:30:09 I13 : sla : Cond0= Eval 1 vs 0: 0 OR 0 = 0 10:30:09 I13 : sla : Final Eval: False. 10:30:09 I14 : ======================================================================== ================== 10:30:09 I14 : Start: 2006-02-04 09:55:00 Stop: 2006-02-04 10:25:00 Measures: 6 10:30:09 I14 : cpu(73) num_users(3) num_procs(61) tcp_active(0) tcp_passive(0) tcp_established(0) 10:30:09 I14 : ------------------------------------------------------------------------ ------------------ 10:30:10 New Event (801): 2006-02-04 10:30:10 - 12 - 4 - CPU - alert - rrd_analizer_sla - CPU > 10%: 73 % - 11 10:30:10 I14 : sla : Cond0: (73 > 10) = 1 -TRUE- CPU > 10%: 73 % 10:30:10 I14 : sla : Cond1: (61 > 100) = 0 -FALSE- Processes > 100: 61 Processes 10:30:10 I14 : sla : Cond0= Eval 1 vs 0: 0 OR 1 = 1 10:30:10 I14 : sla : Final Eval: True. INFO: CPU > 10%: 73 % 10:30:10 I15 : ======================================================================== ================== 10:30:10 I15 : Start: 2006-02-04 09:55:00 Stop: 2006-02-04 10:25:00 Measures: 6 10:30:10 I15 : storage_block_size(4096) storage_block_count(19543064) storage_used_blocks(10569816) 10:30:10 I15 : ------------------------------------------------------------------------ ------------------ 10:30:10 I15 : sla : Cond0: ( 10569816 > ((19543064*80)/100)) = 0 -FALSE- Used > 80%: 54.08 % 10:30:10 I15 : sla : Final Eval: False. 10:30:10 I16 : ======================================================================== ================== 10:30:10 I16 : Start: 2006-02-04 09:55:00 Stop: 2006-02-04 10:25:00 Measures: 6 10:30:10 I16 : storage_block_size(65536) storage_block_count(39391) storage_used_blocks(8973) 10:30:10 I16 : ------------------------------------------------------------------------ ------------------ 10:30:10 I16 : sla : Cond0: ( 8973 > ((39391*80)/100)) = 0 -FALSE- Used > 80%: 22.78 % 10:30:10 I16 : sla : Final Eval: False. 10:30:10 I17 : ======================================================================== ================== 10:30:10 I17 : Start: 2006-02-04 09:55:00 Stop: 2006-02-04 10:25:00 Measures: 6 10:30:10 I17 : storage_block_size(65536) storage_block_count(16371) storage_used_blocks(9810) 10:30:10 I17 : ------------------------------------------------------------------------ ------------------ 10:30:10 I17 : sla : Cond0: ( 9810 > ((16371*80)/100)) = 0 -FALSE- Used > 80%: 59.92 % 10:30:10 I17 : sla : Final Eval: False. 10:30:10 I20 : ======================================================================== ================== 10:30:10 I20 : Start: 2006-02-04 09:55:00 Stop: 2006-02-04 10:25:00 Measures: 6 10:30:10 I20 : storage_block_size(4096) storage_block_count(28843) storage_used_blocks(18953) 10:30:10 I20 : ------------------------------------------------------------------------ ------------------ 10:30:10 I20 : sla : Cond0: ( 18953 > ((28843*90)/100)) = 0 -FALSE- Used > 90%: 65.71 % 10:30:10 I20 : sla : Final Eval: False. 10:30:10 I21 : ======================================================================== ================== 10:30:10 I21 : Start: 2006-02-04 09:55:00 Stop: 2006-02-04 10:25:00 Measures: 6 10:30:10 I21 : storage_block_size(4096) storage_block_count(1510249) storage_used_blocks(85978) 10:30:10 I21 : ------------------------------------------------------------------------ ------------------ 10:30:10 I21 : sla : Cond0: ( 85978 > ((1510249*50)/100)) = 0 -FALSE- Used > 50%: 5.69 % 10:30:10 I21 : sla : Final Eval: False. 10:30:11 I22 : ======================================================================== ================== 10:30:11 I22 : Start: 2006-02-04 09:55:00 Stop: 2006-02-04 10:25:00 Measures: 6 10:30:11 I22 : storage_block_size(2048) storage_block_count(253815) storage_used_blocks(37077) 10:30:11 I22 : ------------------------------------------------------------------------ ------------------ 10:30:11 I22 : sla : Cond0: ( 37077 > ((253815*80)/100)) = 0 -FALSE- Used > 80%: 14.61 % 10:30:11 I22 : sla : Final Eval: False. 10:30:11 I24 : ======================================================================== ================== 10:30:11 I24 : Start: 2006-02-04 09:55:00 Stop: 2006-02-04 10:25:00 Measures: 6 10:30:11 I24 : storage_block_size(2048) storage_block_count(253815) storage_used_blocks(16) 10:30:11 I24 : ------------------------------------------------------------------------ ------------------ 10:30:11 I24 : sla : Cond0: ( 16 > ((253815*80)/100)) = 0 -FALSE- Used > 80%: 0.01 % 10:30:11 I24 : sla : Final Eval: False. 10:30:11 I25 : ======================================================================== ================== 10:30:11 I25 : Start: 2006-02-04 09:55:00 Stop: 2006-02-04 10:25:00 Measures: 6 10:30:11 I25 : storage_block_size(2048) storage_block_count(8461843) storage_used_blocks(2404763) 10:30:11 I25 : ------------------------------------------------------------------------ ------------------ 10:30:11 New Event (802): 2006-02-04 10:30:11 - 12 - 5 - /usr - alert - rrd_analizer_sla - Storage Used > 20%: 28.42 % - 9 10:30:11 I25 : sla : Cond0: ( 2404763 > ((8461843*20)/100)) = 1 -TRUE- Used > 20%: 28.42 % 10:30:11 I25 : sla : Final Eval: True. INFO: Storage Used > 20%: 28.42 % 10:30:12 I26 : ======================================================================== ================== 10:30:12 I26 : Start: 2006-02-04 09:55:00 Stop: 2006-02-04 10:25:00 Measures: 6 10:30:12 I26 : storage_block_size(2048) storage_block_count(562407) storage_used_blocks(29732) 10:30:12 I26 : ------------------------------------------------------------------------ ------------------ 10:30:12 I26 : sla : Cond0: ( 29732 > ((562407*80)/100)) = 0 -FALSE- Used > 80%: 5.29 % 10:30:12 I26 : sla : Final Eval: False. 10:30:12 I30 : ======================================================================== ================== 10:30:12 I30 : Start: 2006-02-04 09:55:00 Stop: 2006-02-04 10:25:00 Measures: 6 10:30:12 I30 : cpu_user_ticks(10) cpu_idle_ticks(111) cpu_nice_ticks(0) cpu_system_ticks(5) load_average_1(1) load_average_5(0) load_average_15(0) num_users(3) num_procs(140) tcp_active(0) tcp_passive(0) tcp_established(0) 10:30:12 I30 : ------------------------------------------------------------------------ ------------------ 10:30:12 I30 : sla : Cond0: ( 0 > 5 ) = 0 -FALSE- Load Average > 5: 0 10:30:12 I30 : sla : Cond1: (((( 10 + 0 + 5 ) * 100 ) / ( 10 + 111 + 0 + 5 )) > 80) = 0 -FALSE- Usage > 80%: 11.9 % 10:30:12 I30 : sla : Cond0= Eval 1 vs 0: 0 OR 0 = 0 10:30:12 I30 : sla : Final Eval: False I need some clarification on a couple of things. 1) When I set up the new SLA, should the 'Event Type' be the one I have created (Input Traffic > 10%) or just SLA? 2) When I add the SLA Condition Relationship, should the SLA be 'SLA' or 'Input Traffic > 10%)? Thanks, Alhagie Puye - Network Engineer Datawave Group of Companies (604)295-1817 > >-----Original Message----- > >From: [EMAIL PROTECTED] > >[mailto:[EMAIL PROTECTED] On Behalf > >Of Javier Szyszlican > >Sent: February 4, 2006 8:56 AM > >Cc: jffnms-users@lists.sourceforge.net > >Subject: Re: [jffnms-users] Input Traffic SLA > > > >You are missing applying the SLA to an interface. > > > >Also the trigger is not going to match, Type is going to be "SLA" > > > >The output of php rrd_analyzer.php <interface_id> will help. > > > >Javier > > > >Alhagie Puye wrote: > >> Hey all, > >> > >> I'm trying to monitor bandwidith usage on an ethernet > >interface. For > >> some reason, the SLA I created is not even getting > >analyzed. I have > >> turned on debugging and it is not showing up when the SLA > >gets analyzed. > >> > >> Here is what I have I have done: > >> > >> A) Created the SLA definition as follows. > >> Description: Input Traffic > 10% > >> Show Info: IN > 10% > >> Condition: (<in> > ((<bandwidthin>*10)/100)) > >> Show Expression: (<in> / 1000) > >> Show Unit: Kbps > >> > >> B) Created the SLA Group > >> Description: Input Traffic > 10% > >> Interface Type: Physical Interfaces > >> Event Type: SLA > >> Alarm State: Alert > >> Event Text: Input Traffic > 10% > >> > >> C) Trigger Configuration > >> Description: Input Traffic > 10% > >> Type: Match Events > >> > >> View Rules > >> Position 10 > >> Field: Type > >> Operator: In > >> Value: Input Traffic > 10% > >> > >> > >> What am I missing? > >> > >> After setting up all of this, I started 12G folder > >download between > >> two of the boxes to generate high traffic...nada. > >> > >> > >> Any help is greatly appreciated. > >> > >> Thanks in advance, > >> > >> Alhagie Puye - Network Engineer > >> Datawave Group of Companies > >> (604)295-1817 > >> > >> > >> This message (including any attachments) is confidential, > >may be privileged and is only intended for the person to > >whom it is addressed. If you have received it by mistake > >please notify the sender by return e-mail and delete this > >message from your system. Any unauthorized use or > >dissemination of this message in whole or in part is > >strictly prohibited. E-mail communications are inherently > >vulnerable to interception by unauthorized parties and are > >susceptible to change. We will use alternate communication > >means upon request. > >> > >> > >> ------------------------------------------------------- > >> This SF.net email is sponsored by: Splunk Inc. Do you grep > >through log > >> files for problems? Stop! Download the new AJAX search > >engine that > >> makes searching your log files as easy as surfing the > >web. DOWNLOAD SPLUNK! > >> http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642 > >> _______________________________________________ > >> jffnms-users mailing list > >> jffnms-users@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/jffnms-users > > > >-- > >=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > >Javier Szyszlican, Project Leader, JFFNMS [EMAIL PROTECTED] > > > >I hope JFFNMS or I were helpful to you, if you can, please > >donate at http://jffnms.org/donate > > > > > > > >------------------------------------------------------- > >This SF.net email is sponsored by: Splunk Inc. Do you grep > >through log files for problems? Stop! Download the new > >AJAX search engine that makes searching your log files as > >easy as surfing the web. DOWNLOAD SPLUNK! > >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486 > >&dat=121642 > >_______________________________________________ > >jffnms-users mailing list > >jffnms-users@lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/jffnms-users > > This message (including any attachments) is confidential, may be privileged and is only intended for the person to whom it is addressed. If you have received it by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. E-mail communications are inherently vulnerable to interception by unauthorized parties and are susceptible to change. We will use alternate communication means upon request. ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ jffnms-users mailing list jffnms-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jffnms-users