/usr/local/cacti/scripts/... no such file

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
pdb
Posts: 11
Joined: Wed Mar 23, 2005 6:57 am

/usr/local/cacti/scripts/... no such file

Post by pdb »

Hi,

I've been trying to monitor my netscreen, and I have some issues, I get this in my logfile:

Code: Select all

sh: line 1: /usr/local/cacti/scripts/netscreen_stats.pl: No such file or directory
sh: line 1: /usr/local/cacti/scripts/netscreen_stats.pl: No such file or directory
sh: line 1: /usr/local/cacti/scripts/netscreen_stats.pl: No such file or directory
OK u:0.00 s:0.00 r:1.29
OK u:0.00 s:0.00 r:1.29
OK u:0.00 s:0.00 r:1.29
OK u:0.00 s:0.01 r:1.29
OK u:0.00 s:0.01 r:1.29
ERROR: Not enough arguments
OK u:0.00 s:0.01 r:1.29
ERROR: Not enough arguments
OK u:0.00 s:0.01 r:1.29
ERROR: Not enough arguments
OK u:0.00 s:0.01 r:1.29
OK u:0.00 s:0.01 r:1.29
OK u:0.00 s:0.01 r:1.29
OK u:0.00 s:0.01 r:1.29
OK u:0.00 s:0.01 r:1.29
04/25/2005 11:50:01 AM - SYSTEM STATS: Time: 1.3722 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 3, Hosts/Process: 3
Note that I've already changed:
/usr/local/cacti/scripts/netscreen_stats.pl <ip>
to:
perl <path_cacti>/scripts/netscreen_stats.pl <ip>
in the Data Input Method screen.

(I have Cacti installed in /srv/www/htdocs/cacti/, on SLES9)

Any clue why cacti still uses the old path? where is that path stored? in a text file? in the mysql db?

Also any clue what this might be?:
ERROR: Not enough arguments
Regards,
Pascal de Bruijn
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Check out the settings table in the cacti database. There is a path there you will need to alter.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
pdb
Posts: 11
Joined: Wed Mar 23, 2005 6:57 am

Post by pdb »

Hi,

Thanks for the reply, but I can't find it...
There's the Path's section with the following items:
- snmpwalk Binary Path
- snmpget Binary Path
- RRDTool Binary Path
- PHP Binary Path
- Cacti Log File Path
- Poller Path

Nothing about a script path or a home/root path for cacti...

Regards,
Pascal de Bruijn
Regards,
Pascal de Bruijn
pdb
Posts: 11
Joined: Wed Mar 23, 2005 6:57 am

Post by pdb »

Hmmm,

Now I tired the .zip posted later in this thread:
http://forums.cacti.net/viewtopic.php?t ... =netscreen

Seems to work now...

Thanks anyway,
Pascal de Bruijn
Regards,
Pascal de Bruijn
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests