NSClient++ Help (#1) - Backslash (#27) - Message List
In the Nagios CGI I get: OK: C:\: 249G. In the E-mail notification I get: OK: C:. It drops everything beginning with the first backslash. I assume that the backslash is a special character and therefore blocked at some point (when assigned to $SERVICEOUTPUT$, or when read from it). Do others have this too? Is there anything to do about it? Convince it to use it? Change or remove the backslash?
Thanks.
Dovid
-
Message #36
Try without the backslash or maybe by putting a second one which would cancel the meaning of the special caracter...
nagiosadmin07/16/07 16:53:34 (6 years ago)-
Message #67
I don't think you can drop the slash "\" it is part of the string returned by the client when it returns it's results to Nagios. I have the same issue and solved it by changing from the NSClientListner to the 'checkdrivesize' portion of the CheckDisk module. You will get nearly the same output minus any slashes. Worked for me, good luck.
RogerGlass10/17/07 23:37:26 (6 years ago)-
Message #68
Since the "email" is sent via a shell "command" I would check that command and see that the slashes are not lost there, try using ':s around the argument or some such. But if I understand correctly this might be a "problem" more with nagios then with the monitoring agent (you can also of course use aliases to "name" the drives properly.)
MickeM
MickeM10/18/07 09:03:40 (6 years ago)
-
-








