Software :: Smokeping Network Monitoring System - URL Redirection In Apache
Feb 21, 2011
I setup apache server in order to gain access for the smokeping network monitoring system.
I am accessing the system using [URL]
But I want this page access using [URL]
My httpd.conf file looks like :
Alias /smokeping/ "/usr/local/smokeping/htdocs/"
<Directory /usr/local/smokeping/htdocs/>
AllowOverride AuthConfig
DirectoryIndex smokeping.cgi
Options -Indexes ExecCGI
</Directory>
I'm running a server with Ubuntu 10.04 installed. I recently set up a VirtualHost (I'll call it my.website.com), like I have in the past without any problems. But this time, I'm stumped. When I connect to my.website.com, it should hit port 80, right? It doesn't; rather, it hits port 8000. I don't have any rewrites/redirections (I checked wherever possible) and checked apache2.conf (httpd.conf is empty).
I'm in a bit dilemma on how to set IP based forwarding to specific URL. I have internal staff from 207.173.4.xxx going to www.domain.com. I would like to forward them to www2.domain.com when they are offsite and working remotely from different IP address range. Is there way to achieve this with Apache? If not, is there a software solution to achieve this effect?
So I am brand new to the Ubuntu Server realm and Linux in general (15 years MS development utilizing MS Servers), and so far have been able to tackle some of the most pain in the butt installs and configs ever (VMWare Server being the worst and least stable, but running good now). I have done the site search thing to find out if there were similar issues surrounding Apache and if the answers were found within those posts.
The issue that I am having is in utilizing Apache as a proxy server for redirecting web traffic on one external IP to multiple internal IP addresses. I have multiple virtual servers and I need apache to act as a pass through / redirection proxy for web traffic. So far, it worked for a bit, then it becomes flaky and starts failing randomly while clicking through some of my sites. The worst offender being my SharePoint site.I rebooted the linux server, and when I try to access one of my pass-through sites, all I received was an error message about server difficulties and possibly too much traffic. After some time had passed, and few refreshes later, I finally received the authentication prompt from my windows web server, but this whole configuration is still unreliable. I sometimes get the password prompt several times where it does not allow me to login with my proper credentails, etc, and other times it just fails to display the page full stop.This is an externally facing SharePoint site.
So there's the Windows side. I also have a WordPress site that has similar issues. With WordPress it's even more odd as I have set the WP site settings to not include the directory /wordpress/ and setup my Proxy to point to the http://xxx.xxx.xxx.xxx/wordpress/ landing. Yet on some actions (i.e. browsing themes) it decides to throw in the wordpress directory causing it to 404, and in other sections it doesn't. This actually sounds more likely a WordPress bug than a Apache bug. file: Default (from available sites):
Here my setup of Apache : I have two virtual hosts on separate IP and on both I am using port :80 one is main website domain.name and another webmail.domain.name. And to get full link path I am using index.html with redirection derectives. My question how I can setup each Vhost to he is own redirection directive to set two full link like: when type webmail.domainname -----> redirect to webmail.domainname/horde/imp/file.php and www.domainname ------> redirect to www.domainname/csr/ Right now working only one of this Vhosts, just problem to separate them when I type www.domainname -----> apache redirect to webmail.domainname.
We are using a webserver and application server for our portal. When my JBoss application is down on the application server, a maintenance page is shown to the user when the user tries to access the portal. When the JBoss application on the application server is up, the webserver redirects the request to the JBoss application server. Now, while the JBoss application is up and I replace the contents of index.html page in apache with the maintenance page contents.
Still the webserver redirects the request to the JBoss application server and the contents of index.html are not shown to the user. I am not able to find out any configurations for this automatic redirection in webserver. By automatic, I mean if the JBoss application is up, then redirect the request to the application server, else show maintenance page. What I want to do is show maintenance page even when my JBoss application is up.
I try to fix bugs on my web server. The remote web server allows redirects to arbitrary domains. Description : The remote web server is configured to redirect users using a HTTP 302, 303 or 307 response. However, the server can redirect to a domain that includes components included in the original request. A remote attacker could exploit this by crafting a URL which appears to resolve to the remote server, but redirects to a malicious location.
In Short: I want something that will show me which files and associated requested URLs are causing the highest load on our web server.
Verbose: We already monitor our Apache web server using Cacti, Nagios, and of course traditional nix commands, but I am looking for something specifically to take an Apache process ID and tie that to a users request for a specific file and URL. The great thing about something like this is that it would be able to show me the worse performing PHP files. Special bonus if it can store this data over time for reports.
I have been googling around for something like this but can't seem to find it. Bonus if it exists in Cacti or Nagios already and I'm just to blind. I started writing my own PERL script to do this, but have limited time to devote to this at work so if a solution already exists I'm game, else I'll just have to write it myself. I'm also worried about my own scripted solution in that it won't get it write because it will be leveraging the output of a specialzed apache log that records the PID and then doing a look up with ps aux looking for that PID.
I've got an apache server running several virtual hosts. I have them separated by domain name, and they all come into the same IP address. I'm looking for a way to monitor the bandwidth that they use. The only feature that I'm really looking for is a breakdown of which domain is dishing out how much bandwidth.
blocks.com got three visitors this month. And spent 200kb in serving them. emus.net got fifteen. And spent 1mb in serving them. reverse.org got 4000. and spent 400mb in serving them.What I would like to see is a report, could be a web page could be a file. Ideally with graphs. Showing: 1. 2..... 3[400mb worth of dots]
1-blocks.com 2-emus.net 3-reverse.org
I don't need it to show me how many visitors or from where or anything like that. I am just looking for a side by side comparison of how much bandwidth each domain is using.Is there some application for this or something. Everything that I've found has been for information on a single site (awstat and friends can show me information for multiple sites, but as far as I know it won't show me information comparing them) I haven't found anything for nagios, but perhaps there is something out there for it, or a sneaky way to make a nice plugin that would do this.
I'm have a base level understand of linux at this point. I have Debian box that I am trying to do some port redirection with.
I have my external NIC as eth0 with an IP of x.x.250.5. I have my internal NIC as eth1 with an IP of 192.168.1.1.
On the internal network I have a NAS box with a web interface at 192.168.1.100. What I need is to set it up so that a request to x.x.250.5:8080 will some how forward/redirect to the internal network NAS box at 192.168.1.100:80.
I have users using Windows XP, Windows 7, Linux (Fedora) and Mac. They all are in a single private network and all access internet through a Linux (RHEL5) system in which Squid acts as gateway. The same is true with my branch offices too except that private network is different and gateway system uses Fedora 9 instead of RHEL5. All the branch offices are connected through point to point leased lines with the head office for file transfer.
My requirement is this: I have a web server located at head office. Presently I am able to access this server from my branch offices through internet. I would like to access this server from branch offices through leased lines. This too I am able to access if I do routing in users system. The file transfer is taking place through one to one system at two ends by creating static routing in those systems.
I just need to ask about any existing tool in linux which can show us the CPU memory and swap utilizations of overall system for particular time duration and generate graphs.?i m a student of computer science and want this information of resource utilization for my project..kindly reply if any of u liux fans knows about such tools.
I want to know which was the best networking monitoring tool in linux wright now im using opennms . i like to try out with any other monitoring tool can somebody say which one is best one followed in linux industry
I have several systems I would like to monitor. Right now I just care about the system time.
I am going to start off by simply monitoring the system time and want my monitoring SW to alert me if it differs more than 5 minutes from the local time on the monitoring system. (My systems seem to have a huge time drift even after I setup NTP) Will Nagois do this?
In the future I would also like to monitor such things as disk usage (capacity and how busy), memory use, various process' I want to know if a process dies or not. Will Nagois do this?
If not do you have any recommendations on SW for this task.
I have a small office network with windows machines and a Linux Internet access server (CentOS 5.4). For Internet access I use masquerade, so everione can access every Internet service. I periodicali have quite big traffic from one of the hosts, but I can't figure out which one is that?
Is there any linux command which will show me the bytes/packets (or any useful infos) going to specific hosts?
I need to monitor resource of my server.I have found munin and sysstat, Does munin use systat? or they are different package?because in some documents I have found on net,for installing munin, systat is needed !!for example on RedHat based distor, sysstat package is needed! but on debian is not needed
System activity monitoring tools - top, iotop, ntop, sar, collectl, etc - may be a good reference to judge the system activity when the system transitions to sleep state.But if I make the system transition to sleep state when i/o activity is zero during 15 minutes, for example, it won't sleep forever because slight i/o by daemons, etc occurs continuously even if no user i/o.So how can I judge the system activity to change the state by using those tools?
I was wondering how do you slap a packet analyzer like Wireshark somewhere between all the computers in a house and the router, so you can tell what websites are being accessed? I mean websites, specifically. I'm not trying to monitor bittorrent, IRC or other things yet - I'll get to that later. I just want to break this insanely complex task into smaller bites for now.Also, since my ISP has bandwidth caps but does not have a means for consumers to monitor total network usage, I'd like to figure out how to use Wireshark to do that as well. This, I am assuming, is easier when wireshark is running on the pipeline going into the router.
I am currently stationed overseas in Japan, and I am happy to say that I have a 100 Mbit fiber line from my service provider... I am not so happy to say that they force me to use their "CTU", which is basically a Japanese router, which limits me from receiving external connections (such as would be required to host FTP, or administer my home machines via SSH or VNC). I have tried many methods of bypassing this piece of equipment, but so far none have worked (router setup for PPPoE, DHCP, Static IP, so on). I don't think the Japanese would mind me bypassing this device, as it's really there to 'protect' me, but there's such a language barrier that I can't figure out how to tell them what I want to do.
In order to troubleshoot the problem, I would like to setup a spare computer as a hub, dumbly (Is that a word? It is for this circumstance...) passing data from one device to the other, and allowing me to watch what is being passed via Wireshark. I am pretty linux savvy, but I'm completely useless with iptables.
Here is the final product I want:
After connecting eth0 to the fiber modem and eth1 to the CTU, I want the computer to duplicate eth0's distant end MAC to eth1 and vice versa (to simulate the computer not being on the network at all), then I just want the computer to pass any data coming in on eth0 to eth1, and any data coming in on eth1 to eth0. Finally, I need to be able to read the throughput with Wireshark, but I really think that will be very simple if I can get the rest of the setup complete.
One piece of info - there is no dhcp on this link of the network, and I have no way of knowing the MAC addresses of either end before connecting them.
As an added bonus, once I've captured the handshake between the CTU and modem, if someone knows how to retransmit those packets on demand (i.e. to replace the CTU with my computer), I would be quite happy to hear about it.
In SuSE firewall0. I do have a openSuse 11.4 and multiple IP addresses on eth0 interface
I run (trying to/have to) multiple TOMCAT servers.
I am trying to have each tomcat instance listen to on separate IP address for example:
What i am trying to do is to redirect
a) tomcat 1 -
a) tomcat 2 -
And so on.
I know that it has to be possible.
I do have just eth0/
Is is it possible. Do I have to create "vittual interfaces"? eth0:1, .......... and do redirection ?
"Server" has got just single interface - just 1 ethernet calbe goes to that server. I am planning to have 10-15 tomcat's on that server (I have to unfortunatley) and each has to run on port 80
Is it possible to "grant" permissions to normal users to run app on port 80 - that would solve me lots of problems if impossible to redirect.
I tried to setcap 'cap_net_bind_service=+ep' /path/to/tomcat ...... but no luck
I just wanted to use a network bandwidth usage monitoring application. Scenario: I am using an EV-DO based USB broadband modem with a limited GB plan. For additional data usage they charge per MB. Currently I use either wvdial (mostly) or pon to start the connection. So if there is any network monitoring application which could log time used and data used for the session, it would be great. Actually debian has too many different network monitoring applications, But I am not sure which one suits well for this purpose.
I am currently running a 64-bit Fedora 14 server which hosts a game server, a voice server, and remote desktop functionality, each on a distinct TCP port. I am currently using the built-in firewall to deny all traffic other than ICMP ping/pong and TCP traffic on those specific ports.I am looking for a graphical application which will let me monitor any connections being made to my server in order to keep an eye out for possible security concerns. To be more specific, I'd like to be able to see the source IP addresses, TCP/UDP ports, and individual bandwidth in use by external connections being made to the server, along with any other information that might be helpful in identifying a possible intrusion attempt.
My question is simple - is there any linux app or applet which is able to show (monitor) incoming and outgoing connections assuming it's a direct internet access? I was using a firewall on a system off Redmont which was able to show every connection, listening ports of services if some were opened etc.
Is there a program that monitors and displays 'who' is on your wireless Internet signal that one may not be aware of? Like, the ability to see when someone that you don't know is accessing your locked wireless?
I use network Manager to connect to wireless broadband on Fedora 12.Are there any tools that can provide me logs about connection times, bandwidth monitoring etc.Basically, I need logs like what kppp provides with accounting.
I can use kppp to connect and get the logs I need but I want to connect to the network as soon as I plug it in - Only Network Manager allows this.
Network/IT teams often look for a monitoring tool in reaction to a problem they have on the network. They know they have a problem, but they dont know specifics. They cant see, for example, who is hogging bandwidth. So they seek a free or open source point solution to solve that one problem. But if they already know one problem is happening, it's possible theres a second or third problem which could be prevented if the IT staff knew about these issues. An alternative approach to reactive monitoring would be to implement a robust network monitoring system before a problem occurs. An NMS should enable IT staffs to identify potential problems early on and solve them before end users notice them. Is your organization using a network monitoring system? If no, why not?