Some services are showing the same

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
arjantent
Posts: 10
Joined: Tue Oct 08, 2013 6:44 am

Some services are showing the same

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Some services are showing the same

Post 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.
arjantent
Posts: 10
Joined: Tue Oct 08, 2013 6:44 am

Re: Some services are showing the same

Post 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!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Some services are showing the same

Post 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
Former Nagios employee
Locked