
some of you may already know that Geoff is compiling a howto on installation and configuration of Cacti so that you can monitor various bits and bats on your networks. This will provide you with historical data.
To accompany the Cacti guide, I am writing a Nagios guide so hat you can see when things go tits up in realtime and hopefully help you track any problems down.
The guide should be pretty much distro independant and there will be some tips on keeping your config files nice and clean. i will be including checks for the following:
* Monitoring links between switches
* Checking if hosts are alive using ping
* Checking memory and CPU utilisation on HP Procurve kit
* Checking key services (web servers, proxies, DNS, etc.)
* Printer checks (starting with HP JetDirect-based printers)
i will also include links to relevant other documentation to aid in extending Nagios' functionality and there will be opportunity to extend the document further once it hits the wiki.
Is there anything else that anybody would like from the outset?
EDIT - Files attached here for convenience.

I dunno, but I'll write a quick segment on how to integrate notifications with Jabber if you like? I find it an invaluable part of the system.

@localzuk: Clever... Jabber is something that I'm yet to use so this could give me a reason to start![]()

Indeed, this was the reason I set it up, as I have no way of interfacing nagios with anything else (can't use our LEA's exchange box for email and we don't want to pay for SMS messages).

I use sendmail on the Linux box and forward my mail to my Exchange account. Some extra DNS entries allow me to reply too.Originally Posted by localzuk

What about interfacing with Twitter and their API?

@webman: I would consider looking into it... however, somebody in all there wisdom has decided that Smartfilter should block Twitter in its entirity![]()

Ah, but we can't use any mail servers here except the county exchange server and the web based easymail plus from the SWGfL - we can't even use the easymail IMAP/SMTP servers...Originally Posted by Ric_
It is very annoying to say the least...

@localzuk: It's an internal mail system though using sendmail so you shouldn't have a problem. It then just uses SMTP to send to the Exchange server.
I think that there should be a decent section on notification, as this is the main way to know when, as Ric_ says, things go tits up.
I would recommend trying to stick to generic mode of communication i.e. email, netsend, IM, as these do not require any additional, if minimal, setup outside Nagios itself.
As most people are going to be new to this kind of thing as well as *nix itself I would suggest trying to keep it as simple as possible.
I have had an idea though, I wil look at trying to get messages directly from nagios to the Messenger Client I wrote as this would provide direct to desktop notifications in near realtime.

As for Twitter best way to do this is use php script that checks email account and sends off any emails to twitter.
@Ric
Hurry up with it as want to get it setup
Russ
I set this up to work with Jabber a while ago.I have had an idea though, I wil look at trying to get messages directly from nagios to the Messenger Client I wrote as this would provide direct to desktop notifications in near realtime.
You need sendxmpp installed (in the universe repository for Ubuntu Dapper).
Command definitions:
you'll need to create a ~/.sendxmpp configuration file detailing the account information and server address sendxmpp is allowed to use. You'll also need to define contacts 'pager' addresses to be their jabber IM contact address.Code:# 'host-notify-by-epager' command definition define command{ command_name host-notify-by-epager command_line /usr/bin/printf "%b" "Host '$HOSTALIAS$' is $HOSTSTATE$\nInfo: $HOSTOUTPUT$\nTime: $LONGDATETIME$" | /usr/bin/sendxmpp -s "$NOTIFICATIONTYPE$ alert - Host $HOSTNAME$ is $HOSTSTATE$" $CONTACTPAGER$ } # 'notify-by-epager' command definition define command{ command_name notify-by-epager command_line /usr/bin/printf "%b" "Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $SERVICEOUTPUT$\nDate: $LONGDATETIME$" | /usr/bin/sendxmpp -s "$NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$" $CONTACTPAGER$ }

I did it using the plugin http://www.nagiosexchange.org/Notifi..._netnagext_pi1[p_view]=181
Just edited the 'notify_via_jabber' perl file and voila. I'll rustle up a complete mini-howto on how I did it, so people could use either method.
@Ric_ = nope, can't send email out from our own SMTP to it as it is blocked by their firewall...

Could you not install the mail bits required for smtp and pop3 accounts or whatever on a nix box or even windows and just keep it all internal?
Ben

Well that would mean having to maintain an email system that only worked internally - which seems pointless to me.
There are currently 1 users browsing this thread. (0 members and 1 guests)