Vary check_dns checks?

Jonathan Nichols jnichols at pbp.net
Mon Jun 7 06:24:00 CEST 2004


Dan Stromberg wrote:

> I've attached my "random" program.
> 
> So if you're checking a single host with "check_dns hostname.com", you
> could use instead "check_dns `random < list.of.hosts | head -1`".
> 
> The random program uses a python seed.py module I wrote, for getting
> halfway decent seeds.  I think you'll probably be able to see how to
> tell the random program where to find the seed.py module.  It's a short
> program in a highly readable language.
> 

Neat! Thanks! :D

Uh, where's this? :)

import sys
sys.path.append('/dcslib/allsys/packages/python/local-lib')
import random

I'm guessing.. here?

#!/usr/bin/python

import sys
#sys.path.append('/dcslib/allsys/packages/python/local-lib')
sys.path.append('/usr/lib/python2.3')
import random
import seed
import time

.. I'm using python 2.3.3 with Gentoo Linux. :)



-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list