This Nagios IRC Bot, uses a config file, chkconfig and services...
http://mathon.sitesled.com/SBR600/nagircbot-0.0.31-3.fc13.x86_64.rpm
Feel free to download this rpm and try it out on your system assuming you have nagios installed...
If there are any problems, please feel free to post on this blog or find me on IRC...
Contributions
I didn't assist with any projects in the SBR600 class
- Tested/reported bugs in Corsix-TH
Mathon
Friday, December 17, 2010
SBR600:Reflections On SBR600
Wow it been 4 months already.... seems like yesterday i was walking to my first class...
Its been a fun and challenging semester, but onto SBR600...
This course, can make you feel like your the king of the world (when you figure something new that no one has done before) or really crappy after you spend a few hours on a task with no success. But there is light at the end of the tunnel and that light is all the people out there on IRC who help you.
One suggestion i do have, is that we start the projects earlier giving us more time to work on them OR more frequent checks are done. Twice a change had to be made which caused us to redo a portion of the project. If we had more warning or a guideline of what methods to do/not to do, we may of not had that problem, but obstacles will always come up in life...
Overall though i really enjoyed this class, my only regret is that i didn't take this course earlier.
Its been a fun and challenging semester, but onto SBR600...
This course, can make you feel like your the king of the world (when you figure something new that no one has done before) or really crappy after you spend a few hours on a task with no success. But there is light at the end of the tunnel and that light is all the people out there on IRC who help you.
One suggestion i do have, is that we start the projects earlier giving us more time to work on them OR more frequent checks are done. Twice a change had to be made which caused us to redo a portion of the project. If we had more warning or a guideline of what methods to do/not to do, we may of not had that problem, but obstacles will always come up in life...
Overall though i really enjoyed this class, my only regret is that i didn't take this course earlier.
Friday, November 26, 2010
SBR600: Nagios Querrying The Bot
One thing i forgot to mention is that the bot can be Queried... Below are the commands and there discriptions
help - gets help
resend - resend the last known problems
statistics - returns the number of criticals/warnings/etc.
reload - completely forced reload the nagios status
check - check if nagios is still running
Until Next time!
Matt
help - gets help
resend - resend the last known problems
statistics - returns the number of criticals/warnings/etc.
reload - completely forced reload the nagios status
check - check if nagios is still running
Until Next time!
Matt
SBR600: Nagios IRC Bot Success
Hi everyone!
After many tears of pain and many hours of smashing my head against a wall, I have finally gotten an IRC bot running on a channel on Freenode. How you ask?
I did the following, please keep in mind this was done on Fedora 13 with Nagios 3.2.3 and NagIRCBot 0.0.30.
Some packages you will need openssl-devel, gcc. The rest were already installed for me, so you might need others.
After unpacking the tarball, in the make file you must change the following line
to
After that continue with make/make install
Once its installed you can start up nagircbot...
nagircbot -f /var/log/nagios/status.dat -s irc.freenode.net:6667 -c \#mathon -C -n test22283833 -u ident -U realname -I 900
Lets examine the above command which will be the main command for starting nagircbot...
/var/log/nagios/status.dat -> points to the log file it will read
irc.freenode.net:6667 -> is the irc server
mathon -> is the channel name...
The "-C" flag -> allows it to send colored messages
test22283833 -> is the ircnickname
ident/realname -> the ident and real name string for the bot
-I 900 -> tells the bot how often to send a message to the channel in this case its 15min (900 seconds)
Many thanks to flok for being a great help in getting the bot up and running!
Until Next time!
After many tears of pain and many hours of smashing my head against a wall, I have finally gotten an IRC bot running on a channel on Freenode. How you ask?
I did the following, please keep in mind this was done on Fedora 13 with Nagios 3.2.3 and NagIRCBot 0.0.30.
Some packages you will need openssl-devel, gcc. The rest were already installed for me, so you might need others.
After unpacking the tarball, in the make file you must change the following line
LDFLAGS+=$(DEBUG) -lssl -lstdc++
to
LDFLAGS+=$(DEBUG) -lssl -lstdc++ -lcrypto
After that continue with make/make install
Once its installed you can start up nagircbot...
nagircbot -f /var/log/nagios/status.dat -s irc.freenode.net:6667 -c \#mathon -C -n test22283833 -u ident -U realname -I 900
Lets examine the above command which will be the main command for starting nagircbot...
/var/log/nagios/status.dat -> points to the log file it will read
irc.freenode.net:6667 -> is the irc server
mathon -> is the channel name...
The "-C" flag -> allows it to send colored messages
test22283833 -> is the ircnickname
ident/realname -> the ident and real name string for the bot
-I 900 -> tells the bot how often to send a message to the channel in this case its 15min (900 seconds)
Many thanks to flok for being a great help in getting the bot up and running!
Until Next time!
SBR600: Difculty Setting Up Nagios IRC bot
Hi everyone,
After much research and hours on IRC with others trying to get a bot working i am still unsuccessful. The two problem are, there is nothing that i have found that A) Tested with Nagios 3.2.3 so there are some compatibility issues, B) Written to work with fedora, there are some bots written for ubuntu and freeBSD and converting them over to fedora doesn't seem to be going that well. Lastly there not supported anymore, so finding someone to help me set one up is difficult.
Hopefully someone will be able to help me out. If not then writing a bot from scratch might be the only way.
Until next time!
Matthew
After much research and hours on IRC with others trying to get a bot working i am still unsuccessful. The two problem are, there is nothing that i have found that A) Tested with Nagios 3.2.3 so there are some compatibility issues, B) Written to work with fedora, there are some bots written for ubuntu and freeBSD and converting them over to fedora doesn't seem to be going that well. Lastly there not supported anymore, so finding someone to help me set one up is difficult.
Hopefully someone will be able to help me out. If not then writing a bot from scratch might be the only way.
Until next time!
Matthew
Sunday, November 14, 2010
SBR600: Nagios Documentation
Hi everyone,
Just thought I would let everyone know they can view some of our documentation as we progress through this project by visiting:
http://zenit.senecac.on.ca/wiki/index.php/How_to_Setup_and_configure_Nagios
Until next time!
Matt
Just thought I would let everyone know they can view some of our documentation as we progress through this project by visiting:
http://zenit.senecac.on.ca/wiki/index.php/How_to_Setup_and_configure_Nagios
Until next time!
Matt
Friday, November 12, 2010
SBR600: GIT
Hi everyone!
Today I will be talking about GIT...
Git is a free and open source version control system similar to SVN.
Although I have played with SVN in the past, GIT seems to be quite easy to use as well...
For practice i tried a simple remote repository exercise.
First I cloned the repository, then I added my own branch, pushed my branch back to the server and verified it was there. Once i knew it was there i pulled someones branch to look at.
That's all the fun I have to report on GIT for now.
Until Next Time!
Matt
Today I will be talking about GIT...
Git is a free and open source version control system similar to SVN.
Although I have played with SVN in the past, GIT seems to be quite easy to use as well...
For practice i tried a simple remote repository exercise.
First I cloned the repository, then I added my own branch, pushed my branch back to the server and verified it was there. Once i knew it was there i pulled someones branch to look at.
That's all the fun I have to report on GIT for now.
Until Next Time!
Matt
Friday, November 5, 2010
SBR600:Nagios Clinet Setup
Hi everyone,
Just a quick update on whats happening with Nagios, my colleague has setup a client.
More information can be viewed at his blog post below.
http://akkimblog.blogspot.com/2010/11/nagios-implementation-on-client-part-1.html
Until Next time,
Matt
Just a quick update on whats happening with Nagios, my colleague has setup a client.
More information can be viewed at his blog post below.
http://akkimblog.blogspot.com/2010/11/nagios-implementation-on-client-part-1.html
Until Next time,
Matt
Friday, October 29, 2010
SBR600: Update on Nagios
Hi everyone,
As mentioned earlier, i have started work on the Nagios project.
Today, we setup the server and Nagios is currently monitoring the local computer...
The next phase will be to get it monitoring additional machines.
Until next time!
Matt
As mentioned earlier, i have started work on the Nagios project.
Today, we setup the server and Nagios is currently monitoring the local computer...
The next phase will be to get it monitoring additional machines.
Until next time!
Matt
Thursday, October 21, 2010
SBR600: Repositories/Distributing
Hi everyone!
Creating a repositories and distributing the packages was quite fun to do.
First off you must create a key for your repository using the command:
Creating a repositories and distributing the packages was quite fun to do.
First off you must create a key for your repository using the command:
gpg --gen-key
After that you must sign your package, and move it over to your distribution directory.
Then to create the metadata run the command:
createrepo /name/of/directory
Once you have done that your all good to go. Happy Distributing!
Until next time,
Matt
Thursday, October 14, 2010
SBR600: Project
Hi everyone!
I will be helping set up Nagios on seneca's arm machines...
More information can be found here:
http://zenit.senecac.on.ca/wiki/index.php/Set_up_Nagios_monitoring_of_the_ARM_farm
I will be helping set up Nagios on seneca's arm machines...
More information can be found here:
http://zenit.senecac.on.ca/wiki/index.php/Set_up_Nagios_monitoring_of_the_ARM_farm
Monday, October 11, 2010
SBR600: Mock Build/Koji
My mock build of nled went without any problems,
I had some troubles with koji, i kept getting this error message:
I had some troubles with koji, i kept getting this error message:
sslv3 alert certificate revoked
After a few hours i was able to get it to work... The issue
was that my certificates were not valid. So i had to manualy
delete the certificates and re-downland them. After that koji
worked flawlessly.
Next up: Signing RPM packages.
Until Next time...
Matt
SBR600:Switch to build a new SPEC file
After many days of trouble and problems, I have decided to try to build a different program...
Welcome to the world of NLED...
After the pain i had with hotwire, nled seemed like a breeze... although i will still try to figure out how to build hotwire as it will keep bugging me if i don't...
SPEC file: SBR600.NLED
Welcome to the world of NLED...
After the pain i had with hotwire, nled seemed like a breeze... although i will still try to figure out how to build hotwire as it will keep bugging me if i don't...
SPEC file: SBR600.NLED
Thursday, September 30, 2010
SBR600: Our two vistiors from Mozilla
First off i want to thank Mozilla for letting Armin and John out of there holes to come present to us.
I learned quite a lot about the process and the tough life that builders have. There task is to always improve the process, making it faster for the developers. They have taken a typical build process from what was typically done in weeks to days. Currently they can spit out a new build in under 24 hours. Now that is fast for fixing bugs/security issues. There key to success is automation and splitting tests up. As an example they used they had a test that used to run for a few hours but they split that up into 5 tests, some which may run for 15min, allowing another build to start that test while its running a different test.
Until next time!
Matt
I learned quite a lot about the process and the tough life that builders have. There task is to always improve the process, making it faster for the developers. They have taken a typical build process from what was typically done in weeks to days. Currently they can spit out a new build in under 24 hours. Now that is fast for fixing bugs/security issues. There key to success is automation and splitting tests up. As an example they used they had a test that used to run for a few hours but they split that up into 5 tests, some which may run for 15min, allowing another build to start that test while its running a different test.
Until next time!
Matt
SBR600: Building An RPM
Hi, everyone today im going to talk about building an RPM on a fedora system, alright lets get started...
Building an RPM
The first step to building an rpm package, is to download the source file of the program you want to build. This is done by using the command
yumdownloader --source PACKAGENAME
After that we must run the command
rpm -i PACKAGENAME
Once we have done that we can go to
~/rpmbuild/SPECS
To look at the SPEC file and find out some more information on this package, after weve done that the last step is to build it which can bed one using the command
build -ba PACKAGENAME.spec
Thats it! weve just buit our first RPM package... not that hard, next up working on a building it from a SPEC file
Friday, September 17, 2010
SBR600 Lab 2 - Playing with the -J option
I was a little surprised that 4 was the fastest time as i am running a duel core system. I did not automate this process, but if i did im sure the process would of been a bit faster. I tried to run these tests with my system doing as little as possible to make it a fair test, but without running the test hundreds of times and with different builds its hard to say if 4 is the best result for everything. What seems to affect the results are what the build is waiting for CPU , or disk as well.
Friday, September 10, 2010
SBR600 Lab 1 - First Complile
Install of nled
I have downloaded nled from here.
Then i tried to make it but i needed to install "ncurses-devel"
This program helps to crack passwords against a library of words.
To install this program i had all the dependency's it needed.
I have downloaded nled from here.
Then i tried to make it but i needed to install "ncurses-devel"
Below is a picture of nled
I then decided to compile another program, this time from SourceForge called cracklib.This program helps to crack passwords against a library of words.
To install this program i had all the dependency's it needed.
SBR600 - My First Post!
Hi,
My name is Matthew. I am in my 6th semester at Seneca, and plan to go to University after. Below is a picture of my IRC converstaion
My IRC name is: Mathon
Below is a link to my user page on Seneca Wiki
http://zenit.senecac.on.ca/wiki/index.php/User:Mathon
Below is a link to my user page on Fedora Wiki
https://fedoraproject.org/wiki/User:Mathon
My name is Matthew. I am in my 6th semester at Seneca, and plan to go to University after. Below is a picture of my IRC converstaion
My IRC name is: Mathon
Below is a link to my user page on Seneca Wiki
http://zenit.senecac.on.ca/wiki/index.php/User:Mathon
Below is a link to my user page on Fedora Wiki
https://fedoraproject.org/wiki/User:Mathon
Subscribe to:
Posts (Atom)