Not sure if I'm the only person to have tried this, but in an afternoon of searching this and other sites I haven't managed to find a solution.
I have a windows 2000 server with a functioning cacti install obtained using the Beta installer from this forum (nice job on that by the way)
What I am trying to achieve is to augment the snmp stuff that cacti is returning with some nsclient data.
I have located a windows port of check_nt and can get it to return correct data.
Where i run into problems is with getting cacti to execute and parse the results.
I installed cygwin so that I could play with some of the available perl scripts for checking NT clients. Playing around with one of my scripts I can see that it is querying the server and returning data, but the part of the script that greps the required data out seems to fail.
Here is the nt_cpu.pl which I have added some debuging to:
And here is the result#!/usr/bin/perl
$response = `~/Inetpub/wwwroot/cacti/scripts/check_nt -H $ARGV[0] -v CPULOAD -l 5,15,30 -p 1248`;
print "$response\n";
chomp $response;
($load) = ($response =~ /Load (\d+)\%/);
print "$load\n";
print "end";
Code: Select all
$ perl nt_cpu.pl 192.168.21.200
CPU Load (5 min. 0)
end
Can anyone offer any help?