|
|
| Author |
Message |
sumitohri
Joined: 20 Jun 2008 Posts: 11
|
Posted: Wed Jun 25, 2008 12:14 pm Post subject: Report-it (runtime.php scheduling error) |
|
|
Hi All,
I am having an issue with scheduling reportit plugin on windows.
I tried running runtime.php from the CLI and it went as follows :
C:\Inetpub\wwwroot\cacti\plugins\reportit\ php runtime.php -d
Invalid PHP_SELF Path
My cacti graphs are working fine and when i tried to run the daily report through Cacti GUI, it worked fine as well.
Am not sure why I got this error.
Could anyone please explain me this error and suggest a Soln -
I tried the directions on this thread and it did not work--
http://forums.cacti.net/about25759-0-asc-0.html
Thanks in advance |
|
| Back to top |
|
 |
browniebraun Cacti User
Joined: 13 Jun 2006 Posts: 329 Location: Cologne, Germany
|
Posted: Wed Jun 25, 2008 12:24 pm Post subject: Re: Report-it (runtime.php scheduling error) |
|
|
| sumitohri wrote: | Hi All,
I am having an issue with scheduling reportit plugin on windows.
I tried running runtime.php from the CLI and it went as follows :
C:\Inetpub\wwwroot\cacti\plugins\reportit\ php runtime.php -d
Invalid PHP_SELF Path
My cacti graphs are working fine and when i tried to run the daily report through Cacti GUI, it worked fine as well.
Am not sure why I got this error.
Could anyone please explain me this error and suggest a Soln -
I tried the directions on this thread and it did not work--
http://forums.cacti.net/about25759-0-asc-0.html
Thanks in advance |
That's based on a bug in the plugin architecture and it will occur with every CLI script. Use the full path as follows until PIA 2.2 will published:
| Code: | | "php C:\Inetpub\wwwroot\cacti\plugins\reportit\runtime.php -d" |
Best regards
-Andreas- |
|
| Back to top |
|
 |
sumitohri
Joined: 20 Jun 2008 Posts: 11
|
Posted: Wed Jun 25, 2008 4:10 pm Post subject: |
|
|
Hey thanks Andreas for that.... i kinda did that earlier and it worked for me ...
but the issue is how do I issue that in the scheduled Tasks for windows for the report to be scheduled automatically.
Also, as a note if I run php poller.php from the cmd line ... that doesn't give that me any such error
Another question is that email that's sent out..... when i open the .csv attachment thru Excel the formatting is all wrong... is there better way to send out emails or open these files.... please advice |
|
| Back to top |
|
 |
browniebraun Cacti User
Joined: 13 Jun 2006 Posts: 329 Location: Cologne, Germany
|
Posted: Wed Jun 25, 2008 10:33 pm Post subject: |
|
|
You've to setup a scheduled task for every frequency (max. 5: daily, weekly, monthly, quarterly, yearly).
Take a look at :http://forums.cacti.net/viewtopic.php?p=101166#101166
| Quote: | | Also, as a note if I run php poller.php from the cmd line ... that doesn't give that me any such error |
The poller is a fixed part of Cacti - only plugins are affected by that issue. Sorry, I didn't want to mislead you in that point.
| Quote: | | Another question is that email that's sent out..... when i open the .csv attachment thru Excel the formatting is all wrong... is there better way to send out emails or open these files.... |
Yep! Every user can define it's preferred column and decimal separator. Click on the "graphs" tab and then on "settings" in the upper right corner.
Best regards
-Andreas- |
|
| Back to top |
|
 |
sumitohri
Joined: 20 Jun 2008 Posts: 11
|
Posted: Thu Jun 26, 2008 12:44 pm Post subject: |
|
|
| Quote: | | Another question is that email that's sent out..... when i open the .csv attachment thru Excel the formatting is all wrong... is there better way to send out emails or open these files.... |
Yep! Every user can define it's preferred column and decimal separator. Click on the "graphs" tab and then on "settings" in the upper right corner.
[/quote]
Thanks Andreas for all your help, it was really helpful
The report is not that well formatted even after playing with column and decimal seperators. I will try to write a script to manipulate the .csv file that i receive.
- Sumit |
|
| Back to top |
|
 |
browniebraun Cacti User
Joined: 13 Jun 2006 Posts: 329 Location: Cologne, Germany
|
Posted: Wed Jul 02, 2008 12:45 pm Post subject: |
|
|
What do you mean with "well formatted"? Please note that CSV files are unable to contain any kind of formatting.
Best regards
-Andreas- |
|
| Back to top |
|
 |
|