Networking :: Use Static Thread Handlers ?
Jun 29, 2010Can we use static thread handlers ?
View 1 RepliesCan we use static thread handlers ?
View 1 RepliesI have placed the restart-ssh script in /usr/local/nagios/libexec/eventhandler but its not working on seeing the event log the following information is obtained
Though i have checked the script manually by the following command
It works fine with both of the above mentioned commands
I don't know why it is not able to restart ssh when nagios is calling it as event handler
The service definition for ssh in localhost.cfg is as follow:
I am going to use "pthread_setaffinity_np" to bind a thread to a specific core. My application has two threads. I have used mutex to assign a specific id to each thread and then bind that thread to a core different from another core. but it seems that the os assigns both thread to one core.What should I do to bind each thread to a specific core?
View 4 Replies View RelatedI got this message on Friday from just one domain. uote:mailsrv.forthnet.gr #<mailsrv.forthnet.gr #5.5.0 smtp; 554 5.5.0 Your message was considered to be spam by the FORTHnet Antispamming Policy and was not delivered to the recipient. The following spam tests returned positive for this message:FORGED_RCVD_HELO,RCVD_IN_BRBL. For further information visitWe are not a spamming community but it seems we have a statice IP address that has a Reverse lookup to "myipaddress.static.lyse.net" and not my email domain. Would setting a cname mail.mydomain.no -> myipaddress.static.lyse.net cure this problem or are there more tricks to be performedOnce I have cured the FORGED_RCVD_HELO I can move to getting the IP removed from BARACUDA.
View 2 Replies View RelatedWhat are exit handlers ? They are piece of code to execute prior to exit() ?
View 3 Replies View RelatedThe previous version of one of my websites was static and so the URLs looked like this: [url]
A few months ago I re-did the site to be completely dynamic. There are no individual pages for product reviews, just one which pulls the right data from a database. So now, my URLs look like this: [url]
Some fellow ex-googler who specialize in SEO told me that the previous URL scheme was better for search engines because it had the product name. Of course, I have set up redirects from the old naming scheme to the new one but what I would like to do is have 'review.php' handle the request for 'review_XXXX_YYYY.php' without actually doing a redirect... and do this for past and future products. I don't want to have to actually create all these 'review_XXXX_YYYY.php', there would be hundreds, just make it seem like they exist to visitors.
I like to set firefox to ask me every time what to do when downloading a file. This works well if I want to save to disk, but if I want to use an application I don't get a dropdown with applications to choose, but a browse button which requires the application to be typed every time. To make it a bit clearer, if I have clicked on a pdf file I get this: [URL]. How do I get okular listed in a dropdown instead of the browse button?
View 14 Replies View RelatedOperating System: Ubuntu 11.04 w/ Unity-2D
I had serveral custom url-handlers setup using gconftool-2 in my old Ubuntu 10.10 setup, but now after reinstalling and updating to Ubuntu 11.04 I can't get a single one to work with Chrome (11.0.696.57) nor other browsers like Midori.
The only solution was to switch to Firefox and setup them manually using network.protocol-handler*
It seems (on the surface) that Chrome insists on opening the links with xdg-open (and if I remember correctly in Ubuntu 10.10 Chrome said it opened the links using the apps set in gconf), but xdg-open only supports the most common http* and ftp* does it not? - Just learned that xdg-open is the default handler for all urls.
I've tried everything, including searching through Chrome's config files, reinstalling Chrome, and tested changing the paths to my apps - but without any luck.
Note that I'm talking about links in Google Chrome, Firefox on the other hand doesn't even check the url-handlers so I had to set them up manually using about:config > network.protocol-handler*
So they work in Firefox when added, but in no other browsers.
Google Chrome opens the links with xdg-open [url] as depicted in the attacheds screenshot, but this throws in error, found in .xsession-errors:
Code:
gvfs-open: svtrip://example.com/: error opening location: The specified location is not supported
I am currently working on "Creation of Postmortem data logger in Linux on Intel architecture. Its nothing but core utility creation. how the signal handlers for various signals(SIGSEGV,SIGABRT,SIGFPE etc) which produce core dump upon crashing an application internally implemented in Linux kernel. I need to re-write these signal handlers with my own user specific needs and rebuild the kernel. It makes my kernel producing the core file (upon crashing an application) with user specific needs like showing registers,stackdump and backtrace etc.
View 1 Replies View RelatedI would need a lead on how to shutdown several virtual machine on our ESX server. We put in place a UPS and now we want to implement a automatic shutdown of the VMs (in a certain order) when our UPS battery goes under the threshold. I do monitor already the battery state. So I just need to put in place the eventhandler. How to proceed?
View 1 Replies View RelatedI have written interrupt handlers for a keyboard as well as the serial port RS232.
I have seen the book written by O'Reilly w.r.t the device drivers.
I wanted to know *exactly* what parts of Linux kernel should i understand well for having a crystal clear view of writing any kind of device driver ?
My SSH client for remote machine will sometimes hang. I have to wait until the session is finished hanging, I guess, to login with SSH again. I would get some message about multiple users or something.
I haven't been able to login this time for over 1 day. It's started saying something about Tcl_InitNotifier: unable to start notifier thread. My host can access the machine locally to fix this, but what is going on? Why is this occurring?
Here is the login attempt:
Code:
I'm having some problems on the line with ***. This is from a OpenEntidade.java class file and I'm trying to update EmprestadorView's variables.
EmprestadorView.java
public class EmprestadorView extends FrameView {
...
OpenEntidade.java
-----------------
public class OpenEntidade extends javax.swing.JFrame {
[code]....
I want to run networking on my laptops in different environment (home, office, airport etc). I found that Netowrk Manager assigns information from DHCP although I requested fixed IP and configured the gateway and DNS. If I reconfigure the DHCP server so that there is no free IP address, the laptop refuses to connect. When I remove the interfaces from the network manager, I get the fixed IP address, /etc/resolv.conf is not overwritten from DHCP but WiFi connection cannot be established, there is no dialog for setting WPA-PSK. The static IP address seems to be taken into account only if the DHCP server is not found. I need the static address at home and in my office because I need the possibility to ssh to my laptop from another computer but I need IP from DHCP possibly authenticating against RADIUS (Eduroam) when travelling somewhere else. Is there an easy way how to achieve it and how to switch profiles easily? And I cannot switch DHCP off because some devices in my LAN cannot work without it.
View 6 Replies View RelatedI have a dell inspirion 6400/1505 laptop running ubuntu 10.04 has 2 network controllers wired and wireless the wired is a Broadcom Corporation BCM4401-B0 100Base-TX (rev 02) the wireless is a Intel Corporation PRO/Wireless 3945ABG I have the wired configured for static ip 192.168.0.105 the wireless through network manager configured static ip 192.168.0.101 static works great,reboot and all is lost for the wireless default back to DHCP (wired stays static) and i loose the nameserver and have to reconfigure it all over. is there away to remove network manager an manually edit the wireless settings? i know how to edit the wired network interfaces do i just add wlan0 as a static ip ?
View 3 Replies View RelatedI'm using an Ubuntu server 10.04 that I set up on an external 2TB USB harddrive. I'm trying to get a static ip on it because I don't have to keep physically going to the computer to find the IP address so I can SSH and configure apache, mediawiki, and all the other cool stuff Ubuntu can do. I can't (aka really don't want to) use an Ethernet b/c its kinda far, but I don't think thats the problem - wifi vs. ethernet. It's connected to a laptop, so it has wifi built-in. I set up some static IP stuff in /etc/network/interfaces as posted here:
Code:
# This file describes the network interfaces available on your system and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# eth1 with dhcp
auto eth1
iface eth1 inet dhcp
# eth1 with static IP
# auto eth1
# iface eth1 inet static
# address 192.168.2.106
# netmask 255.255.255.0
# network 192.168.2.0
# broadcast 192.168.2.255
# gateway 192.168.2.200
# wlan0 base (don't comment out the line below)
auto wlan0
# wlan0 with DHCP
#iface wlan0 inet dhcp
# wlan0 with static IP
iface wlan0 inet static
address 192.168.2.101
netmask 255.255.0.0
network 192.168.2.0
broadcast 192.168.2.255
gateway 192.168.2.200
wireless-essid *removed*
wireless-key *removed*
wireless-mode managed
Where "*removed*" means that I have taken the text out of this post for security. At the top, I WAS going to do static ethernet, but I decided I wasn't really going to use and and set it back to DHCP (that what the commented part is). My laptop (and all other computers, actually) are on DHCP and for some reason switch between 192.168.2.* and 192.168.1.* because some configuration is messed up in my router (I can't fix it; no permissions). I have a samba and apache server on the server and want full-time access to it without ssh-ing and changing the ip to the 192.168.1 or 192.168.2 networks every time my laptop switches networks, respectively. I can't access the server with my laptop when they're on different "networks".
i have a ubuntu 9.10 server on a wlan behind a debian server/router/firewall.i have had dhcp assigning the ip address to the server and then accessing the server through a port forward that has been working okay.i want to assign a static ip address to the server so that i wont have to worry about checking that as i reboot the system and so forth.
View 10 Replies View RelatedI have 2 lancard eth0 connected to local lan eth1 connected to bsnl broadband connection, I have centos 5.3 here I configure broadband in dial up mode. I am unable to ping outside world and unable to access some site but able to access internet like google etc, configure file is as:
eth0 Link encap:Ethernet HWaddr 00:14:85:96:1C:A7
inet addr:182.x.x.24 Bcast:1182.16.255.255 Mask:255.255.0.0
inet6 addr: fe80::214:85ff:fe96:1ca7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:736487 errors:0 dropped:0 overruns:0 frame:0
TX packets:859918 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:122617961 (116.9 MiB) TX bytes:772581200 (736.7 MiB)
Interrupt:185 Base address:0x6000
eth1 Link encap:Ethernet HWaddr 00:08:A1:7B:A0:F9
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::208:a1ff:fe7b:a0f9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:658246 errors:0 dropped:0 overruns:0 frame:0
TX packets:620456 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:728744445 (694.9 MiB) TX bytes:100768525 (96.1 MiB)
Interrupt:193 Base address:0x4000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:21198 errors:0 dropped:0 overruns:0 frame:0
TX packets:21198 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5867015 (5.5 MiB) TX bytes:5867015 (5.5 MiB)
ppp0 Link encap:Point-to-Point Protocol
inet addr:59.xx.xx.xx P-t-P:59.xx.xx.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1460 Metric:1
RX packets:793 errors:0 dropped:0 overruns:0 frame:0
TX packets:968 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:528818 (516.4 KiB) TX bytes:148274 (144.7 KiB)
[root@venus ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
59.xx.xx.1 * 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
182.xx.0.0 * 255.255.0.0 U 0 0 0 eth0
default * 0.0.0.0 U 0 0 0 ppp0
I am unable to ping gateway of ISP IP i.e gateway of static IP.
I installed Fedora 10 and used dynamic IP first. Then I found out that bonding works with static ip only so I switched to static IP. But then, since I have 3 NIC cards, I configured bonding. I need help in these points:
1- steps to follow so that I switch from dynamic to static IP
2- steps to follow so that I configure bonding
I've seen a lot of questions on the forum about static IP's and how often people have problems configuring them. Here is how it works:
If you have a router in your network, the router is the boss. You can configure anything you want in your computer's network manager, but in the end, the router will win. Say you have 3 computers and configure each one for a static IP. If the router is still set to assign IP's dynamically, it may want to ignore that unless you boot the computers in order of IP#. In other words if you set your IP's to .001. .002, and .003 you have to boot the one with .001 first to be sure it gets that IP.
If you boot .002 first the router wants to assign it the first IP in the list; .001. If the computer will only accept .002 the router may (or may not depending on the router) eventually assign it .002, or you end up with a power struggle between the computer and the router, and have no connection to that computer.
That said sometimes setting IP's on each computer works, at least most of the time, again depending on the router. Some routers will assign the same IP to the same computer when each has individual settings, but even then you still have to deal with settings on each computer; a lot of work. And at some point you will probably still have a glitch or problem, at least temporarily. In my experience setting static IP's on the computers is hit or miss in the long run.
If you set the static IP's in the router and make sure the router recognizes each computer by it's MAC address it's a done deal. You can boot the computers in any order, they will always be assigned the same IP, and you don't have to do anything on any of your your computers or in your network managers to make it happen. Bada bing, bada boom, done. Less work, more stable network, fewer headaches.
i was trying to setup a static ip in order to forward ports but with no luck. I need to setup these:
- IP address: 192.168.1.2
- Subnet mask: 255.255.255.0
- Default gateway: 192.168.1.1
- Preferred DNS Server: 192.168.1.1
I'm trying to set my computer up as a server. I've installed LAMP, but now my problem is getting a static ip. I've tried several tutorials, but with each one, I seem to somehow disable my internet connection.
I'm almost positive that this is all over my head, but my aim is for it to not be.
I figured that i would like to have a static ip address so that i could always know what the internal ip address was of my server. But when i make the address static, I am not able to SSH in from a different machine on my network. The network is wireless/wired, through my D-Link router. I can't even ping the server when i give it a static ip. Is there a way that i can have a static ip address and still have it be seen by other machines in my wireless network?
I have had to re-install everytime I need to make changes to my etc/network/interfaces file. Otherwise i am told that permission is denied, even for sudo. Is there a way around this ?
If I have a regular 192.168.1.0/24 network, and configure a static NAT rule assigning 173.194.35.104 to 192.168.1.20 - would that be the virtual equivalent of setting up this device directly to the internet with that public IP? How will static NAT affect open ports etc., if I host an ftp on 192.168.1.20 and assign him 173.194.35.104, there will be no need for portforwarding?
Also - will using static NAT, assigning 192.168.1.20 the public ip 173.194.35.104 affect the way other local devices in the 192.168.1.0/24 network communicate with 192.168.1.20, or will it still be the same? Finally, NAT and VPN can be a bit tricky, but will doing a static NAT rule eliminate all these problems or is there anything I need to know here? You may also wonder why I don't just try for myself and see what happens, but that would involve purchasing the additional IP's and a more advanced router as the current one does not support multiple WAN-ip's.
I recently switched to WEP encryption from a functional WPA encryption and I've been having problems since (I need WEP for another device and I understand it's less secure.) I tried updating /etc/network/interfaces for the new network using the information here:
[URL]
interfaces is now:
Code:
auto lo
iface lo inet loopback
auto wlan0
iface wlan0 inet static
[code]..
Is there anything wrong with the above? There is a chance I've made matters worse in my frustration... What troubleshooting steps can I take?
I am trying to set up a static ip address. I am using the visual interface. The problem may be that I don't know what they mean by "DNS servers" the linksys says it is 0.0.0.0 but entering that doesn't help. It says "connected" on the "notification area" icon, but I have no internet. I have rebooted the computer and the router.I deleted Auto eth0 and when I added a new connection it is now "Wired connection 1". If I change it to "automatic DHCP" instead of manual, it works fine.What am I missing, I have easily been able to set static IPs on WinXP machines, I would think Ubuntu would be easier.
View 4 Replies View RelatedI cannot set a static IP for eth0 in Ubuntu 11.04. I do this: sudo vi /etc/network/interfaces and then edit the file to auto lo iface lo inet loopback auto eth0 iface eth0 inet static
address 172.16.1.39
netmask 255.255.0.0
network 172.16.0.0
gateway 172.16.0.1
and save the file. Then I edit the resolv.conf file by:
[Code]....
Recently, I have encountered a problem when setting my network configuration.I want to automatically get an IP address through DHCP at system startup, and this can be done by editing /etc/network/interfaces file, adding
auto eth0
iface eth0 inet dhcp
The problem is that I want to set a static DNS, but DHCP will automatically overwritten /etc/resolv.conf file.
What should I do?
In 8.04 I can use the network manager app to set a static IP.
In 8.1 the network manager doesn't seem to work. I tried many different permutations of settings and got nowhere. Even though I put in IP subnet and gateway it still does the DHCP config.
So I added lines to my /etc/networking/interfaces file like this:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
gateway 192.168.0.1
I then either reboot or do this: sudo /etc/init.d/networking restart
This made the network manager icon in the top panel vanish. An ifconfig showed that those settings are in place but DNS doesn't seem to be working. I can ping other hosts on my network by IP but not www.yahoo.com etc.
I even read the man, that's how desperate I got! (a config like the above seems to work on my 8.04 machine except that the auto eth0 appears at the end of the file.)
I didn't see how to set the DNS server(s), unless I was in the wrong man.
Fedora 12 64bit What will be the correct steps changing dynamic IP to static IP on F12 console, instead of on Gnome running;
System -> Administration -> Network -> Edit, etc.
I made following test;
Edited ifcfg-eth0
$ cat /etc/sysconfig/network-scripts/ifcfg-eth0 Code: # Attansic Technology Corp. Atheros AR8121/AR8113/AR8114 PCI-E Ethernet Controller
DEVICE=eth0
BOOTPROTO=static
[code]...