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.
Anything that you think should be in Cacti.
Moderators: Developers , Moderators
phalek
Developer
Posts: 2838 Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:
Post
by phalek » Thu Sep 16, 2010 3:13 am
ha, forgot about that. you need to add the following line at the very top of the script ( depending where you installed perl to ):
Maher457
Cacti User
Posts: 54 Joined: Thu Jul 29, 2010 3:07 am
Location: Paris France
Post
by Maher457 » Thu Sep 16, 2010 3:31 am
this doesn't resolve my problem
i have this message error when i run the script in the console:
Can't locate LWP/UserAgent.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at proxiedHttpCheck.pl line 2.
BEGIN failed--compilation aborted at proxiedHttpCheck.pl line 2.
any idea?
phalek
Developer
Posts: 2838 Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:
Post
by phalek » Thu Sep 16, 2010 3:36 am
Sure, install the required perl module ( e.g. on CentOS ):
Maher457
Cacti User
Posts: 54 Joined: Thu Jul 29, 2010 3:07 am
Location: Paris France
Post
by Maher457 » Thu Sep 16, 2010 3:49 am
in the console when i run it I have 'U'
hope it works now i will wait and see if Cacti will graph this time
phalek
Developer
Posts: 2838 Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:
Post
by phalek » Thu Sep 16, 2010 3:52 am
did you change the lines
Code: Select all
# Username/Password, for NTLM Auth use the following format
$proxyUsername="DOMAIN\\Username";
$proxyPassword="password";
Maher457
Cacti User
Posts: 54 Joined: Thu Jul 29, 2010 3:07 am
Location: Paris France
Post
by Maher457 » Thu Sep 16, 2010 3:55 am
yeah i change them
but in proxyname i put one slash insteed of the two slash
DOMAIN\Username
because we use this format in my society
i am still having no graph
but now i have no more the old error:
SPINE: Poller[0] Host[248] ERROR: Empty result [website ip adress]: 'perl /var/www/html/scripts/proxiedHttpCheck.pl [proxy IP] 8080 [website ip adress]'
phalek
Developer
Posts: 2838 Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:
Post
by phalek » Thu Sep 16, 2010 3:56 am
you need to have two slasshes as perl removes one anyway ... ( one backslash is a special symbol in perl )
Maher457
Cacti User
Posts: 54 Joined: Thu Jul 29, 2010 3:07 am
Location: Paris France
Post
by Maher457 » Thu Sep 16, 2010 4:04 am
ok i change it but still no value in the graph!!
but no more the error in the cacti log
do i have to do anything to update the graph to use the new script or it will use it automatically?
phalek
Developer
Posts: 2838 Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:
Post
by phalek » Thu Sep 16, 2010 4:06 am
well, first thing is: does the script print out a value now on the CLI or still just a "U" ?
Maher457
Cacti User
Posts: 54 Joined: Thu Jul 29, 2010 3:07 am
Location: Paris France
Post
by Maher457 » Thu Sep 16, 2010 4:18 am
no it prints just a 'U'!!
phalek
Developer
Posts: 2838 Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:
Post
by phalek » Thu Sep 16, 2010 4:35 am
ok, try using "http://<ip>" for the url then ... seems like it needs this syntax
Maher457
Cacti User
Posts: 54 Joined: Thu Jul 29, 2010 3:07 am
Location: Paris France
Post
by Maher457 » Thu Sep 16, 2010 4:58 am
when i run the script it took some minutes and it printed 'U'
and now when i changed this when i wnat to connect to cacti via the navigator am not abel the page takes too much time and doent open yet
what is happened?what should i do now?
Maher457
Cacti User
Posts: 54 Joined: Thu Jul 29, 2010 3:07 am
Location: Paris France
Post
by Maher457 » Thu Sep 16, 2010 5:02 am
sorry it was a network problem!!
but i'm still having the same thing
Maher457
Cacti User
Posts: 54 Joined: Thu Jul 29, 2010 3:07 am
Location: Paris France
Post
by Maher457 » Thu Sep 16, 2010 5:08 am
i'm not sure the slowliness is from the netwrok ..It's only Cacti that's slow!!and now am not able to open it
what should i do?
phalek
Developer
Posts: 2838 Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:
Post
by phalek » Thu Sep 16, 2010 5:13 am
do a
from the command line and check if there are numerous pollers or perl scripts running.
Users browsing this forum: No registered users and 0 guests