checkcounter with accents and coma

Forums NSClient++ support checkcounter with accents and coma

This topic contains 0 replies, has 1 voice, and was last updated by  Legacy Forum User 6 years, 1 month ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #1451

    Hi everybody,
    I’m a french usr of nagios and I try to use checkcounter with check_nt.
    My problem is the accents “é”. I search all the day, and I found this :

    #!/usr/bin/perl

    $response2 = `/usr/bin/check_nt -H $ARGV[0] -p 1248 -v COUNTER -l “\\Mémoire\\% Octets dédiés utilisés”,`;

    chomp $response2;
    ($used) = ($response2);

    print “$response2\n”;

    This works if I convert the file in windows format and ANSI (with notepad++). It works with the accents “é” but not with the coma “,”.
    Do you have any idea ?
    Thk !

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.