I have changed the monitor from localhost to the host name of the server. The
reason for this is so that all events, INCLUDING HEARTBEATs, will go the
correct server the hostname of the zenoss server. This all seems to be working
fine. The heartbeat table in mysql has been updated to match the new device
name.
HOWEVER!!!
When going to Settings->Daemons
It only shows the zopectl and zeoctl.
Doing some more digging I found the following code in:
$zenhome/Products/ZenModel/ZenossInfo.py
def _getDaemonPID(self, name):
"""
For a given daemon name, return its PID from a .pid file.
"""
if name == 'zopectl':
name = 'Z2'
elif name == 'zeoctl':
name = 'ZEO'
elif '_' in name:
collector, daemon = name.split('_', 1)
name = '%s-%s' % (daemon, collector)
else:
name = "%s-localhost" % name
pidFile = zenPath('var', '%s.pid' % name)
if os.path.exists(pidFile):
pid = open(pidFile).read()
try:
pid = int(pid)
except ValueError:
return None
return self._pidRunning(int(pid))
else:
pid = None
return pid
So it seams that it is looking for daemon-localhost instead of daemon-hostname
The PID files are indeed named daemon-hostname .
I am confused by the elseif line:
elif '_' in name:
collector, daemon = name.split('_', 1)
name = '%s-%s' % (daemon, collector)
It would seem that it's looking for the daemons to have a _ score to get the
correct pid name???
Any help would be great. Just an FYI the zenoss server is still running ok and
all of the daemons are up, just not showing up in the Settings->Daemons page.
-------------------- m2f --------------------
Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=31531#31531
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users