How to list a host multiple times in bb-hosts properly
list Jeff Stuart
Ok, next question. I have a machine that I wish to appear on multiple pages. So I list it more than once in bb-hosts. First time, I list it this way: group-only bbd|bbgen|bbtest|hobbitd|rsync Hobbit Monitoring Server 123.123.123.123 123.123.123.123 # BBPAGER BBNET BBDISPLAY bbd noconn rsync Then I list it this way: page game-servers Main Game Server Boxes. group-except bbd|bbgen|bbtest|hobbitd|rsync 123.123.123.123 123.123.123.123 # ftp !telnet !smtp ssh ntp prefer badconn:1:2:4 (Note: this is just the first server of many that I will need to do that to.) Yet, hobbit gives me a yellow box for the bbtest column and displays this message: Error output: Host 123.123.123.123 appears twice in bb-hosts! This may cause strange results So how do I go about properly listing a server multiple times? -- Jeff Stuart Network Admin MyInternetServices 1-800-300-HOST X-XXX-XXX-XXXX --
list Bob Gordon
▸
On 10/19/05, Jeff Stuart <user-2aec98d44f5e@xymon.invalid> wrote:
I have a machine that I wish to appear on multiple pages. So I list it more than once in bb-hosts. First time, I list it this way: group-only bbd|bbgen|bbtest|hobbitd|rsync Hobbit Monitoring Server
123.123.123.123 <http://123.123.123.123>; 123.123.123.123<http://123.123.123.123># BBPAGER BBNET BBDISPLAY bbd noconn
▸
rsync
Then I list it this way:
page game-servers Main Game Server Boxes.
group-except bbd|bbgen|bbtest|hobbitd|rsync123.123.123.123 <http://123.123.123.123>; 123.123.123.123<http://123.123.123.123># ftp !telnet !smtp ssh ntp prefer badconn:1:2:4 Error output: Host 123.123.123.123 <http://123.123.123.123>; appears twice in bb-hosts! This may cause strange results
On the 4.1.2 (snapshot just before release canidate) setup I have here, several of my systems are on multiple pages. The only difference that I can see between the config lines shown above and the configs that I am running, is that the "prefer" keyword is before any other tests.. -- --==[ Bob Gordon ]==--
list Henrik Størner
▸
On Wed, Oct 19, 2005 at 04:27:23PM -0400, Jeff Stuart wrote:
I have a machine that I wish to appear on multiple pages. So I list it more than once in bb-hosts. First time, I list it this way: group-only bbd|bbgen|bbtest|hobbitd|rsync Hobbit Monitoring Server 123.123.123.123 123.123.123.123 # BBPAGER BBNET BBDISPLAY bbd noconn rsync Then I list it this way: page game-servers Main Game Server Boxes. group-except bbd|bbgen|bbtest|hobbitd|rsync 123.123.123.123 123.123.123.123 # ftp !telnet !smtp ssh ntp prefer badconn:1:2:4
The rule is: Put all of your tags on one of these definitions, and ONLY a "noconn" on the others. So using your example: group-only bbd|bbgen|bbtest|hobbitd|rsync Hobbit Monitoring Server 123.123.123.123 123.123.123.123 # noconn page game-servers Main Game Server Boxes. group-except bbd|bbgen|bbtest|hobbitd|rsync 123.123.123.123 123.123.123.123 # ftp !telnet !smtp ssh ntp prefer badconn:1:2:4 bbd rsync There's no link between the "group-only" or "group-except" definitions, and where you have the network tests defined, so even though it might seem a bit odd with "group-except bbd|rsync" and then those two tests listed on the first host-entry, it will work the way you want it to. Because the tool the runs the network tests ignores all of the page, subpage, group* definitions; and the tool that builds the webpages ignores how all of the network tests were defined (it just looks at what status columns are available). Henrik
list Jeff Stuart
▸
Bob Gordon wrote:
On the 4.1.2 (snapshot just before release canidate) setup I have here, several of my systems are on multiple pages. The only difference that I can see between the config lines shown above and the configs that I am running, is that the "prefer" keyword is before any other tests..
Tried that. Still get the error. -- Jeff Stuart Network Admin MyInternetServices 1-800-300-HOST X-XXX-XXX-XXXX --
list Jeff Stuart
▸
Henrik Stoerner wrote:
The rule is: Put all of your tags on one of these definitions, and ONLY a "noconn" on the others. So using your example: group-only bbd|bbgen|bbtest|hobbitd|rsync Hobbit Monitoring Server 123.123.123.123 123.123.123.123 # noconn page game-servers Main Game Server Boxes. group-except bbd|bbgen|bbtest|hobbitd|rsync 123.123.123.123 123.123.123.123 # ftp !telnet !smtp ssh ntp prefer badconn:1:2:4 bbd rsync There's no link between the "group-only" or "group-except" definitions, and where you have the network tests defined, so even though it might seem a bit odd with "group-except bbd|rsync" and then those two tests listed on the first host-entry, it will work the way you want it to. Because the tool the runs the network tests ignores all of the page, subpage, group* definitions; and the tool that builds the webpages ignores how all of the network tests were defined (it just looks at what status columns are available). Henrik
Ahh THANK you Henrik... That worked! YAAH I'm all green again LOL -- Jeff Stuart Network Admin MyInternetServices 1-800-300-HOST X-XXX-XXX-XXXX --