perl script not running
Moderators: Developers, Moderators
-
- Posts: 26
- Joined: Wed Sep 24, 2008 5:37 pm
perl script not running
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.
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.
Can you run your script by manually?
There is some good information here.
http://docs.cacti.net/?q=node/224
There is some good information here.
http://docs.cacti.net/?q=node/224
-
- Posts: 26
- Joined: Wed Sep 24, 2008 5:37 pm
-
- Posts: 26
- Joined: Wed Sep 24, 2008 5:37 pm
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
You need to provide both Technical Support and Poller Log. Also, does this item appear in the 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?
-
- Posts: 26
- Joined: Wed Sep 24, 2008 5:37 pm
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!
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
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
What happens if you re-populate the poller cache? Until you find it in the Poller Cache, the graph will never work.
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?
-
- Posts: 26
- Joined: Wed Sep 24, 2008 5:37 pm
I just noticed this, too.
notice it says 2 hosts, but isn't running the perl script for the other host. It is called netapp-something-or-other.pl
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
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
Yes. Learn PHP and launch this script.TheWitness wrote:Do you know how to "Repopulate the Poller Cache"?
-
- Posts: 26
- Joined: Wed Sep 24, 2008 5:37 pm
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
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
-
- Posts: 26
- Joined: Wed Sep 24, 2008 5:37 pm
-
- Posts: 26
- Joined: Wed Sep 24, 2008 5:37 pm
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.
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.
Who is online
Users browsing this forum: No registered users and 1 guest