Cacti & solaris 8

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

Moderators: Developers, Moderators

Post Reply
olive

Cacti & solaris 8

Post by olive »

Can i install and use cacti on Solaris 8 ??
Thânks
rpolyak
Posts: 7
Joined: Sun Jan 27, 2002 7:00 pm
Contact:

Post by rpolyak »

I have just finished setting up Cacti on Solaris 8. Mind you I am not very fluent with Solaris so, But It seems to be running fine. The ping script does not work. I'm still trying to figure that one out, but it looks like output from Solaris's ping and Linux Ping are completly different.
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

Included default ping.pl script needs to be modified for Solaris. The following one should work for you:
#!/usr/local/bin/perl

if ($ARGV[0]=="x") {
$db = ":0";
$ARGV[0] = 2;
}

$response = `ping -s -v $ARGV[1] 56 $ARGV[0] |grep round-trip| awk '\{print \$5 \}' | awk -F'/' '\{print \$1 \}' | grep -v "Warning"`;
chomp $response;
$response = $response;
print "$response$db";
bulek
bbice
Cacti User
Posts: 71
Joined: Mon May 13, 2002 6:53 pm

Post by bbice »

I also found the net-snmp libraries I'd compiled and then compiled PHP with were causing
trouble for cacti too. The snmp gets were returning strings like:
MIBOID=value

So I had to edit include/snmp_functions.php and tweak the snmp_get and snmp_walk
functions in there to look for the = character and trim off it and everything to the left
of it. 'Course it might just be that there was somethin' I didn't configure quight right
in the net-snmp package I compiled. (shrug) Perhaps there is somewhere there I
could have turned off the = stuff but I got tired of looking for it. :D

Brent
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests