poller.php not running script

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
taik0
Posts: 7
Joined: Tue Mar 08, 2005 11:24 am
Contact:

poller.php not running script

Post by taik0 »

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.
DeepFreez
Posts: 9
Joined: Tue Feb 22, 2005 10:52 am

Post by DeepFreez »

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.
taik0
Posts: 7
Joined: Tue Mar 08, 2005 11:24 am
Contact:

Post by taik0 »

I tried 'Clear poller cache' too and It stills the same.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Cactid or cmd.php?

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?
taik0
Posts: 7
Joined: Tue Mar 08, 2005 11:24 am
Contact:

Post by taik0 »

cmd.php
DeepFreez
Posts: 9
Joined: Tue Feb 22, 2005 10:52 am

Post by DeepFreez »

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?
DeepFreez
Posts: 9
Joined: Tue Feb 22, 2005 10:52 am

Post by DeepFreez »

I bit the bullet and deleted my cacti database and recreated everyting. It works perfectly now.

The only thing I did different was that I created the snmp query first, before adding any other graphs.

Previously I added a Generic SNMP graph first and then created the snmp data query.
taik0
Posts: 7
Joined: Tue Mar 08, 2005 11:24 am
Contact:

Post by taik0 »

All my snmp querys are working fine. The scripts (script/command) that doesn't appear at poller.php are perl scripts.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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
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?
taik0
Posts: 7
Joined: Tue Mar 08, 2005 11:24 am
Contact:

Post by taik0 »

I added the perl path and cleared poller cache and still's the same.
I've checked the rrd file and itsn't modified since it's creation.

Thanks in advance.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please insure that php is not runing in safe_mode.

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?
taik0
Posts: 7
Joined: Tue Mar 08, 2005 11:24 am
Contact:

Post by taik0 »

Code: Select all

;
; Safe Mode
;
safe_mode = Off
I've other perl scripts running fine under cacti (without templates).
taik0
Posts: 7
Joined: Tue Mar 08, 2005 11:24 am
Contact:

Post by taik0 »

I've changed at data sources the host to 'None' and now poller.php are executing the scripts.

Before the change there wasn't an entry on poller_items (on cacti DDBB), after setting the host to 'None' magically appeared.

That's great, but, why?

Thanks in advance.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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
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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest