Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Post general support questions here that do not specifically fall into the Linux or Windows categories.
Moderators: Developers , Moderators
pdb
Posts: 11 Joined: Wed Mar 23, 2005 6:57 am
Post
by pdb » Wed Mar 23, 2005 7:06 am
Hi,
I'm using the cacti_netscreen.zip file in this thread:
http://forums.cacti.net/viewtopic.php?t ... =netscreen
But I'm having issues 'tail -n 30 /var/log/cacti/poller.log':
Code: Select all
OK u:0.06 s:0.05 r:57.48
OK u:0.06 s:0.05 r:57.48
": Permission deniedpt "
": Permission deniedpt "
": Permission deniedpt "
ERROR: Not enough arguments
OK u:0.06 s:0.05 r:58.49
OK u:0.06 s:0.05 r:58.50
ERROR: Not enough arguments
OK u:0.06 s:0.05 r:58.50
OK u:0.06 s:0.05 r:58.50
OK u:0.06 s:0.05 r:58.50
ERROR: Not enough arguments
OK u:0.06 s:0.05 r:58.50
OK u:0.06 s:0.05 r:58.50
OK u:0.06 s:0.05 r:58.50
03/23/2005 12:56:00 PM - SYSTEM STATS: Time: 59.8055 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 9, Hosts/Process: 9
When I remove the NetScreen all errors disappear to it has to be the NetScreen.
Also when I run 'perl ./netscreen_stats.pl 000.000.000.000 public':
c
Code: Select all
pu1:2 cpu5:2 cpu15:2 memory_allocated:55184944 memoryAvailable:53106368 memoryFragmented:2775 sessionsAllocated:8 sessionsMaximum:2000 sessionsFailed:0
But when I run the script like this './netscreen_stats.pl 000.000.000.000 public':
Does anybody have a clue what might be wrong?
Regards,
Pascal de Bruijn
Regards,
Pascal de Bruijn
TheWitness
Developer
Posts: 17047 Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:
Post
by TheWitness » Wed Mar 23, 2005 9:47 pm
You need to include the "perl ..." before the script name. Unix doesn't know about file type associations from the command line.
TheWitness
pdb
Posts: 11 Joined: Wed Mar 23, 2005 6:57 am
Post
by pdb » Thu Mar 24, 2005 4:19 am
Isn't that what the '#!/usr/bin/perl' line is for?
Anyway, I added perl in front of my 'Data Input Methods -- Input String', but that didn't help, my poller.log still gives me those errors, and the graphs still give me NaN...
The weird thing is that when I run netscreen_stats.pl manually it works great, just the netscreen cacti profile doesn't seem to work as it should...
Regards,
Pascal de Bruijn
pdb
Posts: 11 Joined: Wed Mar 23, 2005 6:57 am
Post
by pdb » Thu Mar 24, 2005 4:40 am
Anyway, isn't there a way to make poller.php be a bit more verbose about what it's doing?
It's quite hard to find the root of the evil with limited verbosity...
Regards,
Pascal de Bruijn
TheWitness
Developer
Posts: 17047 Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:
Post
by TheWitness » Thu Mar 24, 2005 7:04 am
You would think, but no.
TheWitness
Users browsing this forum: No registered users and 5 guests