Page 1 of 1

Some services are showing the same

Posted: Wed Dec 04, 2013 5:07 am
by arjantent
Hello,

Mostly of my services works fine. I use the nsclient++.

But some of them arent defined with the NSclient, so they are showing the same as the localhost i think. Its about these services:

Code: Select all

define service{
        use                             local-service         ; Name of service template to use
        host_name                       Win01 Stream opslag
        service_description             Current Users
        check_command                   check_local_users!20!50
        }


# Define a service to check the number of currently running procs
# on the local machine.  Warning if > 250 processes, critical if
# > 400 users.

define service{
        use                             local-service         ; Name of service template to use
        host_name                       Win01 Stream opslag
        service_description             Total Processes
        check_command                   check_local_procs!250!400!RSZDT
        }

# Define a service to check the load on the local machine.

define service{
        use                             local-service         ; Name of service template to use
        host_name                       Win01 Stream opslag
        service_description             Current Load
        check_command                   check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
}

define service{
        use                             local-service         ; Name of service template to use
        host_name                       Win01 Stream opslag
        service_description             Swap Usage
        check_command                   check_local_swap!20!10
        }

# Define a service to check HTTP on the local machine.
# Disable notifications for this service by default, as not all users may have HTTP enabled.

define service{
        use                             local-service         ; Name of service template to use
        host_name                       Win01 Stream opslag
        service_description             HTTP
        check_command                   check_http
        notifications_enabled           0
        }
I can understand because they dont have like check_nt. I cant find any the commands for those services with check_nt.
Does somebody knows a solution? Now i have the same results at those services at different host ( same results as the localhost)

Sorry for my english. Hope you guys can help.

Re: Some services are showing the same

Posted: Wed Dec 04, 2013 1:16 pm
by slansing
What does your "check_local_users" command definition have defined for it's command_line? If you are not passing NRPE or check_nt to it, then it will check with a local plugin more than likely.

Re: Some services are showing the same

Posted: Thu Dec 05, 2013 4:32 am
by arjantent

Code: Select all

# 'check_local_procs' command definition
define command{
        command_name    check_local_procs
        command_line    $USER1$/check_procs -w   $ARG1$ -c $ARG2$ -s $ARG3$
        }


# 'check_local_users' command definition
define command{
        command_name    check_local_users
        command_line    $USER1$/check_users -w    $ARG1$ -c $ARG2$
        }


# 'check_local_swap' command definition
define command{
        command_name    check_local_swap
        command_line    $USER1$/check_swap  -w   $ARG1$ -c $ARG2$
        }
This is how it looks like.. But i could not find check_nt "commands" for those services. Can you help me with it? Thnx!

Re: Some services are showing the same

Posted: Thu Dec 05, 2013 11:34 am
by tmcdonald
Yea, those are for local checks on the Nagios server.

You'll need to create some new command definitions for the things you want to check on the NSClient host, using check_nt as the command_line plugin

https://www.nagios-plugins.org/doc/man/check_nt.html