plethora of windows nsclient scripts
Moderators: Developers, Moderators
IT should work with nsclient++, however people are moving away from this to work with the direct WMI polling now available from Linux machines, thus, I suspect, this "thread" is being ovelooked.
No longer a n00by, probably, by now an 0ldby
Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
Hi,
1. I import templates and scripts.
2. my cacti directory is directly /var/www
3. I modify the script like that:
4. test this script :
Here is the debug output:
1. I import templates and scripts.
2. my cacti directory is directly /var/www
3. I modify the script like that:
Code: Select all
$response = `/var/www/scripts/check_nt -H $ARGV[0] -s 5502 -p 5248 -v CPULOAD -l 5,15,30`;
chomp $response;
($load) = ($response =~ /Load (\d+)\%/);
root@cacti:/var/www/scripts# perl nt_cpu.pl 10.1.1.36
61
print "$load\n";
But there is no graph.root@cacti:/var/www/scripts# perl nt_cpu.pl 10.1.1.36
66
Here is the debug output:
What is the problem?11/23/2009 10:55:09 AM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start=-86400 --end=-300 --title="FEYIM1 - CPU Load" --rigid --base=1000 --height=120 --width=500 --upper-limit=100 --lower-limit=0 --vertical-label="CPU Load %" --slope-mode --font TITLE:10: --font AXIS:6: --font LEGEND:8: --font UNIT:6: DEF:a="/var/www/rra/feyim1_cpu_load_21.rrd":cpu_load:AVERAGE --watermark "Astron Ag veWeb Teknolojileri" AREA:a#005199FF:"CPU Load\n" GPRINTLAST:"Current\:%8.2lf%s" GPRINTMIN:"Minimum\:%8.2lf%s" GPRINTAVERAGE:"Average\:%8.2lf%s" GPRINTMAX:"Maximum\:%8.2lf%s"
11/23/2009 10:55:08 AM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start=-86400 --end=-300 --title="FEYIM1 - CPU Load" --rigid --base=1000 --height=120 --width=500 --upper-limit=100 --lower-limit=0 --vertical-label="CPU Load %" --slope-mode --font TITLE:10: --font AXIS:6: --font LEGEND:8: --font UNIT:6: DEF:a="/var/www/rra/feyim1_cpu_load_21.rrd":cpu_load:AVERAGE --watermark "Astron Ag veWeb Teknolojileri" AREA:a#005199FF:"CPU Load\n" GPRINTLAST:"Current\:%8.2lf%s" GPRINTMIN:"Minimum\:%8.2lf%s" GPRINTAVERAGE:"Average\:%8.2lf%s" GPRINTMAX:"Maximum\:%8.2lf%s"
Re: plethora of windows nsclient scripts
still i cannot find why graph stops when my poller is spine...
Re: plethora of windows nsclient scripts
I everybody,
i use cacti cacti-0.8.7g on Linux server . I want to graph AspWaitingTime on Windows server 2008 . I think i can do that with your template : Windows - ASP - Request Wait Time and nt_perfom.pl script.
I respect the installation/configuration procedure ,but my graphs on cacti stay empty .
I don't know how i can do to resolve this problem.
Any ideas ?
Thx
sorry for my english
i use cacti cacti-0.8.7g on Linux server . I want to graph AspWaitingTime on Windows server 2008 . I think i can do that with your template : Windows - ASP - Request Wait Time and nt_perfom.pl script.
I respect the installation/configuration procedure ,but my graphs on cacti stay empty .
I don't know how i can do to resolve this problem.
Any ideas ?
Thx
sorry for my english
Re: plethora of windows nsclient scripts
I think
i think the problem come from check_nt , but iam no sure , somebody use AspWaitingTime graph ?
Code: Select all
#!/usr/bin/perl -w
use strict;
my $cmd = qq!/var/www/html/cacti/scripts/check_nt -H $ARGV[0] -p 1248 -v COUNTER -l "! . $ARGV[1] . '"';
my $response = `$cmd`;
chomp $response;
print "$response\n";
Re: plethora of windows nsclient scripts
Do u use 64 bit nsclient++ on windows side, if your 2008 server is 64-bit?
Do u have a password on nsc.ini on windows side?
Do u have a configuration about alowed hosts in nsc.ini file and is this host your cacti server?
Pls check those.
Do u have a password on nsc.ini on windows side?
Do u have a configuration about alowed hosts in nsc.ini file and is this host your cacti server?
Pls check those.
Who is online
Users browsing this forum: No registered users and 2 guests