poller.php not running script
Moderators: Developers, Moderators
poller.php not running script
First, sorry for my poor english.
Now the problem:
Hi I created a Data Input Method (script/command) who requests 1 input field and return 6 output fields. I've check the script and works fine.
That's the input string: perl <path_cacti>/scripts/mailq.pl <ip>
After that I've created a Data Template with that 'DIM' what when I create a Data Source ask about the DS Name, DS Path (rrd file) and the Custom Field (the hostname or ip). I assigned that DS to a host previously created in Devices without SNMP support.
All seems to be ok, so I create a Graph Template with 4 Items (2 Area and 2 gprint) from the DT from before.
Later I create a graph under Graph Management. I choose to use my new GT and assign the host and I select the 2 fields from the DS/GT.
The graph it's generated ok (and all debug's say that all it's ok).
But the graph it's never filled with data and when I run manually cmd.php or poller.php I can't see my script running (I've other script/commands running and they're executed but without any template).
Anyone can give me any clue about that?
Thanks in advance.
I'm running Cacti 0.8.6c under a x86 Debian. No deb's used all it's compiled.
Now the problem:
Hi I created a Data Input Method (script/command) who requests 1 input field and return 6 output fields. I've check the script and works fine.
That's the input string: perl <path_cacti>/scripts/mailq.pl <ip>
After that I've created a Data Template with that 'DIM' what when I create a Data Source ask about the DS Name, DS Path (rrd file) and the Custom Field (the hostname or ip). I assigned that DS to a host previously created in Devices without SNMP support.
All seems to be ok, so I create a Graph Template with 4 Items (2 Area and 2 gprint) from the DT from before.
Later I create a graph under Graph Management. I choose to use my new GT and assign the host and I select the 2 fields from the DS/GT.
The graph it's generated ok (and all debug's say that all it's ok).
But the graph it's never filled with data and when I run manually cmd.php or poller.php I can't see my script running (I've other script/commands running and they're executed but without any template).
Anyone can give me any clue about that?
Thanks in advance.
I'm running Cacti 0.8.6c under a x86 Debian. No deb's used all it's compiled.
I have had a similar problem for some time.
I have not found a solution yet, but what I did was reinstall everything and then apply all the patches.
After that, I used the "Clear Poller Cache" system utility.
At least the poller now calls the scripts, but there are stil some problems.
I would love to hear what the correct solution is.
I have not found a solution yet, but what I did was reinstall everything and then apply all the patches.
After that, I used the "Clear Poller Cache" system utility.
At least the poller now calls the scripts, but there are stil some problems.
I would love to hear what the correct solution is.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Cactid or cmd.php?
TheWitness
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?
Using cmd.php too.
I tried to duplicate the working setup on my live server, but I ran into the exact same problem... poller not running the queries.
I dont realy want to delete the database and start over again, but that seems to be the thing that cleared up the problem on my test server. Perhaps there is a better way of fixing it?
I tried to duplicate the working setup on my live server, but I ran into the exact same problem... poller not running the queries.
I dont realy want to delete the database and start over again, but that seems to be the thing that cleared up the problem on my test server. Perhaps there is a better way of fixing it?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
please insure that your system knows the path to perl. Otherwise edit your Data Input Methods to include the path to perl and then clear your poller cache.
TheWitness
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Please insure that php is not runing in safe_mode.
TheWitness
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?
Code: Select all
;
; Safe Mode
;
safe_mode = Off
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Were those scripts associated with a host? You can clear it up by dumping your database and e-mailing to me. "mysqldump --user=root --password cactid > cactidump.sql".
TheWitness
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 0 guests