Page 1 of 1

Nagios server statistics

Posted: Tue Apr 16, 2019 4:14 am
by RIDS_I2MP
Hello Team,

Can you please let us know if there is any way to monitor the Nagios XI Server statistics?

We want to monitor Nagios XI Server statistics through Nagios itself and we should get alerts for the same in case of issues.
Also, please let us know the default threshold values for those statistics.

I am attaching the screen shot here for the reference.

Re: Nagios server statistics

Posted: Tue Apr 16, 2019 10:03 am
by lmiltchev
At least a couple of these stats are already monitored under localhost, e.g. "Current Load", and "Swap Usage". You could download some 3rd party plugins from the Nagios Exchage, and set up a few more services on localhost.

Here's some "example" configs:

Code: Select all

define service {
    host_name              localhost
    service_description    Current Load
    use                    local-service
    check_command          check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
    ...
    register               1
}

define service {
    host_name                   localhost
    service_description         CPU Stats
    use                         local-service    
    check_command               check_linux_stats.pl!-C -w 90 -c 95 -s 5
    ...
    register                    1
}

define command {
    command_name    check_linux_stats.pl
    command_line    $USER1$/check_linux_stats.pl $ARG1$
}

define service {
    host_name                   localhost
    service_description         Memory
    use                         xiwizard_generic_service
    check_command               check_mem!-f -C -w 10 -c 5
    ...
    register                    1
}

define command {
    command_name    check_mem
    command_line    $USER1$/check_mem.pl $ARG1$
}

define service {
    host_name              localhost
    service_description    Swap Usage
    use                    local-service
    check_command          check_local_swap!20!10
    ...
    register               1
}
You could download the check_linux_stats.pl and check_mem.pl plugins from here:

https://exchange.nagios.org/directory/P ... ts/details

https://github.com/justintime/nagios-pl ... eck_mem.pl

Our documentation on managing plugins in Nagios XI can also be helpful while testing your plugins from the command line, setting up new commands, and services:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Let us know if this helped. Thank you!