+ Post New Thread
Page 1 of 4 1234 LastLast
Results 1 to 15 of 52
*nix Thread, Installing Nagios... what do you want to know? in Technical; some of you may already know that Geoff is compiling a howto on installation and configuration of Cacti so that ...
  1. #1

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,600
    Thank Post
    109
    Thanked 769 Times in 598 Posts
    Rep Power
    181

    Installing Nagios... what do you want to know?

    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.
    Attached Files Attached Files

  2. #2

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,869
    Thank Post
    518
    Thanked 2,486 Times in 1,928 Posts
    Blog Entries
    24
    Rep Power
    838

    Re: Installing Nagios... what do you want to know?

    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.

  3. #3

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,600
    Thank Post
    109
    Thanked 769 Times in 598 Posts
    Rep Power
    181

    Re: Installing Nagios... what do you want to know?

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

  4. #4

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,869
    Thank Post
    518
    Thanked 2,486 Times in 1,928 Posts
    Blog Entries
    24
    Rep Power
    838

    Re: Installing Nagios... what do you want to know?

    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).

  5. #5

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,600
    Thank Post
    109
    Thanked 769 Times in 598 Posts
    Rep Power
    181

    Re: Installing Nagios... what do you want to know?

    Quote Originally Posted by localzuk
    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.

  6. #6

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,406
    Thank Post
    640
    Thanked 961 Times in 661 Posts
    Blog Entries
    2
    Rep Power
    324

    Re: Installing Nagios... what do you want to know?

    What about interfacing with Twitter and their API?

  7. #7

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,600
    Thank Post
    109
    Thanked 769 Times in 598 Posts
    Rep Power
    181

    Re: Installing Nagios... what do you want to know?

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

  8. #8

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,869
    Thank Post
    518
    Thanked 2,486 Times in 1,928 Posts
    Blog Entries
    24
    Rep Power
    838

    Re: Installing Nagios... what do you want to know?

    Quote Originally Posted by Ric_
    I use sendmail on the Linux box and forward my mail to my Exchange account. Some extra DNS entries allow me to reply too.
    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...

    It is very annoying to say the least...

  9. #9

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,600
    Thank Post
    109
    Thanked 769 Times in 598 Posts
    Rep Power
    181

    Re: Installing Nagios... what do you want to know?

    @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.

  10. #10
    ICTNUT's Avatar
    Join Date
    Jul 2005
    Location
    Hereford
    Posts
    1,419
    Thank Post
    196
    Thanked 249 Times in 122 Posts
    Rep Power
    62

    Re: Installing Nagios... what do you want to know?

    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.

  11. #11

    russdev's Avatar
    Join Date
    Jun 2005
    Location
    Leicestershire
    Posts
    6,930
    Thank Post
    709
    Thanked 552 Times in 367 Posts
    Blog Entries
    3
    Rep Power
    204

    Re: Installing Nagios... what do you want to know?

    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

  12. #12

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,804
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: Installing Nagios... what do you want to know?

    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.
    I set this up to work with Jabber a while ago.

    You need sendxmpp installed (in the universe repository for Ubuntu Dapper).

    Command definitions:

    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$
            }
    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.

  13. #13

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,869
    Thank Post
    518
    Thanked 2,486 Times in 1,928 Posts
    Blog Entries
    24
    Rep Power
    838

    Re: Installing Nagios... what do you want to know?

    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...

  14. #14

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,717
    Thank Post
    667
    Thanked 1,637 Times in 1,463 Posts
    Rep Power
    424

    Re: Installing Nagios... what do you want to know?

    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

  15. #15

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,869
    Thank Post
    518
    Thanked 2,486 Times in 1,928 Posts
    Blog Entries
    24
    Rep Power
    838

    Re: Installing Nagios... what do you want to know?

    Well that would mean having to maintain an email system that only worked internally - which seems pointless to me.

SHARE:
+ Post New Thread
Page 1 of 4 1234 LastLast

Similar Threads

  1. Nagios Problem
    By sqdge in forum *nix
    Replies: 12
    Last Post: 13th January 2012, 10:11 AM
  2. Nagios Display
    By plexer in forum How do you do....it?
    Replies: 4
    Last Post: 17th July 2007, 07:43 PM
  3. Problems while installing nagios
    By edie209 in forum *nix
    Replies: 11
    Last Post: 17th May 2007, 02:07 PM
  4. Ubuntu Nagios
    By plexer in forum How do you do....it?
    Replies: 2
    Last Post: 10th May 2007, 09:21 PM
  5. Loving Nagios!
    By Ric_ in forum *nix
    Replies: 33
    Last Post: 22nd October 2006, 10:38 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •