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
check_nwc_health Usage
Re: check_nwc_health Usage
You should be able to run
for the plugin's help output.
Code: Select all
/usr/local/nagios/libexec/check_nwc_health --help
Former Nagios employee
-
- Posts: 5
- Joined: Fri May 09, 2014 4:07 pm
Re: check_nwc_health Usage
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
}
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
}
Re: check_nwc_health Usage
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
-
- Posts: 5
- Joined: Fri May 09, 2014 4:07 pm
Re: check_nwc_health Usage
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$
}
Re: check_nwc_health Usage
I think this recent post explains it well:
http://support.nagios.com/forum/viewtop ... 25#p100225
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