Report-it (runtime.php scheduling error)

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
sumitohri
Posts: 11
Joined: Fri Jun 20, 2008 7:47 pm

Report-it (runtime.php scheduling error)

Post by sumitohri »

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
User avatar
browniebraun
Developer
Posts: 791
Joined: Tue Jun 13, 2006 1:17 am
Location: Cologne, Germany

Re: Report-it (runtime.php scheduling error)

Post by browniebraun »

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: Select all

"php C:\Inetpub\wwwroot\cacti\plugins\reportit\runtime.php -d"
Best regards
-Andreas-
Hat das Blümchen einen Knick, war der Schmetterling zu dick! ;)
reportit v0.7.5a
SNMPAgent v0.2.3
Download ReportIt | Download SNMPAgent | ReportIt SVN | ReportIt Templates | Wish list
sumitohri
Posts: 11
Joined: Fri Jun 20, 2008 7:47 pm

Post by sumitohri »

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
User avatar
browniebraun
Developer
Posts: 791
Joined: Tue Jun 13, 2006 1:17 am
Location: Cologne, Germany

Post by browniebraun »

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
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. :roll:

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-
Hat das Blümchen einen Knick, war der Schmetterling zu dick! ;)
reportit v0.7.5a
SNMPAgent v0.2.3
Download ReportIt | Download SNMPAgent | ReportIt SVN | ReportIt Templates | Wish list
sumitohri
Posts: 11
Joined: Fri Jun 20, 2008 7:47 pm

Post by sumitohri »

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
User avatar
browniebraun
Developer
Posts: 791
Joined: Tue Jun 13, 2006 1:17 am
Location: Cologne, Germany

Post by browniebraun »

What do you mean with "well formatted"? Please note that CSV files are unable to contain any kind of formatting.

Best regards
-Andreas-
Hat das Blümchen einen Knick, war der Schmetterling zu dick! ;)
reportit v0.7.5a
SNMPAgent v0.2.3
Download ReportIt | Download SNMPAgent | ReportIt SVN | ReportIt Templates | Wish list
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest