Custom Query (894 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (97 - 99 of 894)

Ticket Owner Reporter Resolution Summary
#242 desai [email protected] fixed Cfg: only last probe gets used
Description

Currently only the last executed probe will be saved and available for host interpolation.

Possible fix:

Index: Cfg.py
===================================================================
--- Cfg.py      (Revision 2451)
+++ Cfg.py      (Arbeitskopie)
@@ -215,7 +215,8 @@
         if self.interpolate:
             if metadata.hostname in probeData:
                 for name, value in probeData[metadata.hostname].iteritems():
-                    filedata = filedata.replace("@@%[email protected]@"%name, value )
+                  if value != None:
+                    filedata = filedata.replace("@@%[email protected]@" % name, value )
             else:
                 logger.warning("Cannot interpolate data for client: %s for config file: %s"% (metadata.hostname, basefile.name))
         if self.paranoid:
@@ -277,7 +278,10 @@

     def ReceiveData(self, client, data):
         '''Receive probe results pertaining to client'''
-        probeData[client.hostname] = { data.get('name'):data.text }
+        try:
+            probeData[client.hostname].update({ data.get('name'):data.text })
+        except KeyError:
+            probeData[client.hostname] = { data.get('name'):data.text }

     def AddDirectoryMonitor(self, name):
         '''Add new directory to FAM structures'''
#243 desai [email protected] fixed Patch: Probes for TCheetah
Description

All probes in repo/Probe will get accessible in the TCheetah template files through:

$self.probes['probename']

'probename' is the name of the probefile as in the Cfg Plugin.

#259 desai koen at systray dot be fixed not able to manage services on a rh based machine
Description

I want to manage services on a rh based machine I configured the XML files which will manage these services, all seems to work correctly.. Config management works too and it detects which services are running using chkconfig. (when using verbose output on the client) The services specified below are names of services which are specified in the XML file on the server, and can be started perfectly with the init.d script.

It's not exactly a bug, I just can't find the reason why the bcfg2 client can't handle these services...

Could you tell me where to look at? I'm pretty sure the configuration side on the server is ok..

--snip

Loaded tool drivers:

Chkconfig POSIX PostInstall? RPM

The following entries are not handled by any tool:

Service:None:network Service:None:sshd Service:None:syslog Service:None:netfs Service:None:rawdevices

/sbin/chkconfig --list|grep :on

< netfs 0:off 1:off 2:off 3:on 4:on 5:on 6:off network 0:off 1:off 2:on 3:on 4:on 5:on 6:off rawdevices 0:off 1:off 2:off 3:on 4:on 5:on 6:off syslog 0:off 1:on 2:off 3:off 4:off 5:off 6:on sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off

Found active services:

netfs network rawdevices sshd syslog

Note: See TracQuery for help on using queries.