|
OpenBSD Security Functionally paranoid! |
|
Thread Tools | Display Modes |
|
|||
issues with setting up symon on openbsd
i am trying to set up symon on my OpenBSD machine and i am using the steps in
http://www.twopenguins.it/2009/06/in...sd-72/#more-12 I have pretty much followed everything but my problem is generating the graphs. when i try to view form another web browser i get internet explorer can not display the webpage. Anyone know what i am doing wrong? Please help. thanks |
|
|||
thnx 4 d reply, i am kinda a newbie with openbsd.
i assume i have the built in apache running bcos when i do a lynx localhost i can see "it worked" i also installed php using # pkg_add php4-core-4.3.8.tgz (that was all i did. not sure if i have to do more) i don know how to check if i have php running so I cant say for now that it is properly installed. Also i know those directories do not exit but a couple of them are created after symon, syweb etc are installed. i think i have also used the right directories in my own scenario. what is Apache default directory for www files, & Which configuration files will be useful to troubleshoot? I have only included the result of the pkg-info for symon |
|
||||
Quote:
Quote:
Quote:
http://www.openbsd.org/cgi-bin/cvsweb/~checkout~/ports/www/php4/core/pkg/Attic/INSTALL?rev=1.4;content-type=text%2Fplain;hideattic=0 Quote:
If you wish to become a successful and happy OpenBSD user:
Last edited by jggimi; 10th July 2009 at 04:02 AM. |
|
||||
OK. Now I'm confused about the state of your system: your PHP package is six years old and long since considered dead ... but your Symon (from your attached image) is more modern.
What kind of Frankensystem are you actually running? |
|
|||
thank 4 d advise as regards "how to docs", will review the documentation properly.
2ndly i actually meant php5-core.5.2.6 (earlier mistake was as a result of copy & paste, sorry bout that) and i am running OpenBSD 4.4 I also realized i have not installed php properly. I am trying to do this now but when i run /usr/local/sbin/phpxs i get an error saying not found. I seached online and it seems the phpxs does not need to be run on newer versions of php. . i can see it is recommend to install through packages that is why i have not used ports. any suggestion on the php installation? |
|
||||
Really? See below.
Quote:
Quote:
To get the actual documentation you should have reviewed, issue this command: $ pkg_info -M php5-coreThe output will repeat the message that appeared on your console when you installed php5-core. |
|
|||
Okay so i have all the component i need to get symon running and i have php up and running. however i still can not get symon working. browsing to the localhost just produces my php page. i ve included the config file ive modified? i cant figure out what i am doing wrong. any help out pls
configuration is as follows # pkg_info gcc-4.2.20070307p11 GNU compiler collection: core C compiler gettext-0.17p0 GNU gettext libart-2.3.20p0 high-performance 2D graphics library libiconv-1.12 character set conversion library libxml-2.6.32p2 XML parsing library mysql-client-5.0.77 multithreaded SQL database (client) mysql-server-5.0.77 multithreaded SQL database (server) p5-DBD-mysql-4.010 MySQL drivers for the Perl DBI p5-DBI-1.607 unified perl interface for database access p5-Net-Daemon-0.43 extension for portable daemons p5-PlRPC-0.2018p0 module for writing rpc servers and clients php5-core-5.2.8p0 server-side HTML-embedded scripting language png-1.2.33 library for manipulating PNG images rrdtool-1.2.30 system to store and display time-series data symon-2.78 active monitoring tool syweb-0.55p1 web frontend to symon #vi /etc/symon.conf # # $Id: symon.conf,v 1.12 2004/02/26 22:48:08 dijkstra Exp $ # # Demo configuration for symon. See symon(8) for BNF. monitor { cpu(0), mem, if(vic0), # pf, # mbuf, # sensor(0), # proc(httpd), # if(xl0), if(de0), if(wi0), # io(wd1), io(wd2), io(wd3), io(cd0) io(wd0) } stream to 127.0.0.1 2100 ~ ~ #vi /etc/symux.conf # $Id: symux.conf,v 1.23 2007/11/29 13:13:18 dijkstra Exp $ # # Demo symux configuration. See symux(8) for BNF. mux 127.0.0.1 2100 source 127.0.0.1 { accept { cpu(0), mem, if(vic0), # pf, # mbuf, # sensor(0), # proc(httpd), # if(xl0), if(de0), if(wi0), # io(wd1), io(wd2), io(wd3), io(cd0) io(wd0) } datadir "/var/www/htdocs/syweb/localhost" } #vi /var/www/htdocs/syweb/setup.inc /* running OpenBSD, apache chrooted: $symon['rrdtool_path']='/usr/local/bin/rrdtool'; $symon['cache_dir']='/var/www/htdocs/syweb/cache'; $symon['host_tree']='/var/www/htdocs/syweb'; $symon['layout_dir']='/var/www/htdocs/syweb'; */ /* running OpenBSD, apache not chrooted: */ $symon['rrdtool_path']='/usr/local/bin/rrdtool'; $symon['cache_dir']='/var/www/htdocs/syweb/cache'; $symon['host_tree']='/var/www/htdocs/syweb'; $symon['layout_dir']='/var/www/htdocs/syweb'; /* running FreeBSD, apache not chrooted: $symon['rrdtool_path']='/usr/local/bin/rrdtool'; $symon['cache_dir']='/usr/local/www/symon/cache'; $symon['host_tree']='/usr/local/www/symon/rrds'; $symon['layout_dir']='/usr/local/www/symon'; */ $symon['cache_duration']=20; $symon['isolate_hosts']=1; $symon['combine']['pfq']=1; $symon['combine']['io']=1; $symon['options']['df']='bytes'; /* $symon['options']['df']='blocks'; */ |
|
|||
here is what my rc.conf.local looks like
#!/bin/sh - # # $OpenBSD: rc.conf,v 1.131 2008/11/27 00:52:06 uwe Exp $ # set these to "NO" to turn them off. otherwise, they're used as flags ripd_flags=NO # for normal use: "" mrouted_flags=NO # for normal use: "", if activated # be sure to enable multicast_router below. dvmrpd_flags=NO # for normal use: "" ospfd_flags=NO # for normal use: "" ospf6d_flags=NO # for normal use: "" bgpd_flags=NO # for normal use: "" rarpd_flags=NO # for normal use: "-a" bootparamd_flags=NO # for normal use: "" rbootd_flags=NO # for normal use: "" sshd_flags="" # for normal use: "" named_flags=NO # for normal use: "" rdate_flags=NO # for normal use: [RFC868-host] or [-n RFC2030-host] timed_flags=NO # for normal use: "" ldattach_flags=NO # for normal use: "[options] linedisc cua-device" ntpd_flags=NO # for normal use: "" isakmpd_flags=NO # for normal use: "" sasyncd_flags=NO # for normal use: "" mopd_flags=NO # for normal use: "-a" apmd_flags=NO # for normal use: "" dhcpd_flags=NO # for normal use: "" dhcrelay_flags=NO # for normal use: "-i interface [server]" rtadvd_flags=NO # for normal use: list of interfaces # be sure to set net.inet6.ip6.forwarding=1 route6d_flags=NO # for normal use: "" # be sure to set net.inet6.ip6.forwarding=1 rtsold_flags=NO # for normal use: interface # be sure to set net.inet6.ip6.forwarding=0 # be sure to set net.inet6.ip6.accept_rtadv=1 lpd_flags=NO # for normal use: "" (or "-l" for debugging) sensorsd_flags=NO # for normal use: "" hotplugd_flags=NO # for normal use: "" watchdogd_flags=NO # for normal use: "" ftpproxy_flags=NO # for normal use: "" hostapd_flags=NO # for normal use: "" ifstated_flags=NO # for normal use: "" relayd_flags=NO # for normal use: "" snmpd_flags=NO # for normal use: "" symon_enable=YES symux_enable=YES # use -u to disable chroot, see httpd(8) httpd_flags="" # for normal use: "" (or "-DSSL" after reading ssl(8)) # For normal use: "-L sm-mta -bd -q30m", and note there is a cron job sendmail_flags="-L sm-mta -C/etc/mail/localhost.cf -bd -q30m" spamd_flags=NO # for normal use: "" and see spamd(8) spamd_black=NO # set to YES to run spamd without greylisting spamlogd_flags="" # use eg. "-i interface" and see spamlogd(8) # Set to NO if ftpd is running out of inetd ftpd_flags=NO # for non-inetd use: "-D" # Set to NO if identd is running out of inetd identd_flags=NO # for non-inetd use: "-b -elo" # On some architectures, you must also disable console getty in /etc/ttys xdm_flags=NO # for normal use: "" # For enabling console mouse support (i386 alpha amd64) wsmoused_flags=NO # for ps/2 or usb mice: "", serial: "-p /dev/cua00" unfortunately when i reboot and do a ps -ax i do not see symon started up so i have to start it manually. I also realized that when i add a -d option for symon it starts and does not generate any error while adding a -d option to symux shows the following # /usr/local/libexec/symux -d symux version 2.78 program id=10679 debug: size of churnbuffer = 568 debug: shm from 0x82b41000 to 0x82c42390 debug: symux packet size=404 warning: mux address 127.0.0.1 2100 already in use fatal: no sockets could be opened for incoming symon traffic Any idea why this is generated? my symux.conf is as follows: mux 127.0.0.1 2100 source 127.0.0.1 { accept { cpu(0), mem, if(vic0), # pf, # mbuf, # sensor(0), # proc(httpd), # if(xl0), if(de0), if(wi0), # io(wd1), io(wd2), io(wd3), io(cd0) io(wd0) } datadir "/var/www/htdocs/syweb/localhost" } Process running are as follows # ps ax PID TT STAT TIME COMMAND 1 ?? Ss 0:00.02 /sbin/init 16230 ?? Is 0:00.00 dhclient: vic0 (dhclient) 11423 ?? Is 0:00.01 syslogd: [priv] (syslogd) 4439 ?? S 0:00.03 syslogd -a /var/empty/dev/log 24058 ?? Ss 0:00.10 sendmail: accepting connections (sendmail) 20542 ?? Ss 0:00.14 httpd: parent [chroot /var/www] (httpd) 16518 ?? Is 0:00.00 inetd 7866 ?? I 0:00.01 httpd: child (httpd) 2039 ?? I 0:00.06 httpd: child (httpd) 9293 ?? I 0:00.06 httpd: child (httpd) 16691 ?? I 0:00.01 httpd: child (httpd) 12421 ?? I 0:00.01 httpd: child (httpd) 25641 ?? Is 0:00.01 /usr/sbin/sshd 9998 ?? Is 0:00.01 cron 13845 ?? Ss 0:00.15 sshd: root@ttyp0 (sshd) 28826 ?? I 0:00.00 httpd: child (httpd) 15627 ?? I 0:00.01 httpd: child (httpd) 24964 ?? I 0:00.00 httpd: child (httpd) 25652 ?? Ss 0:00.00 /usr/local/libexec/symon 22964 ?? Ss 0:00.03 /usr/local/libexec/symux 5532 p0 Ss 0:00.03 -ksh (ksh) 30606 p0 R+ 0:00.00 ps -ax 3505 C0- I 0:00.00 dhclient: vic0 [priv] (dhclient) 5954 C0 Is+ 0:00.01 /usr/libexec/getty std.9600 ttyC0 1638 C1 Is+ 0:00.01 /usr/libexec/getty std.9600 ttyC1 6382 C2 Is+ 0:00.00 /usr/libexec/getty std.9600 ttyC2 4894 C3 Is+ 0:00.00 /usr/libexec/getty std.9600 ttyC3 24981 C5 Is+ 0:00.00 /usr/libexec/getty std.9600 ttyC5 |
|
||||
Reread this post, which I wrote in another of your threads, earlier today:
http://www.daemonforums.org/showthre...3571#post25627 You can edit /etc/rc.conf until the heat death of the universe, and it will never have any impact on 3rd party software such as symon. All it can do is set variables used by rc(8). And the variables you made up for symon and symux won't avail you. Re-read my last post, above, where I told you to edit the rc.local script. I cannot help you with symon configuration problems, as I have never used it. |
|
|||
Quote:
i have edited the rc.local and symon and symux start up at boot. but i still cant view the graphs by browsing to localhost. i guess right now my problem is viewing the graphs with syweb. my log files reflect Jul 21 11:32:27 symux savecore: no core dump Jul 21 11:32:30 symux symux: symux version 2.78 Jul 21 11:32:30 symux symux: listening for incoming symon traffic on udp 127.0.0.1 2100 Jul 21 11:32:30 symux symux: listening for incoming connections on tcp 127.0.0.1 2100 Jul 21 15:32:30 symux symon: symon version 2.78 Jul 21 15:32:30 symux symon: sending packets to udp 127.0.0.1 2100 Jul 21 15:32:30 symux symon: started module io(wd0) Jul 21 15:32:30 symux symon: started module if(vic0) Jul 21 15:32:30 symux symon: started module mem() Jul 21 15:32:30 symux symon: started module cpu(0) |
|
|||
Okay so i finally got it working. lol
i ll post a step by step process here so no one will ever go tru the stress i went through just to get symon working bcos apparently there seem to be very few symon documentations and none of them is explicit |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Setting up nameservers | paran0iaX | OpenBSD General | 11 | 13th March 2009 12:16 PM |
Gnome issues in OpenBSD 4.2 | Shredder | OpenBSD General | 61 | 27th May 2008 07:34 AM |
Setting Up MPD | benjgvps | FreeBSD General | 0 | 21st May 2008 12:20 PM |
setting up a proxy server in OpenBSD 4.3 | jrake | OpenBSD General | 1 | 14th May 2008 06:43 PM |
thanks for setting this up | DraconianTimes | Off-Topic | 8 | 5th May 2008 08:14 AM |