On Dec 21, 6:11 am, Ohad Levy <[email protected]> wrote:
> On Wed, Dec 21, 2011 at 12:24 AM, Corey Osman <[email protected]> wrote:
> > Hi,
>
> > Just curious if anybody had written a script to find systems that don't
> > have puppet installed by doing a port scan or something else.
> > I would like to have my puppetmaster send an email when it finds a system
> > that doesn't have puppet installed and possibly take action by installing
> > it.
>
> > Does anybody have some good ideas how a system can be detected as a
> > non-puppet system?
>
> > One idea would be to use net-snmp to query the list of installed packages.
> >  But this requires net-snmp to be running
>
> > snmpwalk -v 2c -c public hostname 1.3.6.1.2.1.25.6.3.1.2 | grep puppet
>
> another option, while scoped to a given subnet, is that you can find out
> all mac addresses of all of your systems minus all the mac addresses coming
> from facter.


Something along those lines is probably your best option.  That is,
construct a catalog of all machines of potential interest, then remove
those that have retreived a catalog from the puppetmaster within a
chosen time.  That will pick up systems that have Puppet installed but
not running along with those that do not have it installed at all, but
I infer that's what you want.

I do not know a reliable way to externally probe a system on demand to
determine whether Puppet is running on it.  Although the Puppet agent
can be configured to listen for connections, you cannot rely on it
being so configured.  You can perhaps request a list of installed
packages from each system, but Puppet being installed is not the same
thing as Puppet running.  Any way around, you always need a way to
catalog all the systems of interest.


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to