plethora of windows nsclient scripts

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

argon0
Cacti User
Posts: 460
Joined: Fri Mar 12, 2004 1:22 pm

Post by argon0 »

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....
chet
Posts: 41
Joined: Mon Feb 09, 2009 12:49 pm

Post by chet »

Thanks for the answer, I will check out the thread WMI then

Thanks

Chet
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

Hi,
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";
4. test this script :
root@cacti:/var/www/scripts# perl nt_cpu.pl 10.1.1.36
66
But there is no graph.
Here is the debug output:
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" GPRINT:a:LAST:"Current\:%8.2lf%s" GPRINT:a:MIN:"Minimum\:%8.2lf%s" GPRINT:a:AVERAGE:"Average\:%8.2lf%s" GPRINT:a:MAX:"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" GPRINT:a:LAST:"Current\:%8.2lf%s" GPRINT:a:MIN:"Minimum\:%8.2lf%s" GPRINT:a:AVERAGE:"Average\:%8.2lf%s" GPRINT:a:MAX:"Maximum\:%8.2lf%s"
What is the problem?
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

Does anybody have an idea???
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

I very sad really. I need to solve this problem :S
When I use cmd.php as poller, rra file is created. But in spine.. not!
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Are you using the full path to PERL ?
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

No but...
I can try now..
then i prompt here..
...
NOT WORKS...
I dont know which user runs spine, but I think that spine cant run these scripts.
Because when I set up cmd.php as poller, there is no problem.
Any idea???
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

Any help about this?
wiam
Posts: 1
Joined: Mon Aug 16, 2010 6:09 am

A suitable regular expression

Post by wiam »

...
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Re: plethora of windows nsclient scripts

Post by TFC »

still i cannot find why graph stops when my poller is spine...
nneka
Posts: 2
Joined: Fri Jun 03, 2011 9:30 am
Location: FRANCE

Re: plethora of windows nsclient scripts

Post by nneka »

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
nneka
Posts: 2
Joined: Fri Jun 03, 2011 9:30 am
Location: FRANCE

Re: plethora of windows nsclient scripts

Post by nneka »

I think

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";
i think the problem come from check_nt , but iam no sure , somebody use AspWaitingTime graph ?
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Re: plethora of windows nsclient scripts

Post by TFC »

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.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests