[Nagiosplug-devel] check_wins patched for perl framework

Stanley Hopcroft Stanley.Hopcroft at IPAustralia.Gov.AU
Thu Apr 1 22:32:06 CEST 2004


Dear Sir,

After a few amendments

1 remove taint checking - doesn't seem to work in the 5.005 env
2 remove probably configure tokens (use lib utils.om; 
/usr/bin/nmblookup [replace by path of nmblookup])

check_wins.pl works here.

However,

performance is not as good as 'an old version' of check_wins

pc09011> ./check_wins -V check_wins (netsaint-plugins 1.2.9-4) 2.8 The
netsaint plugins come with ABSOLUTELY NO WARRANTY. You may redistribute
copies of the plugins under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

pc09011> ./check_wins.pl -V check_wins.pl (nagios-plugins 1.4.0alpha2)
1.2 The nagios plugins come with ABSOLUTELY NO WARRANTY. You may
redistribute copies of the plugins under the terms of the GNU General
Public License.  For more information about these matters, see the file
named COPYING.


pc09011> ~anwsmh/perl/dotime 10 "./check_wins -W wins -D ipaustralia -C 
ipa01 -C ipa04"
Running ./check_wins -W wins -D ipaustralia -C ipa01 -C ipa04 10 times
1 2 3 4 5 6 7 8 9 10 done
         Avg        1        2        3        4        5        6        
7        8        9       10
      ------   ------   ------   ------   ------   ------   ------   
------   ------   ------   ------
real   0.091     0.10     0.09     0.09     0.09     0.09     0.09     
0.09     0.09     0.09     0.09
user   0.053     0.05     0.05     0.06     0.07     0.06     0.05     
0.04     0.06     0.05     0.04
sys    0.017     0.02     0.02     0.01     0.00     0.01     0.02     
0.03     0.01     0.02     0.03

pc09011> ~anwsmh/perl/dotime 10 "./check_wins.pl -W wins -D ipaustralia 
-C ipa01 -C ipa04"
Running ./check_wins.pl -W wins -D ipaustralia -C ipa01 -C ipa04 10 
times
1 2 3 4 5 6 7 8 9 10 done
         Avg        1        2        3        4        5        6        
7        8        9       10
      ------   ------   ------   ------   ------   ------   ------   
------   ------   ------   ------
real   0.164     0.17     0.16     0.16     0.16     0.16     0.16     
0.16     0.17     0.17     0.17
user   0.129     0.14     0.12     0.11     0.13     0.14     0.13     
0.14     0.14     0.13     0.11
sys    0.015     0.01     0.02     0.03     0.01     0.00     0.01     
0.01     0.01     0.02     0.03
pc09011>


-- 
------------------------------------------------------------------------
Stanley Hopcroft
------------------------------------------------------------------------

'...No man is an island, entire of itself; every man is a piece of the
continent, a part of the main. If a clod be washed away by the sea,
Europe is the less, as well as if a promontory were, as well as if a
manor of thy friend's or of thine own were. Any man's death diminishes
me, because I am involved in mankind; and therefore never send to know
for whom the bell tolls; it tolls for thee...'

from Meditation 17, J Donne.




More information about the Devel mailing list