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
SBR600
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
Subscribe to:
Posts (Atom)