[omd-users] add NRPE check to OMD

Michael Nieberg m.nieberg at gmx.de
Sat May 28 20:38:06 CEST 2011


Hi Perry,

to check something via nrpe, you should have a command like
#  ~/etc/nagios/conf.d/mycommands.cfg
define command{
	command_name	check_nrpe
	command_line	$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$
}


define service{
	service_description	NT::MSSQL::mycheck
	check_command		check_nrpe!nrpe_check_mssql
	hostgroup_name	      MyWindowsBoxes
	...
}


The command "nrpe_check_mssql" is passed remotely to the target machine (via
check_nrpe).
On the target Machine you should have
- nrpe running
- a valid nrpe-config which defines nrpe_check_mssql
  (and calls check_mssql_nt_v01)
- the Check-Program check_mssql_nt_v01

Bye
M.Nieberg
http://kenntwas.de (only german)

-----Ursprüngliche Nachricht-----
Von: Michael Nieberg [mailto:m.nieberg at gmx.de] 
Gesendet: Samstag, 28. Mai 2011 20:14
An: 'omd-users at lists.mathias-kettner.de'
Betreff: AW: [omd-users] add NRPE check to OMD

Hi Perry,

Nagios knows some internal Variables (Macros). The are defined in
~/etc/nagios/resource.cfg

############################################
# OMD settings, please use them to make your config
# portable, but dont change them
$USER1$=/omd/sites/mysite/lib/nagios/plugins
$USER2$=/omd/sites/mysite/local/lib/nagios/plugins
$USER3$=mysite
$USER4$=/omd/sites/mysite
############################################

# definition of a 'standard' command which comes with omd
#  ~/etc/nagios/conf.d/commands.cfg
define command {
 command_name    check-host-alive
 command_line    $USER1$/check_icmp -H $HOSTADDRESS$ -w 3000.0,80% -c
5000.0,100% -p 5
}

To use your own (non-standard) commands.
Copy them to ~/local/lib/nagios/plugins/
Use the MACRO $USER2$ to address them in your nagios-config.

#  ~/etc/nagios/conf.d/mycommands.cfg
define command {
 command_name    check-something
 command_line    $USER2$/my_special_check --password $USER5$ -H
$HOSTADDRESS$ -w 80 -c 90
}

Bye
Michael
http://kenntwas.de (only german)

-----Ursprüngliche Nachricht-----
Von: omd-users-bounces at lists.mathias-kettner.de
[mailto:omd-users-bounces at lists.mathias-kettner.de] Im Auftrag von Penny
Rand
Gesendet: Samstag, 28. Mai 2011 19:08
Cc: omd-users at lists.mathias-kettner.de
Betreff: Re: [omd-users] add NRPE check to OMD

I do see that OMD has the <site>/lib/nagios/plugins/check_nrpe. The
remainder of your instructions are not clear to me.
"can be reference by the $USER1$" ??
the check_mssql_nt_v01 package contains an executable with instructions for
switches. It looks to me like it should be installed on the node that is
getting monitored and that OMD/check_nrpe will call the exe and report the
results. That's my guess but I'm stuck for how to do it.
thanks!

On May 25, 2011, at 9:14 PM, Joerg Linge wrote:

> Penny Rand schrieb:
>> Can anyone give me the lowdown on adding a check plugin to my OMD
install?
>> Specifically I want to use the check_mssql_nt_v01 check.
>> thanks for any help.
> 
> So you need check_nrpe on the OMD side.
> check_nrpe is located on <site>/lib/nagios/plugins/check_nrpe and can be
referenced by the $USER1$ Nagios macro.
> 
> $USER2$ links to <site>/local/lib/nagios/plugins which can be used to hold
your own plugins outside of OMD control.
> 
> Joerg
> _______________________________________________
> omd-users mailing list
> omd-users at lists.mathias-kettner.de
> http://lists.mathias-kettner.de/mailman/listinfo/omd-users

_______________________________________________
omd-users mailing list
omd-users at lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users




More information about the omd-users mailing list