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

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

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

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

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

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