perl script not running

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

Moderators: Developers, Moderators

fsckedagain
Posts: 26
Joined: Wed Sep 24, 2008 5:37 pm

perl script not running

Post by fsckedagain »

I am really trying to get this working, so bear with me please. :)

When the poller runs, it isn't running one of the scripts so I get NaN's pon the graph. How do I begin to troubleshoot the script not running?

I see the other scripts (default localhost scripts) in the log but not the netapp one.

TIA I will continue googling and foruming to look for the answer.

FYI, Gandalf, you sig is gone.
rtorti19
Posts: 48
Joined: Wed May 07, 2008 1:20 pm

Post by rtorti19 »

Can you run your script by manually?
There is some good information here.
http://docs.cacti.net/?q=node/224
fsckedagain
Posts: 26
Joined: Wed Sep 24, 2008 5:37 pm

Post by fsckedagain »

Well, it's the NetApp template using the OnTap SDK and I am new to this cacti stuff. I think you pointed me in the right direction, but I am not sure what to put for data input and data output values.

I am going to try and figure it out.
rtorti19
Posts: 48
Joined: Wed May 07, 2008 1:20 pm

Post by rtorti19 »

I looked at that perl script before, but never used it.
I do remember there being a usage summary in the script, which would help show you which parameters to pass it.

Also, check that your Perl environment has all the necessary dependencies installed to run the script.
fsckedagain
Posts: 26
Joined: Wed Sep 24, 2008 5:37 pm

Post by fsckedagain »

Yep, I can run it manually. The poller just never tries to run it at all. I cranked logging up to debug for a couple cycles and it never attempts it.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You need to provide both Technical Support and Poller Log. Also, does this item appear in the 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?
fsckedagain
Posts: 26
Joined: Wed Sep 24, 2008 5:37 pm

Post by fsckedagain »

No, the snmp queries for the same host appear in the poller cache, but not the perl script.

This is the DataONTAP SDK script from script/templates section.

the tech supp and log are in the zip file.

thanks!
Attachments
cacti.zip
2 files in here, log and tech support copy/paste
(42.9 KiB) Downloaded 584 times
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

What happens if you re-populate the poller cache? Until you find it in the Poller Cache, the graph will never work.

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?
fsckedagain
Posts: 26
Joined: Wed Sep 24, 2008 5:37 pm

Post by fsckedagain »

I just noticed this, too.

Code: Select all

dcwvm-cacti-1:/var/www/cacti/rra# tail -f /var/www/cacti/log/cacti.log
10/01/2008 05:24:02 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "replace into settings (name,value) values ('stats_poller','Time:1.1344 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:3 RRDsProcessed:3')"
10/01/2008 05:24:02 PM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select count(*) from poller_command"
10/01/2008 05:25:01 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '300', Max Runtime '298', Poller Runs: '1'
10/01/2008 05:25:01 PM - CMDPHP: Poller[0] Host[1] DS[3] CMD: perl /var/www/cacti-0.8.7b/scripts/linux_memory.pl MemFree:, output: 763960
10/01/2008 05:25:01 PM - CMDPHP: Poller[0] Host[1] DS[4] CMD: perl /var/www/cacti-0.8.7b/scripts/linux_memory.pl SwapFree:, output: 1630200
10/01/2008 05:25:01 PM - CMDPHP: Poller[0] Host[1] DS[5] CMD: perl /var/www/cacti-0.8.7b/scripts/loadavg_multi.pl, output: 1min:0.00 5min:0.00 10min:0.00
10/01/2008 05:25:01 PM - CMDPHP: Poller[0] Host[1] DS[6] CMD: perl /var/www/cacti-0.8.7b/scripts/unix_users.pl , output: 1
10/01/2008 05:25:01 PM - CMDPHP: Poller[0] Host[1] DS[7] CMD: perl /var/www/cacti-0.8.7b/scripts/unix_processes.pl, output: 66
10/01/2008 05:25:01 PM - CMDPHP: Poller[0] Time: 0.1061 s, Theads: N/A, Hosts: 2
10/01/2008 05:25:02 PM - SYSTEM STATS: Time:1.1550 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:5 RRDsProcessed:5


notice it says 2 hosts, but isn't running the perl script for the other host. It is called netapp-something-or-other.pl :D
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I am not interested in the poller output, I need to your review the poller cache. Two different things entirely. Do you know how to "Repopulate the 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?
dma_k
Posts: 47
Joined: Thu Aug 07, 2008 6:56 am
Contact:

Post by dma_k »

TheWitness wrote:Do you know how to "Repopulate the Poller Cache"?
Yes. Learn PHP and launch this script.
fsckedagain
Posts: 26
Joined: Wed Sep 24, 2008 5:37 pm

Post by fsckedagain »

Nope, rebuilding didn't do it. I just clicked the rebuild link under system utilities, should that work ok?

Also at the top after clicking, I got this error:

Warning: Division by zero in /var/www/cacti-0.8.7b/lib/api_poller.php on line 119

Warning: Division by zero in /var/www/cacti-0.8.7b/lib/api_poller.php on line 119
fsckedagain
Posts: 26
Joined: Wed Sep 24, 2008 5:37 pm

Post by fsckedagain »

ok. So during some troubleshooting yesterday I changed poller interval to 1 minute so I would get faster polls (I thought) when I changed it back to 5 minutes before I left it horked it up. That is where that error comes from. If I change poller interval back to 1 minute the error goes away.
fsckedagain
Posts: 26
Joined: Wed Sep 24, 2008 5:37 pm

Post by fsckedagain »

Sorry for the triple post. I now have the scripts running, it was due to stupid human tricks by me.

Now I just need to figure out how to make the graphs slope instead of step and figure out why I can't set the poller back to 5 minutes. I will research those and start new threads if needed. Sorry for wasting your time, Witness.

Thanks so much.
dma_k
Posts: 47
Joined: Thu Aug 07, 2008 6:56 am
Contact:

Post by dma_k »

I haven't got your "slope instead of step". You want to rewrite rrdtool renderer?
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests