From: Schwimmer, E. E *H. <EE...@hs...> - 2006-03-06 15:16:08
|
Well, right now the results of any math calculations (via=20 DELTA or MATH transforms) done by Devmon are rounded to two decimal places. I might add a 'precision' tag or something similar to either or both of these operations to allow you to get more or less detail as needed. Right now, if you have a=20 snmp alias that has excessive numbers after the decimal place, you can lop them off by doing a MATH transform on the alias. So, if you have an alias {tooManyNumbers} with a value of 11.324125, this transform: {lessNumbers} : MATH : {tooManyNumbers} will round it down to 11.32 and store it in the "lessNumbers" alias. Actually, I just had a thought; what about making the MATH and DELTA aliases not round at all, and then added a separate ROUND transform or somesuch that would allow people to round their values to whatever they liked? That would probably be the easiest way of implementing a round transform, but it would also mean that all current templates would have to be updated, as their rounding would go away. -Eric Schwimmer Network Engineer UVA HSCS Network Engineering =20 > -----Original Message----- > From: dev...@li...=20 > [mailto:dev...@li...] On Behalf=20 > Of Whilding, Craig > Sent: Monday, March 06, 2006 9:47 AM > To: dev...@li... > Subject: RE: [Devmon] Starting problem >=20 > Oops, hadn't noticed the new version, have replaced the files and its > working fine now cheers. >=20 > Just power, our cards don't have env abilities (I'm currently=20 > monitoring > the Battery temp as a poor mans alternative).=20 >=20 > Ah thanks, ill use that switch to avoid having to put the dhcp test > under Windows PC defaults. The exceptions file will help me=20 > get around a > problem I have with disabled ranges warning as they have no free > addresses. >=20 > Im currently sorting my NetApp quota and vol templates and=20 > was wondering > how I can display a number to 2dp for example. >=20 > Thanks for the excellent work. >=20 >=20 > Craig=20 >=20 > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf Of > Schwimmer, Eric E *HS > Sent: 06 March 2006 14:29 > To: dev...@li... > Subject: RE: [Devmon] Starting problem >=20 >=20 > Regarding the 'ioctl' error; are you using the latest version > of Devmon? Specifically, line 1964 of modules/dm_config.pm > should read: >=20 > if(defined($pid =3D fork)) { >=20 > as opposed to: >=20 > if(my $pid =3D fork) { >=20 >=20 > As to the power templates; the 9609 templates work on the APC=20 > 9617 card? Both power and env? If so, I'll copy them over=20 > (and thanks for letting me know :) >=20 > And autodiscovery of devices depends on their contents of=20 > the SNMP SysDescr.0 string; which is matched against the=20 > contents of the 'sysdesc' field in the model's specs file. > You can override autodetection, however, by using the=20 > 'model' tag in the bb-hosts file; please see the USING > document for further info (if it isnt in there, please=20 > get the latest version of devmon). >=20 > -Eric >=20 > > -----Original Message----- > > From: dev...@li...=20 > > [mailto:dev...@li...] On Behalf=20 > > Of Whilding, Craig > > Sent: Monday, March 06, 2006 8:24 AM > > To: dev...@li... > > Subject: [Devmon] Starting problem > >=20 > > Excellent hobbit enhancement which will get rid of quite a=20 > > few Perl scripts when I've finished writing all the templates. > >=20 > > =20 > >=20 > > I have been running it as a foreground process with the -f=20 > > switch but without this I am also getting "Can't fork:=20 > > Inappropriate ioctl for device" Forking to background process=20 > > *****". This is on RHEL3 again. > >=20 > > =20 > >=20 > > For APC UPS's you may want to copy the power stuff over to a=20 > > model 9617 as this is what all my management card equipped=20 > > UPS's show as so it might be a popular one (?). They are 3000=20 > > and 5000 models.=20 > >=20 > > =20 > >=20 > > A problem I now have though is how devices are discovered as=20 > > a certain type. I have a script that monitors free dhcp=20 > > addresses on Windows boxes. If it just looks up model there=20 > > Is nothing special about this box. Im not sure how I can get=20 > > around this but I would need to put an exception in for all=20 > > other windows boxes I monitor so it doesn't try to show dhcp=20 > > free addresses for them. > >=20 > > =20 > >=20 > > Keep up the good work though :-) > >=20 > > =20 > >=20 > > Craig Whilding > >=20 > >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=3Dk&kid=110944&bid$1720&dat=121642 > _______________________________________________ > Devmon-support mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/devmon-support >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking=20 > scripting language > that extends applications into web and mobile media. Attend=20 > the live webcast > and join the prime developer group breaking into this new=20 > coding territory! > http://sel.as-us.falkag.net/sel?cmd=3Dk&kid=110944&bid$1720&dat=121642 > _______________________________________________ > Devmon-support mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/devmon-support >=20 |