Update of datasource

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

Moderators: Developers, Moderators

Post Reply
rpolyak
Posts: 7
Joined: Sun Jan 27, 2002 7:00 pm
Contact:

Update of datasource

Post by rpolyak »

Hi,

I'm fairly new to Cacti, Most functions are working, but I have setup Cacti on Solaris 8, PHP 4.1.2, Apache 1.34. I have modified the ping.pl script as per anoter post. but I'm haveing a problem updating the data source.

When looking at the datasource I get.

/usr/local/mrtg-2/pinger/mrtg-ping-probe 155.65.210.15
/usr/local/rrdtool/bin/rrdtool update /var/apache/htdocs/cacti/rra/ping_equant.rrd --template ping_equant:ping_equant N:U:1891
1275

I would assume that the U is were I would need the data? Could someone help? Thanks
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

Can you check the output of your modified ping script? Go to "Cron printout" Cacti option and click "Show output". Maybe the script does not work as it should (I don't have access to Solaris 8 so I checked this only on SunOS 2.6).

Regards,
bulek
rpolyak
Posts: 7
Joined: Sun Jan 27, 2002 7:00 pm
Contact:

Post by rpolyak »

If I do the Cron Show output it does not return a vaule. it stays blank. If I run the command manually it gives me the result that I would like
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

Cron uses its own environment variables (see manpage). Maybe ping, grep or awk is not found because of not correct PATH? Try to use full paths to these commands in ping script file.

Also your DS contains two values ping_equant:ping_equant instead of one. Maybe try to recreate the DS.
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

What is the output when you run the following command:

Code: Select all

/usr/local/mrtg-2/pinger/mrtg-ping-probe 155.65.210.15
According to your rrdtool update commands it looks like this script expects 2 values to be returned, is this the case? If so, the two outputs share the name 'ping_equant', which will not work.

Double check the data input source and make sure only one item is an 'Output' (that is of course if you should only get one value back from this script).

-Ian
rpolyak
Posts: 7
Joined: Sun Jan 27, 2002 7:00 pm
Contact:

DataSource

Post by rpolyak »

The problem I'm noticing is that. The ping script is working. Runinng it manual works, But the data is not being returned to Cacti.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest