Hi,
it seems that many people have a problem creating graphs for measuring latency times with ping using the script ping.pl.
I am one of them.
After struggling for hours I have found out that using cmd.php to gather the data and do the 'rrdtool update' does work but trying the same with cactid does not!
I am using cacti 0.85a on a FreeBSD box. When I activate the cmd.php call in the crontab of user root everything works fine. When activating the call of cactid instead nothing happens at all.
I did 'cactid |grep ping' and could not find anything. It seems as if cactid does not even consider that it´s supposed to do something with the rrd.
I have checked the permissions and the paths and I´m really stuck here.
Anyone have an idea?
Cheers,
kwaH
P.S.: the problem is only with "Unix Host - Ping". Everything SNMP related works fine!
Ping possible with cmd.php - not with cactid?
Moderators: Developers, Moderators
After debugging the SQL queries I guess the reason for cactid not doing a ping is as follows:
cactid does use the host id to decide what devices to query or which information to gather.
The "ping' graphs that I had configured had a host entry of "none" and thus were not relevant for 'cactid'.
If I am right this would also mean that cactid can not be used to trigger *any* script based data collection that is not associated with a host.
So if you want to be able to do an icmp echo latency graph you are forced to use cmd.php - which on the other hand is not fast enough for hundreds of targets.
I might be mistaken but if I am not this kind of sucks.
Could somebody please comment on this?
Cheers,
kwaH
cactid does use the host id to decide what devices to query or which information to gather.
The "ping' graphs that I had configured had a host entry of "none" and thus were not relevant for 'cactid'.
If I am right this would also mean that cactid can not be used to trigger *any* script based data collection that is not associated with a host.
So if you want to be able to do an icmp echo latency graph you are forced to use cmd.php - which on the other hand is not fast enough for hundreds of targets.
I might be mistaken but if I am not this kind of sucks.
Could somebody please comment on this?
Cheers,
kwaH
i believe you are right, i spent a couple of hours yesterday trying to make cactid pick up some 'none' hosts (to run some perl scripts), and it just would not run the scripts (even though the logs showed that it was running them)... i changed to cmd.php and it worked instantly.kwaH wrote: So if you want to be able to do an icmp echo latency graph you are forced to use cmd.php - which on the other hand is not fast enough for hundreds of targets.
I might be mistaken but if I am not this kind of sucks.
Could somebody please comment on this?
Cheers,
kwaH
bit of a bummer.
Harry
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Correct, cactid does not currently support non-host based data sources. Sorry. I have not implemented support for non-host based data source items.
Have you attempted updating the number of concurrent processes and using cmd.php. Also, have you followed the informational / how-to on speeding up cmd.php?
Please let me know.
TheWitness
Have you attempted updating the number of concurrent processes and using cmd.php. Also, have you followed the informational / how-to on speeding up cmd.php?
Please let me know.
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Who is online
Users browsing this forum: No registered users and 2 guests