[et-mgmt-tools] cobbler_syslogd question

Michael DeHaan mdehaan at redhat.com
Tue Mar 27 17:19:12 UTC 2007


Dhawal Doshy wrote:
> Dhawal Doshy wrote:
>> Dhawal Doshy wrote:
>>> Hello List / Michael,
>>>
>>> # ps -ef | grep cob
>>> root      2668     1  0 21:20 ?        00:00:00 /usr/bin/python 
>>> /usr/bin/cobbler_syslogd
>>>
>>> # netstat -nlp | grep 2668
>>> udp        0      0 202.87.39.87:25150          0.0.0.0:* 
>>>                 2668/python
>>>
>>> Why is cobbler_syslogd listening only on loopback? how do i make it 
>>> listen to all inets?
>>
>> Can i recall this question?? please.. :-(
>> correcting /etc/hosts resolved the error.
>
> Umm more junk from me.. question remains.. how do i make it listen on 
> 0.0.0.0 rather than a specific interface.. newer servers are connected 
> over a cross-cable during installation (eth1) which remains link-down 
> until provisioning is started.
>
> _______________________________________________
> et-mgmt-tools mailing list
> et-mgmt-tools at redhat.com
> https://www.redhat.com/mailman/listinfo/et-mgmt-tools

It looks like syslogd was being a bit stupid about what it tried to bind 
to...

See if this helps you out, and if so, I'll include it in the next release.


diff --git a/cobbler/syslog_watcher.py b/cobbler/syslog_watcher.py
index 64dd802..4846b3e 100644
--- a/cobbler/syslog_watcher.py
+++ b/cobbler/syslog_watcher.py
@@ -22,10 +22,11 @@ def main():
     port     = settings.syslog_port
 
     s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
-    try:
-        s.bind((socket.gethostname(), port))
-    except:
-        s.bind("127.0.0.1", port))
+    #try:
+    #    s.bind((socket.gethostname(), port))
+    #except:
+    #    s.bind("127.0.0.1", port))
+    s.bind(("0.0.0.0", port))
 
     buf = 1024


--Michael







More information about the et-mgmt-tools mailing list