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!
No comments:
Post a Comment