<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Daily diskspace alerts using OCS Inventory NG</title>
	<atom:link href="http://seigafuse.com/2007/07/26/daily-diskspace-alerts-using-ocs-inventory-ng/feed/" rel="self" type="application/rss+xml" />
	<link>http://seigafuse.com/2007/07/26/daily-diskspace-alerts-using-ocs-inventory-ng/</link>
	<description>Mike Seigafuse&#039;s Technology and IT Security Blog</description>
	<lastBuildDate>Mon, 05 Mar 2012 17:37:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: ganesh rane</title>
		<link>http://seigafuse.com/2007/07/26/daily-diskspace-alerts-using-ocs-inventory-ng/comment-page-1/#comment-26355</link>
		<dc:creator>ganesh rane</dc:creator>
		<pubDate>Wed, 21 Dec 2011 04:35:07 +0000</pubDate>
		<guid isPermaLink="false">http://seigafuse.com/?p=36#comment-26355</guid>
		<description>[root@glpi reports]# ls -al ocsdiff.php
-rwxrwxrwx 1 root root 5444 Dec 19 18:04 ocsdiff.php


I am downloading the file the windows and cpoy it to unix using winscp and than edit in linux itself.


Regards,
Ganesh Rane</description>
		<content:encoded><![CDATA[<p>[root@glpi reports]# ls -al ocsdiff.php<br />
-rwxrwxrwx 1 root root 5444 Dec 19 18:04 ocsdiff.php</p>
<p>I am downloading the file the windows and cpoy it to unix using winscp and than edit in linux itself.</p>
<p>Regards,<br />
Ganesh Rane</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://seigafuse.com/2007/07/26/daily-diskspace-alerts-using-ocs-inventory-ng/comment-page-1/#comment-26348</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Tue, 20 Dec 2011 14:29:07 +0000</pubDate>
		<guid isPermaLink="false">http://seigafuse.com/?p=36#comment-26348</guid>
		<description>I am trying to help you, please provide the information requested...

Here is what I get when I run it on my host:
[~]# php -f ocsdiff.php
[~]#

Here are what my permissions look like:
[~]# ls -al ocsdiff.php
-rw-r--r-- 1 usermasked groupmasked 5433 Dec 19 16:06 ocsdiff.php

Did you do something like download to Windows, edit it there and then upload it to your Linux/UNIX host?  If so you may want to download it directly to the UNIX host and edit it there.  Windows has a nasty habit of converting line endings in UNIX (line feed) to CR and LF, so that could also be the root of your problem.  

As noted, I am trying to help you but you also need to play a part in this .... Cura te ipsum</description>
		<content:encoded><![CDATA[<p>I am trying to help you, please provide the information requested&#8230;</p>
<p>Here is what I get when I run it on my host:<br />
[~]# php -f ocsdiff.php<br />
[~]#</p>
<p>Here are what my permissions look like:<br />
[~]# ls -al ocsdiff.php<br />
-rw-r&#8211;r&#8211; 1 usermasked groupmasked 5433 Dec 19 16:06 ocsdiff.php</p>
<p>Did you do something like download to Windows, edit it there and then upload it to your Linux/UNIX host?  If so you may want to download it directly to the UNIX host and edit it there.  Windows has a nasty habit of converting line endings in UNIX (line feed) to CR and LF, so that could also be the root of your problem.  </p>
<p>As noted, I am trying to help you but you also need to play a part in this &#8230;. Cura te ipsum</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ganesh rane</title>
		<link>http://seigafuse.com/2007/07/26/daily-diskspace-alerts-using-ocs-inventory-ng/comment-page-1/#comment-26346</link>
		<dc:creator>ganesh rane</dc:creator>
		<pubDate>Tue, 20 Dec 2011 13:43:07 +0000</pubDate>
		<guid isPermaLink="false">http://seigafuse.com/?p=36#comment-26346</guid>
		<description>pls provide the solution</description>
		<content:encoded><![CDATA[<p>pls provide the solution</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://seigafuse.com/2007/07/26/daily-diskspace-alerts-using-ocs-inventory-ng/comment-page-1/#comment-26340</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Mon, 19 Dec 2011 23:12:02 +0000</pubDate>
		<guid isPermaLink="false">http://seigafuse.com/?p=36#comment-26340</guid>
		<description>Do you have both the config file and the diff script in the same directory with the appropriate permissions (read and execute)?  In your first comment it says unexpected string on line 14... what do you have at line 14 in your script?  Line 14 in my script is:

$headers .= &quot;Reply-To: ITInventory@yourdomain.com&quot;;


What does your line 14 look like?

Lets deal with the errors one at a time and start with the first before we move on.</description>
		<content:encoded><![CDATA[<p>Do you have both the config file and the diff script in the same directory with the appropriate permissions (read and execute)?  In your first comment it says unexpected string on line 14&#8230; what do you have at line 14 in your script?  Line 14 in my script is:</p>
<p>$headers .= &#8220;Reply-To: <a href="mailto:ITInventory@yourdomain.com">ITInventory@yourdomain.com</a>&#8220;;</p>
<p>What does your line 14 look like?</p>
<p>Lets deal with the errors one at a time and start with the first before we move on.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ganesh rane</title>
		<link>http://seigafuse.com/2007/07/26/daily-diskspace-alerts-using-ocs-inventory-ng/comment-page-1/#comment-26338</link>
		<dc:creator>ganesh rane</dc:creator>
		<pubDate>Mon, 19 Dec 2011 12:26:43 +0000</pubDate>
		<guid isPermaLink="false">http://seigafuse.com/?p=36#comment-26338</guid>
		<description>[root@glpi reports]# php -f ocsdiff.php
PHP Notice:  Undefined variable: curramresults in /var/www/html/ocsreports/reports/ocsdiff.php on line 112
PHP Warning:  mysql_free_result(): supplied argument is not a valid MySQL result resource in /var/www/html/ocsreports/reports/ocsdiff.php on line 112
PHP Notice:  Undefined variable: snapramresults in /var/www/html/ocsreports/reports/ocsdiff.php on line 113
PHP Warning:  mysql_free_result(): supplied argument is not a valid MySQL result resource in /var/www/html/ocsreports/reports/ocsdiff.php on line 113
PHP Notice:  Undefined variable: currdiskresults in /var/www/html/ocsreports/reports/ocsdiff.php on line 114
PHP Warning:  mysql_free_result(): supplied argument is not a valid MySQL result resource in /var/www/html/ocsreports/reports/ocsdiff.php on line 114
PHP Notice:  Undefined variable: snapdiskresults in /var/www/html/ocsreports/reports/ocsdiff.php on line 115
PHP Warning:  mysql_free_result(): supplied argument is not a valid MySQL result resource in /var/www/html/ocsreports/reports/ocsdiff.php on line 115</description>
		<content:encoded><![CDATA[<p>[root@glpi reports]# php -f ocsdiff.php<br />
PHP Notice:  Undefined variable: curramresults in /var/www/html/ocsreports/reports/ocsdiff.php on line 112<br />
PHP Warning:  mysql_free_result(): supplied argument is not a valid MySQL result resource in /var/www/html/ocsreports/reports/ocsdiff.php on line 112<br />
PHP Notice:  Undefined variable: snapramresults in /var/www/html/ocsreports/reports/ocsdiff.php on line 113<br />
PHP Warning:  mysql_free_result(): supplied argument is not a valid MySQL result resource in /var/www/html/ocsreports/reports/ocsdiff.php on line 113<br />
PHP Notice:  Undefined variable: currdiskresults in /var/www/html/ocsreports/reports/ocsdiff.php on line 114<br />
PHP Warning:  mysql_free_result(): supplied argument is not a valid MySQL result resource in /var/www/html/ocsreports/reports/ocsdiff.php on line 114<br />
PHP Notice:  Undefined variable: snapdiskresults in /var/www/html/ocsreports/reports/ocsdiff.php on line 115<br />
PHP Warning:  mysql_free_result(): supplied argument is not a valid MySQL result resource in /var/www/html/ocsreports/reports/ocsdiff.php on line 115</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ganesh rane</title>
		<link>http://seigafuse.com/2007/07/26/daily-diskspace-alerts-using-ocs-inventory-ng/comment-page-1/#comment-26337</link>
		<dc:creator>ganesh rane</dc:creator>
		<pubDate>Mon, 19 Dec 2011 12:12:22 +0000</pubDate>
		<guid isPermaLink="false">http://seigafuse.com/?p=36#comment-26337</guid>
		<description>[root@glpi reports]# php -f ocsdiff.php
PHP Parse error:  syntax error, unexpected T_STRING in /var/www/html/ocsreports/reports/ocsdiff.php on line 14</description>
		<content:encoded><![CDATA[<p>[root@glpi reports]# php -f ocsdiff.php<br />
PHP Parse error:  syntax error, unexpected T_STRING in /var/www/html/ocsreports/reports/ocsdiff.php on line 14</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://seigafuse.com/2007/07/26/daily-diskspace-alerts-using-ocs-inventory-ng/comment-page-1/#comment-26334</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Mon, 19 Dec 2011 01:28:48 +0000</pubDate>
		<guid isPermaLink="false">http://seigafuse.com/?p=36#comment-26334</guid>
		<description>Why are you trying to run the config file, you would run the diskreport.php file which would load the configuration file.  That said there is no reason the file should not run if you have the appropriate permissions set, have PHP installed, and call it correctly.  Typically the report file is run from a cron job where PHP is called and the file name is passed to the PHP interpreter.  If for some reason you want to run this form the command line you must use the command:

php -f filename.php

If that doesn&#039;t help then please let me know how you are running the file and what version of PHP you are using.</description>
		<content:encoded><![CDATA[<p>Why are you trying to run the config file, you would run the diskreport.php file which would load the configuration file.  That said there is no reason the file should not run if you have the appropriate permissions set, have PHP installed, and call it correctly.  Typically the report file is run from a cron job where PHP is called and the file name is passed to the PHP interpreter.  If for some reason you want to run this form the command line you must use the command:</p>
<p>php -f filename.php</p>
<p>If that doesn&#8217;t help then please let me know how you are running the file and what version of PHP you are using.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ganesh rane</title>
		<link>http://seigafuse.com/2007/07/26/daily-diskspace-alerts-using-ocs-inventory-ng/comment-page-1/#comment-26307</link>
		<dc:creator>ganesh rane</dc:creator>
		<pubDate>Fri, 16 Dec 2011 15:09:55 +0000</pubDate>
		<guid isPermaLink="false">http://seigafuse.com/?p=36#comment-26307</guid>
		<description>unable to run the script giving following error
./ocsdiff_conf.php: line 1: ?php: No such file or directory
./ocsdiff_conf.php: line 6: =: command not found
./ocsdiff_conf.php: line 7: =: command not found
./ocsdiff_conf.php: line 8: =: command not found
./ocsdiff_conf.php: line 9: =: command not found
./ocsdiff_conf.php: line 10: =: command not found
./ocsdiff_conf.php: line 11: =: command not found
./ocsdiff_conf.php: line 12: syntax error near unexpected token `(&#039;
./ocsdiff_conf.php: line 12: `$domains = array(&#039;</description>
		<content:encoded><![CDATA[<p>unable to run the script giving following error<br />
./ocsdiff_conf.php: line 1: ?php: No such file or directory<br />
./ocsdiff_conf.php: line 6: =: command not found<br />
./ocsdiff_conf.php: line 7: =: command not found<br />
./ocsdiff_conf.php: line 8: =: command not found<br />
./ocsdiff_conf.php: line 9: =: command not found<br />
./ocsdiff_conf.php: line 10: =: command not found<br />
./ocsdiff_conf.php: line 11: =: command not found<br />
./ocsdiff_conf.php: line 12: syntax error near unexpected token `(&#8216;<br />
./ocsdiff_conf.php: line 12: `$domains = array(&#8216;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://seigafuse.com/2007/07/26/daily-diskspace-alerts-using-ocs-inventory-ng/comment-page-1/#comment-18124</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Mon, 26 Apr 2010 14:28:45 +0000</pubDate>
		<guid isPermaLink="false">http://seigafuse.com/?p=36#comment-18124</guid>
		<description>How about a search of software where date is less than X.  So if you wanted a listing of all new software installed in the last month use &lt;1 in the date field of the search?

Not sure, I don&#039;t currently have access to running instances of either OCS-NG or GLPI, but this &lt;a href=&quot;http://www.glpi-project.org/wiki/doku.php?id=en:manual:admin:2_inventory&quot; rel=&quot;nofollow&quot;&gt;link&lt;/a&gt; gives me that idea...

You might also check out this &lt;a href=&quot;http://plugins.glpi-project.org/spip.php?article42&quot; rel=&quot;nofollow&quot;&gt;plugin&lt;/a&gt;, it is light on documentation so you might just have to try it to see what it does.

Sorry I can&#039;t be of more help, but as I said I don&#039;t currently have access to these tools.  Best of luck,
Mike</description>
		<content:encoded><![CDATA[<p>How about a search of software where date is less than X.  So if you wanted a listing of all new software installed in the last month use &lt;1 in the date field of the search?</p>
<p>Not sure, I don&#039;t currently have access to running instances of either OCS-NG or GLPI, but this <a href="http://www.glpi-project.org/wiki/doku.php?id=en:manual:admin:2_inventory" rel="nofollow">link</a> gives me that idea&#8230;</p>
<p>You might also check out this <a href="http://plugins.glpi-project.org/spip.php?article42" rel="nofollow">plugin</a>, it is light on documentation so you might just have to try it to see what it does.</p>
<p>Sorry I can&#8217;t be of more help, but as I said I don&#8217;t currently have access to these tools.  Best of luck,<br />
Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Felipe</title>
		<link>http://seigafuse.com/2007/07/26/daily-diskspace-alerts-using-ocs-inventory-ng/comment-page-1/#comment-18122</link>
		<dc:creator>Felipe</dc:creator>
		<pubDate>Mon, 26 Apr 2010 13:52:52 +0000</pubDate>
		<guid isPermaLink="false">http://seigafuse.com/?p=36#comment-18122</guid>
		<description>Tks Mike.. I&#039;ve already installed GLPI and integrated OCS plugin within it. However, I didn&#039;t find much info regarding setting up this kind of alert on GLPI. If you know any source where I can get some how to, I&#039;d really appreciate.

Regards;</description>
		<content:encoded><![CDATA[<p>Tks Mike.. I&#8217;ve already installed GLPI and integrated OCS plugin within it. However, I didn&#8217;t find much info regarding setting up this kind of alert on GLPI. If you know any source where I can get some how to, I&#8217;d really appreciate.</p>
<p>Regards;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

