Page 1 of 1

Nagios Feature

Posted: Mon Sep 21, 2015 10:36 am
by lafargeuser
How can I achieve below requirement in XI
Automatic and User performed action for event generated in the Nagios (example: If any services went down on a system Nagios event should restart the service automatically or User performed)

·         Instruction area for each Events in the Nagios (Instruction text for event to get more details )

·         Drill down the Performance Usage to understand the exact issue.(example CPU Utilization Drill down to Process table to identify the exact process which was utilizing the CPU during the window.)

·         User access control on Nagios console for end user.

·         Event Correlation to suppress duplicate events and Auto acknowledge on Nagios.

 

Automatic and User performed action for event generated in the Nagios (example: If any services went down on a system Nagios event should restart the service automatically or User performed)

·         Instruction area for each Events in the Nagios (Instruction text for event to get more details )

·         Drill down the Performance Usage to understand the exact issue.(example CPU Utilization Drill down to Process table to identify the exact process which was utilizing the CPU during the window.)

·         User access control on Nagios console for end user.

·         Event Correlation to suppress duplicate events and Auto acknowledge on Nagios.

 

tomatic and User performed action for event generated in the Nagios (example: If any services went down on a system Nagios event should restart the service automatically or User performed)

·         Instruction area for each Events in the Nagios (Instruction text for event to get more details )

·         Drill down the Performance Usage to understand the exact issue.(example CPU Utilization Drill down to Process table to identify the exact process which was utilizing the CPU during the window.)

·         User access control on Nagios console for end user.

·         Event Correlation to suppress duplicate events and Auto acknowledge on Nagios.

 

Re: Nagios Feature

Posted: Mon Sep 21, 2015 12:45 pm
by jdalrymple
A lot to address here. I'll try my best:
lafargeuser wrote:Instruction area for each Events in the Nagios (Instruction text for event to get more details )
https://assets.nagios.com/downloads/nag ... ponent.pdf
lafargeuser wrote:Drill down the Performance Usage to understand the exact issue.(example CPU Utilization Drill down to Process table to identify the exact process which was utilizing the CPU during the window.)
https://support.nagios.com/forum/viewto ... op#p144638
lafargeuser wrote:User access control on Nagios console for end user.
https://assets.nagios.com/downloads/nag ... Rights.pdf
lafargeuser wrote:Event Correlation to suppress duplicate events and Auto acknowledge on Nagios.
There is no actual correlation engine (I've discussed this internally with staff and consider it to be perhaps a useful feature to put into fusion) but some notification suppression can be dealt with pretty simply by implementing host & service dependencies and parent relationships properly.

Re: Nagios Feature

Posted: Tue Sep 22, 2015 1:17 am
by lafargeuser
Seems, I dont have any require priviledge to open this link

https://support.nagios.com/forum/viewto ... op#p144638

Re: Nagios Feature

Posted: Tue Sep 22, 2015 10:44 am
by jdalrymple
I apologize for that... posting customer links in the general forum is definitely useless. The information at that link is certainly something I can share though:
lmiltchev wrote:Here's one one you can do it. I have a host that I am monitoring via NRPE. I set up the following command on the remote box (client):

Code: Select all

command[check_top]=top -b -n 1
and restarted xinetd:

Code: Select all

service xinetd restart
I made sure it works from the command line on the Nagios XI server:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H x.x.x.x -c check_top
top - 13:53:09 up  1:01,  1 user,  load average: 1.17, 1.15, 1.69
Tasks: 177 total,   3 running, 174 sleeping,   0 stopped,   0 zombie
Cpu(s): 13.7%us, 10.0%sy,  0.0%ni, 53.0%id, 22.2%wa,  0.3%hi,  0.8%si,  0.0%st
Mem:   4019476k total,  1057168k used,  2962308k free,   187104k buffers
Swap:  2064380k total,        0k used,  2064380k free,   341756k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 1078 root      20   0 34152  14m 3472 R 15.7  0.4   0:07.80 ncpa_posix_list
 1833 root      20   0 47864 4752 2704 S  2.0  0.1   0:30.68 fprobe
26350 nagios    20   0 12240 3632 2520 S  2.0  0.1   0:00.01 sendmail
27007 nagios    20   0  2696 1064  784 R  2.0  0.0   0:00.01 top
    1 root      20   0  2900 1416 1204 S  0.0  0.0   0:02.30 init
    2 root      20   0     0    0    0 S  0.0  0.0   0:00.00 kthreadd
    3 root      RT   0     0    0    0 S  0.0  0.0   0:00.90 migration/0
    4 root
I put the command in a bash shell script, called "top.sh" in the "libexec" directory:

Code: Select all

[root@testbox libexec]# pwd
/usr/local/nagios/libexec
[root@testbox libexec]# cat top.sh
#!/bin/bash

/usr/local/nagios/libexec/check_nrpe -H x.x.x.x -c check_top
exit 0
I added the command (script) to the "Actions" component:

Admin->Manage Components->Actions->Edit Settings
example01.PNG
and clicked on "Apply Settings".

Now, when I click on my host under "Home->Host Detail", I can see the "Top" link under "Quick Actions":
example02.PNG
When I click on it, I can see the top output:
example03.PNG

Re: Nagios Feature

Posted: Thu Sep 24, 2015 7:06 am
by lafargeuser
Here, can I use Nagios Reactor ?

Re: Nagios Feature

Posted: Thu Sep 24, 2015 9:29 am
by hsmith
Reactor should work well if you're looking for something to react to certain events. Have a read through this: https://www.nagios.com/products/nagios- ... use-cases/