Page 1 of 1

Parsing Nagios Command Argument

Posted: Mon Mar 06, 2017 3:14 pm
by Pradeeps
Folks,

I am trying to monitor the esxi server through SNMP. The existing setoup is monitoring the management IP address where am trying to add the check for iDRAC (Different IP from management). Below is the command I use,
$USER1$/check_snmp -m all -H $ARG1$ -C opennms-Priv -P 2c -o .1.3.6.1.4.1.674.10892.5.2.3.0 -s "ok(3)" -l "Overall Storage Status :"
Over there when I add the IP address to "ARG1", its making it global irrespective to the specific host.

For example, if am giving ARG1 as iDRAC IP of HOST-A, the same iDRAC IP is getting assigned for HOST-B, HOST-C...etc. what should I change to make it not global ?

Re: Parsing Nagios Command Argument

Posted: Mon Mar 06, 2017 4:44 pm
by avandemore
You'll want to use a host/service specific macro like $HOSTNAME$. See the following document:

https://assets.nagios.com/downloads/nag ... olist.html