First off I have never used this feature, so I am not certain what to look for.
My first idea was that if I disabled the hosts they would not show up on the bb2.html page, possibly hide on the bb.html page too.
I disabled three hosts and disabled all tests performed on them. I waited a good 5m (certain it went through the 1m page rebuild time) and it doesn't appear to look any different - now my assumption is that it will only prevent notifications, is this true?
I also tried doing this command and got some odd errors:
[shire at frodo bin]$ /home/shire/server/bin/bbcmd 127.0.0.1 "disable host.mydomain.com 15" 2007-10-04 20:42:07 Using default environment file /home/shire/server/etc/hobbitserver.cfg 2007-10-04 20:42:07 execvp() failed: No such file or directory
[shire at frodo bin]$ /home/shire/server/bin/bbcmd bin/bb 127.0.0.1 "disable Kancharla-nullbox.imaginenetx.com -1" 2007-10-04 20:45:13 Using default environment file /home/shire/server/etc/hobbitserver.cfg 2007-10-04 20:45:13 execvp() failed: No such file or directory
Which of the two is correct, and what is the purpose of the bin/bb that was mentioned in a previous support issue.
Thanks in advance! Josh
I think the bbcmd cannot find the bin/bb .
Try specifiying the full path to the executable
-Johann-
From: Josh Luthman [mailto:josh at imaginenetworksllc.com] Sent: Freitag, 5. Oktober 2007 02:46 To: hobbit at hswn.dk Subject: [hobbit] Using enable/disable administration
First off I have never used this feature, so I am not certain what to look for.
My first idea was that if I disabled the hosts they would not show up on the bb2.html page, possibly hide on the bb.html page too.
I disabled three hosts and disabled all tests performed on them. I waited a good 5m (certain it went through the 1m page rebuild time) and it doesn't appear to look any different - now my assumption is that it will only prevent notifications, is this true?
I also tried doing this command and got some odd errors:
[shire at frodo bin]$ /home/shire/server/bin/bbcmd 127.0.0.1 "disable host.mydomain.com 15" 2007-10-04 20:42:07 Using default environment file /home/shire/server/etc/hobbitserver.cfg 2007-10-04 20:42:07 execvp() failed: No such file or directory
[shire at frodo bin]$ /home/shire/server/bin/bbcmd bin/bb 127.0.0.1 "disable Kancharla-nullbox.imaginenetx.com -1" 2007-10-04 20:45:13 Using default environment file /home/shire/server/etc/hobbitserver.cfg 2007-10-04 20:45:13 execvp() failed: No such file or directory
Which of the two is correct, and what is the purpose of the bin/bb that was mentioned in a previous support issue.
Thanks in advance! Josh
On Thu, Oct 04, 2007 at 08:45:54PM -0400, Josh Luthman wrote:
I disabled three hosts and disabled all tests performed on them. I waited a good 5m (certain it went through the 1m page rebuild time) and it doesn't appear to look any different - now my assumption is that it will only prevent notifications, is this true?
The status icons for these hosts should turn blue when you disable them.
I also tried doing this command and got some odd errors:
[shire at frodo bin]$ /home/shire/server/bin/bbcmd 127.0.0.1 "disable host.mydomain.com 15"
This is wrong; "bbcmd" by itself just sets up the environment for another command, which it then executes. There's no command called "127.0.0.1".
[shire at frodo bin]$ /home/shire/server/bin/bbcmd bin/bb 127.0.0.1 "disable Kancharla-nullbox.imaginenetx.com -1"
Again, this is wrong - but for a different reason: You're already in the "bin" directory (at least, that's what your commandline prompt indicates), so the command should just be "bb" - not "bin/bb".
Which of the two is correct, and what is the purpose of the bin/bb that was mentioned in a previous support issue.
"bb" sends the message to the Hobbit daemon. The correct command you should use is $ /home/shire/server/bin/bbcmd bb 127.0.0.1 "disable Kancharla-nullbox.imaginenetx.com -1"
Regards, Henrik
Josh Luthman schreef: ...
I also tried doing this command and got some odd errors:
[shire at frodo bin]$ /home/shire/server/bin/bbcmd 127.0.0.1 "disable host.mydomain.com 15" 2007-10-04 20:42:07 Using default environment file /home/shire/server/etc/hobbitserver.cfg 2007-10-04 20:42:07 execvp() failed: No such file or directory
bbcmd is used to set the environment for other hobbit commands, so it must be followed by a command. Here, it tries to find the '127.0.0.1' command or executable which, I'm guessing, you don't have ;)
[shire at frodo bin]$ /home/shire/server/bin/bbcmd bin/bb 127.0.0.1 "disable Kancharla-nullbox.imaginenetx.com -1" 2007-10-04 20:45:13 Using default environment file /home/shire/server/etc/hobbitserver.cfg 2007-10-04 20:45:13 execvp() failed: No such file or directory
Almost right: don't specify the bin/ directory.
I'm guessing your host is named Kancharla-nullbox.imaginenetx.com. The syntax for the disable option of bb is:
bb <hobbitserver> "disable HOST.TEST DURATION [text]"
you have to replace the dots in your hostname with commas, so the rigth command would become:
/home/shire/server/bin/bbcmd bb 127.0.0.1 "disable Kancharla-nullbox,imaginenetx,com.* -1"
This will disable all the tests related to the host until OK.
See also the manpage for the bb-command.
HTH, Paul
Hi all, I am trying to monitor some devices using snmp, i have devmon installed but i cant seem to be able to make a connection to these devices. i wanted to monitor smtp..anyone willing to help out? Thanks
If you just want to monitor smtp, just put "smtp" tags on the nodes you want to monitor smtp on. You don't need devmon to do all that.
Tod Hansmann Network Engineer
-----Original Message----- From: ansiimire at africaonline.co.ug [mailto:ansiimire at africaonline.co.ug]
Sent: Friday, October 05, 2007 2:49 AM To: hobbit at hswn.dk Subject: [hobbit] advice needed.
Hi all, I am trying to monitor some devices using snmp, i have devmon installed but i cant seem to be able to make a connection to these devices. i wanted to monitor smtp..anyone willing to help out? Thanks
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Great!
./bin/bbcmd ./bin/bb 127.0.0.1 "disable Kancharla-nullbox.imaginenetx.com.*-1"
This worked perfectly while I was in /home/shire/server - I didn't know that bbcmd was an environmental setting script!
Now the biggest concern I have is being able to enable/disable via the web interface. I just tried, what I believe, the exact same attempt a second time on the web interface and it seems to have disabled it as expected. I'll come back to this if any problems arise again.
Thank you very much for your help!
On 10/5/07, Paul van Eldijk <P.vanEldijk at uci.ru.nl> wrote:
Josh Luthman schreef: ...
I also tried doing this command and got some odd errors:
[shire at frodo bin]$ /home/shire/server/bin/bbcmd 127.0.0.1 "disable host.mydomain.com 15" 2007-10-04 20:42:07 Using default environment file /home/shire/server/etc/hobbitserver.cfg 2007-10-04 20:42:07 execvp() failed: No such file or directory
bbcmd is used to set the environment for other hobbit commands, so it must be followed by a command. Here, it tries to find the '127.0.0.1' command or executable which, I'm guessing, you don't have ;)
[shire at frodo bin]$ /home/shire/server/bin/bbcmd bin/bb 127.0.0.1"disable Kancharla-nullbox.imaginenetx.com -1" 2007-10-04 20:45:13 Using default environment file /home/shire/server/etc/hobbitserver.cfg 2007-10-04 20:45:13 execvp() failed: No such file or directory
Almost right: don't specify the bin/ directory.
I'm guessing your host is named Kancharla-nullbox.imaginenetx.com. The syntax for the disable option of bb is:
bb <hobbitserver> "disable HOST.TEST DURATION [text]"
you have to replace the dots in your hostname with commas, so the rigth command would become:
/home/shire/server/bin/bbcmd bb 127.0.0.1 "disable Kancharla-nullbox,imaginenetx,com.* -1"
This will disable all the tests related to the host until OK.
See also the manpage for the bb-command.
HTH, Paul
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer
participants (6)
-
ansiimire@africaonline.co.ug
-
henrik@hswn.dk
-
Johann.Eggers@teleatlas.com
-
josh@imaginenetworksllc.com
-
P.vanEldijk@uci.ru.nl
-
thansmann@directpointe.com