$SERVICEOUT$ inturpreted by perl in misccommands.cfg creating broken host names (check_disk_smb)

Adam Tworkowski atworkowski at masterfile.com
Mon Oct 24 17:37:51 CEST 2005


Hi,

I have an issue with the way mail notifications are being handled from
misccommands.cfg. I am using check_disk_smb.  Perl seems to be parsing
the backslashes in host names.  For example the server path '\\store
\share' will look as follows.  Legible but still missing first
backslash:

WARNING: Only 22.46G (1%) free on \store\share

On the other hand '\\nas\share' will be processed as:

WARNING: Only 22.46G (1%) free on 
as\share

Clearly the '\n' in the name is being processed by perl as a CR.

The affected variable seems to be as below in my misccommands.cfg: 

Additional Info:\n\n$SERVICEOUTPUT$\n\n.

Would anyone know how to fix this.  Thanks in advance.

Adam






-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list