Using ! in check_command - part 2

Cook, Garry GWCOOK at mactec.com
Fri Jun 18 00:34:46 CEST 2004


 
SNMP checks work for me with a '!' in the community string. Now, I don't remember if I needed to escape it or not, and I can't get to the box to check it right now, so you may need to try it both ways. However, I did NOT put the community string in the services.cfg or checkcommands.cfg. I wanted to be a little bit more safe, so I assigned it to one of the user variables in resource.cfg. I then added this variable (ie. $USER9$) to my check command as an argument. 
 
Whether or not this should really be considered 'safe' might be disputed by some. It's never been compromised and it works in my check commands, so I'm happy.
 
HTH.
-g

	-----Original Message----- 
	From: nagios-users-admin at lists.sourceforge.net on behalf of Michael Eck 
	Sent: Thu 6/17/2004 12:20 PM 
	To: nagios-users 
	Cc: 
	Subject: [Nagios-users] Using ! in check_command - part 2
	
	Original Post:
	Greetings,
	Is there a trick than anybody knows of the use a ! as a character in a
	password for a check_command?
	The obvious problem is that it's also the field delimiter.
	
	
	Ok, I got lots of replies suggesting that I try to escape my !.  I
	didn't mention it in my first post but I did indeed try that.  I tried
	quotes of several varieties with no luck as well.
	
	Has anybody actually gotten this to work or does anybody know that this
	will work or were they just shots in the dark?  Of course I can change
	the community strings but that's just a cop-out.
	
	Any ideas?
	
	
	
	
	----
	Michael Eck
	

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20040617/19d84970/attachment.html>


More information about the Users mailing list