Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 10-18-2012, 09:32 AM   #1
Senior Member
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Rep: Reputation: 50
configure conky to show just one active ip address


I'm using this entry at /etc/conky/conky.conf:
${font sans-serif:bold:size=8}IP address: $alignr ${addr eth0}
to show IP address of nic eth0 and it works well.
I have a problem with 2 nic's.
Howto configure conky to show just one active ip address eth0 or eth1?
Old 10-21-2012, 07:32 AM   #2
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 418Reputation: 418Reputation: 418Reputation: 418Reputation: 418
Check out the if_up directive in the conky documentation. So something like:
${if_up eth0}${font sans-serif:bold:size=8}IP address: $alignr ${addr eth0}${endif}
Repeat for eth1. Of course if they are both active, both will be in your conky.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Configure conky-Lua in Ubuntu (11.10 & 12.04), Fedora, debian and LinuxMint | Howto Conky LXer Syndicated Linux News 0 03-06-2012 01:40 PM
How do I show wallpaper file name in conky PClOStinspace Linux - General 2 01-10-2012 03:07 PM
[SOLVED] set conky behind the active window? SeRi@lDiE Slackware 1 06-23-2011 11:53 AM
Conky won't show everything vockleya Linux - Software 4 03-30-2010 03:49 PM
conky under transparent gnome-terminal does not show synss Linux - Desktop 2 10-13-2007 12:46 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration