Nagios server statistics

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Nagios server statistics

Post 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.
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios server statistics

Post 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked