From: Nikesh Maharaj Sent: 28 May 2009 06:32 PM To: 'hobbit at hswn.dk' Subject: help
Hi guys ,
Just installed xymon with the defaults. Put in a link in /var/www/html which reads ln -s /home/xymon/server/www xymon
Started the service and the main page comes up. When i click on teh link eg bbd, conn etc i get webpage not found .
I know that there is a simple explanation for this. Can someone help as i have been trying for 2 hours now.
Thanks
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Did you follow the instructions for configuring your Web server to server the Xymon pages?
GLH
From: Nikesh Maharaj [mailto:NMaharaj at tcta.co.za] Sent: Thursday, May 28, 2009 11:45 AM To: hobbit at hswn.dk Subject: [hobbit] FW: help
From: Nikesh Maharaj Sent: 28 May 2009 06:32 PM To: 'hobbit at hswn.dk' Subject: help
Hi guys ,
Just installed xymon with the defaults. Put in a link in /var/www/html which reads ln -s /home/xymon/server/www xymon Started the service and the main page comes up. When i click on teh link eg bbd, conn etc i get webpage not found . I know that there is a simple explanation for this. Can someone help as i have been trying for 2 hours now.
Thanks
-- This message has been scanned for viruses and dangerous content by MailScanner<http://www.mailscanner.info/>, and is believed to be clean.
Yes, i get errors when using the hobbit-apache.conf file
From: HUBBARD, GREG [mailto:ghubbard at hp.com] Sent: 28 May 2009 06:53 PM To: hobbit at hswn.dk Subject: [hobbit] RE: help
Did you follow the instructions for configuring your Web server to server the Xymon pages?
GLH
From: Nikesh Maharaj [mailto:NMaharaj at tcta.co.za] Sent: Thursday, May 28, 2009 11:45 AM To: hobbit at hswn.dk Subject: [hobbit] FW: help
From: Nikesh Maharaj Sent: 28 May 2009 06:32 PM To: 'hobbit at hswn.dk' Subject: help
Hi guys ,
Just installed xymon with the defaults. Put in a link in /var/www/html which reads ln -s /home/xymon/server/www xymon
Started the service and the main page comes up. When i click on teh link eg bbd, conn etc i get webpage not found .
I know that there is a simple explanation for this. Can someone help as i have been trying for 2 hours now.
Thanks
-- This message has been scanned for viruses and dangerous content by MailScanner <http://www.mailscanner.info/> , and is
believed to be clean.
This message has been scanned for viruses and dangerous content by MailScanner <http://www.mailscanner.info/> , and is
believed to be clean.
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Hi all, I really appreciate all the help that I¹ve gotten from the mailing list!
I am trying to create a startup script for OSX 10.4.11, using launchd
I place a file: xymon.plist in: /Library/LaunchDaemons
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>xymon</string>
<key>OnDemand</key>
<false/>
<key>Program</key>
<string>/Users/xymon/client/runclient.sh</string>
<key>ProgramArguments</key>
<array>
<string>/Users/xymon/client/runclient.sh</string>
<string>start</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>ServiceDescription</key>
<string>Xymon Startup</string>
<key>UserName</key>
<string>xymon</string>
</dict>
</plist>
Ran the command line: Launchctl load /Library/LaunchDaemons/xymon.plist
And in /var/log/system.log: ay 28 13:20:15 ns1 com.apple.launchd[1] (xymon): Throttling respawn: Will start in 10 seconds May 28 13:20:25 ns1 xymon[91563]: Hobbit client already running, re-starting it May 28 13:20:25 ns1 xymon[91563]: Hobbit client stopped May 28 13:20:25 ns1 xymon[91563]: Hobbit client for darwin started on ns1.local
Over and over again, and the PID keeps going higher and higher.
And in /Users/xymon/client/log/hobbitclient.log: could not lookup DNS configuration info service: (ipc/send) invalid destination port
I suspect its because of this error that it keeps getting restarted? Any know what this means?
Thanks!!!
-- This message has been scanned for dangerous content by MailScanner, and is believed to be clean.
On 2009-May-28, at 1:24 PM, William Ottley wrote:
<key>Label</key> <string>xymon</string>
The label should probably be something like "dk.hswn.xymon" to
guarantee uniqueness. (That's the convention used by all the existing
plists.)
<key>Program</key> <string>/Users/xymon/client/runclient.sh</string>
I don't know for certain, but I think launchd should be replacing the
runclient.sh script, not calling on it. For instance, the script is
designed to start up the Xymon client and then exit, whereas launchd
expects the thing it started to keep running. You may have to dig into
the script to figure out what it does on a Mac and then tell launchd
to do that. (From just a quick scan, it looks like it needs to call
hobbitlaunch with the appropriate options for your system.)
A list of what launchd expects from the program it calls can be found
in the man page for launchd.plist. I don't know enough about
hobbitlaunch to tell you if it meets those requirements, but I'm
pretty sure the shell script does not based on the fact that it exits.
This might have nothing to do with the error Xymon throws, but it
would at least explain why launchd keeps restarting the script.
-- Rob McBroom <http://www.skurfer.com/>
The magnitude of a problem does not affect its ownership.
Hi Rob, I think your right about the respawning. Makes sense, that the runclient.sh just stops after it calls up the other programs.
I do know that runclient.sh called by itself works. I'll try and spend more time on a better formed plist.
On 28/05/09 4:14 PM, "Rob McBroom" <mailinglist0 at skurfer.com> wrote:
On 2009-May-28, at 1:24 PM, William Ottley wrote:
<key>Label</key> <string>xymon</string>The label should probably be something like "dk.hswn.xymon" to guarantee uniqueness. (That's the convention used by all the existing plists.)
<key>Program</key> <string>/Users/xymon/client/runclient.sh</string>I don't know for certain, but I think launchd should be replacing the runclient.sh script, not calling on it. For instance, the script is designed to start up the Xymon client and then exit, whereas launchd expects the thing it started to keep running. You may have to dig into the script to figure out what it does on a Mac and then tell launchd to do that. (From just a quick scan, it looks like it needs to call
hobbitlaunchwith the appropriate options for your system.)A list of what launchd expects from the program it calls can be found in the man page for
launchd.plist. I don't know enough about hobbitlaunch to tell you if it meets those requirements, but I'm pretty sure the shell script does not based on the fact that it exits.This might have nothing to do with the error Xymon throws, but it would at least explain why launchd keeps restarting the script.
d.plist.5.html
-- This message has been scanned for dangerous content by MailScanner, and is believed to be clean.
participants (4)
-
ghubbard@hp.com
-
mailinglist0@skurfer.com
-
NMaharaj@tcta.co.za
-
wottley@cmicanada.com