+ Post New Thread
Results 1 to 8 of 8
*nix Thread, [redhat] Nagios Monitoring problem in Technical; Hi my company is currently using Nagios to remotely monitor systems running on the ubuntu os. NRPE was installed in ...
  1. #1

    Join Date
    Oct 2013
    Posts
    4
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    [redhat] Nagios Monitoring problem

    Hi my company is currently using Nagios to remotely monitor systems running on the ubuntu os. NRPE was installed in all of the host machines that are being monitored. There is a new requirement, which is to use the Nagios server to reboot a remote system whenever the company decides or needs to. Has anybody done this before? It must be done using Nagios and/or NRPE. I have been searching the internet for weeks with no luck.

  2. #2
    cpjitservices's Avatar
    Join Date
    Jul 2010
    Location
    Hessle
    Posts
    2,421
    Thank Post
    508
    Thanked 282 Times in 258 Posts
    Rep Power
    81
    I find Zabbix alot easier to manage, configure and setup.

    It has the same monitoring as Nagios.

    Check it out.

    Homepage of Zabbix :: An Enterprise-Class Open Source Distributed Monitoring Solution

  3. #3

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,590
    Thank Post
    109
    Thanked 762 Times in 593 Posts
    Rep Power
    180
    Quote Originally Posted by darylchewdc View Post
    Hi my company is currently using Nagios to remotely monitor systems running on the ubuntu os. NRPE was installed in all of the host machines that are being monitored. There is a new requirement, which is to use the Nagios server to reboot a remote system whenever the company decides or needs to. Has anybody done this before? It must be done using Nagios and/or NRPE. I have been searching the internet for weeks with no luck.
    You will need to write a script with your reboot command in. Then call this script as if it were a check running on the remote host. Of course, the script would only be run manually.

    I'm not sure that using Nagios to do this is ideal though.

  4. #4

    unixman_again's Avatar
    Join Date
    Nov 2011
    Posts
    676
    Thank Post
    26
    Thanked 136 Times in 103 Posts
    Rep Power
    134
    I've done this using Nagios to issue a shutdown -r via ssh

    Also try WebReboot Nagios Plugin - Nagios Exchange (I haven't used this so YMMV).

  5. #5

    Join Date
    Oct 2013
    Posts
    4
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by unixman_again View Post
    I've done this using Nagios to issue a shutdown -r via ssh

    Also try WebReboot Nagios Plugin - Nagios Exchange (I haven't used this so YMMV).
    Hi unixman_again.. thanks for your reply. I just started using Nagios and i did try connecting via ssh. Just to confirm, were you referring to the check_ssh command? i tried using that but i always get as "Connection refused" reply when i try using it.

  6. #6

    Join Date
    Oct 2013
    Posts
    4
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by cpjitservices View Post
    I find Zabbix alot easier to manage, configure and setup.

    It has the same monitoring as Nagios.

    Check it out.

    Homepage of Zabbix :: An Enterprise-Class Open Source Distributed Monitoring Solution
    Hi and thanks for your reply. Unfortunately my company is bent on using Nagios..

  7. #7

    Join Date
    Oct 2013
    Posts
    4
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by Ric_ View Post
    You will need to write a script with your reboot command in. Then call this script as if it were a check running on the remote host. Of course, the script would only be run manually.

    I'm not sure that using Nagios to do this is ideal though.
    i have written the script but stuck at the part where i have to enter the sudo password. I tried using <<password command in the script but it does not work. The terminal still appears and prompts me for the password

  8. #8

    unixman_again's Avatar
    Join Date
    Nov 2011
    Posts
    676
    Thank Post
    26
    Thanked 136 Times in 103 Posts
    Rep Power
    134
    When I did it, I wrote my own script. To execute a script on a remote machine, setup an ssh certificate. Trying to get the root password through isn't easy unless you know Expect (which I do - I used it extensively over the years).

SHARE:
+ Post New Thread

Similar Threads

  1. Nagios monitoring windows services
    By HMCTech in forum *nix
    Replies: 4
    Last Post: 30th March 2012, 05:37 PM
  2. [Gentoo] nagios monitoring 2008r2 core
    By RabbieBurns in forum *nix
    Replies: 3
    Last Post: 14th March 2011, 01:38 PM
  3. Dell E197FP Monitor Problem
    By Dos_Box in forum Hardware
    Replies: 1
    Last Post: 9th March 2010, 02:51 PM
  4. Weird monitor problem
    By sparkeh in forum Hardware
    Replies: 9
    Last Post: 12th June 2008, 10:13 AM

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
  •