check_nwc_health Usage

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
chethankrish
Posts: 5
Joined: Fri May 09, 2014 4:07 pm

check_nwc_health Usage

Post by chethankrish »

Hi All,

I am very new to Nagios and can somebody help me how to use check_nwc_health plugin. I have installed the same under "/usr/local/nagios/libexec".

I would have to use this to monitor uptime and few other parameters in Cisco Switch.

Thanks in Advance
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: check_nwc_health Usage

Post by tmcdonald »

You should be able to run

Code: Select all

/usr/local/nagios/libexec/check_nwc_health --help
for the plugin's help output.
Former Nagios employee
chethankrish
Posts: 5
Joined: Fri May 09, 2014 4:07 pm

Re: check_nwc_health Usage

Post by chethankrish »

Hi,

I have run that, but i would like to know how to call this command as a service for the below host

define hostgroup{
hostgroup_name basefarm
alias Basefarm
}

define host{
use generic-switch
host_name OSL3-CORESWITCH
alias Juniper Core Switch in OSL3(ORK-OSL3-CORESW1)
address 192.168.1.1
hostgroups basefarm
}
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: check_nwc_health Usage

Post by tmcdonald »

I would read over our Nagios Core service monitoring help doc. It shouldn't be too different from configuring any other check.
Former Nagios employee
chethankrish
Posts: 5
Joined: Fri May 09, 2014 4:07 pm

Re: check_nwc_health Usage

Post by chethankrish »

tmcdonald wrote:I would read over our Nagios Core service monitoring help doc. It shouldn't be too different from configuring any other check.

Thanks for directing me to this. Can you please help me understand where are the variables( $USER1$, $ARG1$, $ARG2$, $ARG3$) defined in Nagios, for the below command ?

define command{
command_name check_local_disk
command_line $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
}
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: check_nwc_health Usage

Post by tmcdonald »

I think this recent post explains it well:

http://support.nagios.com/forum/viewtop ... 25#p100225
millisa wrote:These two pages of the documentation cover what you are asking:
Understanding Macros and How THey Work
Standard Macros in Nagios

Generally, the $USER#$ are defined in resources.cfg (at least that's where you'd normally put them). They are for things that are specific to your environment (USER1 typically is the location of your plugins). I like to put things in there like snmp community strings, an Identifier for this nagios system to use in the notification commands, and sometimes a user/password.

$ARG#$ are command argument macros - you set them in your service definition (the things you are trying to do checks for).
Former Nagios employee
Locked