<div>Hi,</div>
<div> </div>
<div>I am not sure what Windows Plugin you are using with Check_nt,</div>
<div>this may not be completly a problem with check_nt</div>
<div> </div>
<div>But NC_NEt has a new update that deals with NON standard ASKII characters, (the problem you posed) </div>
<div>Email me direct and I will send you a test copy of it(if you want to try it), I need a little more testing before anouncing a release</div>
<div> </div>
<div>Tony (Author of NC_NEt)<br><br></div>
<div class="gmail_quote">On Wed, Jun 18, 2008 at 8:58 AM, NAYRAT Adrien <<a href="mailto:adrien.nayrat@brest-metropole-oceane.fr">adrien.nayrat@brest-metropole-oceane.fr</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>Hello,<br><br>I have a problem with the check_nt plugin, with the counter variable.<br>When the name of the counter contain a coma "," check_nt use the text after the coma as a description :<br>
For example :<br>The counter is :<br> \Disque physique(_Total)\Lectures disque, octets/s<br><br>My command line is :<br> ./check_nt -H hcu11 -p 1248 -v COUNTER -s "public" -l "\\Disque physique(_Total)\\Lectures disque, octets/s"<br>
<br>I modified the sources, and I had some printf:<br><br><br>Here ==>> printf ("\nvalue list : %s\n",value_list);<br> if (value_list == NULL)<br> output_message = strdup (_("No counter specified"));<br>
else<br> ........<br> else if ((counter_unit == NULL) && (description != NULL))<br> {<br>Here ==>> printf("\ncounter_unit %s, description %s\n",counter_unit,description);<br>
output_message = strdup (_("No unit counter specified"));<br> }<br> if (allRight)<br> {.......<br>
<br><br>And the result of the command line is :<br> m9427:/usr/lib/nagios/plugins/libexec# ./check_nt -H hcu11 -p 1248 -v COUNTER -s "public" -l "\\Disque physique(_Total)\\Lectures disque, octets/s"<br>
<br> value list : \Disque physique(_Total)\Lectures disque, octets/s<br><br> counter_unit (null), description octets/s<br> No unit counter specified<br><br><br>I also try with<br> ./check_nt -H hcu11 -p 1248 -v COUNTER -s "public" -l "\\Disque physique(_Total)\\Lectures disque\, octets/s"<br>
The result is the same.<br><br><br>I hope we will find a solution.<br>PS : Before this problem I have had problems with the accents "é" solved by using a perl script :<br> #!/usr/bin/perl<br><br> $response2 = `/usr/lib/nagios/plugins/libexec/check_nt -H $ARGV[0] -p 1248 -v COUNTER -s "public" -l "\\Disque physique(_Total)\\Lectures disque\\, octets/s"`;<br>
chomp $response2;<br> ($used) = ($response2);<br><br> print "$response2\n";<br><br><br>Thanks you for your help, I'm a french user of nagios ;)<br><br><br>Adrien NAYRAT<br>Apprenti Ingénieur Réseaux et Télécommunications<br>
DIT - Brest-Métropole-Océane<br>6, Boulevard de l'Europe<br>Tel/fax 02.98.34.30.19<br><a href="mailto:adrien.nayrat@brest-metropole-oceane.fr">adrien.nayrat@brest-metropole-oceane.fr</a><br><br>-------------------------------------------------------------------------<br>
Check out the new SourceForge.net Marketplace.<br>It's the best place to buy or sell services for<br>just about anything Open Source.<br><a href="http://sourceforge.net/services/buy/index.php" target="_blank">http://sourceforge.net/services/buy/index.php</a><br>
_______________________________________________<br>Nagiosplug-help mailing list<br><a href="mailto:Nagiosplug-help@lists.sourceforge.net">Nagiosplug-help@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a><br>
::: Please include plugins version (-v) and OS when reporting any issue.<br>::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br>