From: Koshikawa Y. <h0...@gm...> - 2009-05-06 10:22:51
|
Hi all, I just started to monitor memory threshold for Cisco switches, but I can't. I set small threshold value, but always green. example: Free memory: 2255724 bytes (51%) Used memory: 2131592 bytes (49%) ------------- ---------------- Total memory: 4387316.00 bytes (100%) /path_to_devmon/templates/cisco-*/memory/thresholds mem_used_per : yellow : 20 : Memory load is high mem_used_per : red : 30 : Memory load is very high cpu threshold, if_load threshold, etc. are OK. Any advice? version devmon-templates-20080206 devmon-0.3.1-bata1 xymon 4.2.3 CentOS 5.2 -- Koshikawa Yasunori h0...@gm... |
From: Thomas K. <tk...@we...> - 2009-05-06 12:25:22
|
Hi, On Wed, May 06, 2009 at 07:22:41PM +0900, Koshikawa Yasunori wrote: > I just started to monitor memory threshold for Cisco switches, but I can't. > I set small threshold value, but always green. > > example: > Free memory: 2255724 bytes (51%) > Used memory: 2131592 bytes (49%) > ------------- ---------------- > Total memory: 4387316.00 bytes (100%) > > > /path_to_devmon/templates/cisco-*/memory/thresholds > mem_used_per : yellow : 20 : Memory load is high > mem_used_per : red : 30 : Memory load is very high it's an error in the templates. I submitted a bug report. However it doesn't seem to be patched, yet. You need to specify messages like this: {mem_used_per.errors} Free memory: {mem_free} bytes ({mem_free_per}%) Used memory: {mem_used} bytes ({mem_used_per}%) {mem_used_per.color} ------------- ---------------- Total memory: {mem_total} bytes (100%) Alarm threshold: yellow={mem_used_per.thresh:yellow}%, red={mem_used_per.thresh:red}% <!-- DEVMON to RRD Physical {mem_used_per}% --> Viele Grüße Thomas -- Thomas Kähn NetCologne Network Engineering & Design Gesellschaft für Telekommunikation mbH Grüner Weg 100 Telefon: 0241/701333-18 52070 Aachen Fax: 0221/2222-78718 Handelsregister: HRB 25580, Amtsgericht Köln Geschäftsführer: Werner Hanf, Dipl.-Ing. Karl-Heinz Zankel |
From: Koshikawa Y. <h0...@gm...> - 2009-05-06 16:13:50
|
Hi Thomas, I specified messages file, so it became good. thank you. devmon is useful. let's patch. if_err/if_dsc, I dont use... > {mem_used_per.errors} > Free memory: {mem_free} bytes ({mem_free_per}%) > Used memory: {mem_used} bytes ({mem_used_per}%) {mem_used_per.color} > ------------- ---------------- > Total memory: {mem_total} bytes (100%) > > Alarm threshold: yellow={mem_used_per.thresh:yellow}%, red={mem_used_per.thresh:red}% > <!-- DEVMON to RRD Physical {mem_used_per}% > --> -- Koshikawa Yasunori h0...@gm... |
From: Thomas K. <tk...@we...> - 2009-05-06 12:25:22
|
Hi, On Wed, May 06, 2009 at 01:53:45PM +0200, Thomas Kähn wrote: > On Wed, May 06, 2009 at 07:22:41PM +0900, Koshikawa Yasunori wrote: > > I just started to monitor memory threshold for Cisco switches, but I can't. > > I set small threshold value, but always green. > > > > example: > > Free memory: 2255724 bytes (51%) > > Used memory: 2131592 bytes (49%) > > ------------- ---------------- > > Total memory: 4387316.00 bytes (100%) > > > > > > /path_to_devmon/templates/cisco-*/memory/thresholds > > mem_used_per : yellow : 20 : Memory load is high > > mem_used_per : red : 30 : Memory load is very high > > it's an error in the templates. I submitted a bug report. However it > doesn't seem to be patched, yet. by the way - the if_err/if_dsc test was also buggy. The error percentage wasn't calculated correctly and always too low. Viele Grüße Thomas -- Thomas Kähn NetCologne Network Engineering & Design Gesellschaft für Telekommunikation mbH Grüner Weg 100 Telefon: 0241/701333-18 52070 Aachen Fax: 0221/2222-78718 Handelsregister: HRB 25580, Amtsgericht Köln Geschäftsführer: Werner Hanf, Dipl.-Ing. Karl-Heinz Zankel |
From: Buchan M. <bg...@st...> - 2009-05-07 08:11:52
|
On Wednesday 06 May 2009 13:53:45 Thomas Kähn wrote: > Hi, > > On Wed, May 06, 2009 at 07:22:41PM +0900, Koshikawa Yasunori wrote: > > I just started to monitor memory threshold for Cisco switches, but I > > can't. I set small threshold value, but always green. > > > > example: > > Free memory: 2255724 bytes (51%) > > Used memory: 2131592 bytes (49%) > > ------------- ---------------- > > Total memory: 4387316.00 bytes (100%) > > > > > > /path_to_devmon/templates/cisco-*/memory/thresholds > > mem_used_per : yellow : 20 : Memory load is high > > mem_used_per : red : 30 : Memory load is very high You don't need to adjust thresholds here, I would recommend adjusting the thresholds in the bb-hosts file, per-device, rather than adjusting the template itself. > it's an error in the templates. I submitted a bug report. However it > doesn't seem to be patched, yet. I've fixed this in subversion now (rev 135). Regards, Buchan |
From: Thomas K. <tk...@we...> - 2009-05-07 08:21:02
|
Hi Buchan, On Thu, May 07, 2009 at 10:12:00AM +0200, Buchan Milne wrote: > On Wednesday 06 May 2009 13:53:45 Thomas Kähn wrote: > > On Wed, May 06, 2009 at 07:22:41PM +0900, Koshikawa Yasunori wrote: > > > /path_to_devmon/templates/cisco-*/memory/thresholds > > > mem_used_per : yellow : 20 : Memory load is high > > > mem_used_per : red : 30 : Memory load is very high > > You don't need to adjust thresholds here, I would recommend adjusting the > thresholds in the bb-hosts file, per-device, rather than adjusting the template > itself. > > > it's an error in the templates. I submitted a bug report. However it > > doesn't seem to be patched, yet. > > I've fixed this in subversion now (rev 135). thank you. Did you also take a look at the if_err/if_dsc percentage calculation? Viele Grüße Thomas -- Thomas Kähn NetCologne Network Engineering & Design Gesellschaft für Telekommunikation mbH Grüner Weg 100 Telefon: 0241/701333-18 52070 Aachen Fax: 0221/2222-78718 Handelsregister: HRB 25580, Amtsgericht Köln Geschäftsführer: Werner Hanf, Dipl.-Ing. Karl-Heinz Zankel |
From: Buchan M. <bg...@st...> - 2009-05-07 08:47:26
|
On Wednesday 06 May 2009 13:57:06 Thomas Kähn wrote: > Hi, > > On Wed, May 06, 2009 at 01:53:45PM +0200, Thomas Kähn wrote: > > On Wed, May 06, 2009 at 07:22:41PM +0900, Koshikawa Yasunori wrote: > > > I just started to monitor memory threshold for Cisco switches, but I > > > can't. I set small threshold value, but always green. > > > > > > example: > > > Free memory: 2255724 bytes (51%) > > > Used memory: 2131592 bytes (49%) > > > ------------- ---------------- > > > Total memory: 4387316.00 bytes (100%) > > > > > > > > > /path_to_devmon/templates/cisco-*/memory/thresholds > > > mem_used_per : yellow : 20 : Memory load is high > > > mem_used_per : red : 30 : Memory load is very high > > > > it's an error in the templates. I submitted a bug report. However it > > doesn't seem to be patched, yet. > > by the way - the if_err/if_dsc test was also buggy. It does what it says it does ("Load percentages are based on error/bit ratio."). > The error percentage > wasn't calculated correctly and always too low. Maybe per-packet would be more appropriate. However, since you filed the bug anonymously ... I am taking a look at this issue, for if_dsc and if_err. However, I don't like the current layout where we have the same content in many different templates, but with some very small differences for some templates. For example, should I now change 87 tests to use HC counters instead? I would prefer to add template inheritance, and have *two* IFMIB templates, one for non-HC, and one for HC counters (well, maybe 4, two for IFMIB, two for Cisco IFMIB). Regards, Buchan |
From: Thomas K. <tk...@we...> - 2009-05-07 12:47:08
|
Hi Buchan, On Thu, May 07, 2009 at 10:47:46AM +0200, Buchan Milne wrote: > Maybe per-packet would be more appropriate. > However, since you filed the bug anonymously ... > > I am taking a look at this issue, for if_dsc and if_err. > > However, I don't like the current layout where we have the same content in > many different templates, but with some very small differences for some > templates. > > For example, should I now change 87 tests to use HC counters instead? I would > prefer to add template inheritance, and have *two* IFMIB templates, one for > non-HC, and one for HC counters (well, maybe 4, two for IFMIB, two for Cisco > IFMIB). this sound very good. This way exceptions could be defined easily. Let's say you have one switch where you don't want to monitor interfaces but only cpu, temperature, etc.. Currently I use tests() or model() in bb-hosts. With you suggestion it would be possible to create a template inheriting only the required tests. Best regards Thomas -- Thomas Kähn NetCologne Network Engineering & Design Gesellschaft für Telekommunikation mbH Grüner Weg 100 Telefon: 0221/2222-8718 52070 Aachen Fax: 0221/2222-78718 Handelsregister: HRB 25580, Amtsgericht Köln Geschäftsführer: Werner Hanf, Dipl.-Ing. Karl-Heinz Zankel |