Login

Home Forum
Welcome, Guest
Please Login or Register.    Lost Password?

error with nrpe service checks "Invalid host name"
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: error with nrpe service checks "Invalid host name"
#251
error with nrpe service checks "Invalid host name" 1 Year, 8 Months ago Karma: 0
Having a problem with Nagios reporting the following error:
Invalid host name 'dueaf'

The command for invoking nrpe:
/usr/lib/nagios/plugins/check_nrpe -H $HOSTNAME$

I noted that I used $USER1$ in the past so the command looked like:
$USER1$/check_nrpe -H $HOSTNAME$

I don't know where to define $USER1$?

But it still should take the IP Address and not hostname??
eflinton
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#252
Re:error with nrpe service checks "Invalid host name" 1 Year, 8 Months ago Karma: 2
Hi $USER1$ should be defined in resource.cfg in your nagios configuration directory. $HOSTNAME$ will only work with correct dns search configuration. Try using the full qualified domain name or the IP-Address by setting $HOSTADDRESS$ instead.

You can read more about predefined macros at: nagios.sourceforge.net/docs/3_0/macrolist.html#hostname
rouven
NagiosQL Developer
Posts: 255
graphgraph
User Offline Click here to see the profile of this user
47315142 Gender: Male NagiosQL Location: Hamburg, Germany Birthday: 03/19
The administrator has disabled public write access.
 
Go to topPage: 1