<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CACTI config issue in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cacti-config-issue/m-p/5281043#M474307</link>
    <description>didn't you just forget the postinstallation procedure? I mean a binary named mysql_install_db&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://dev.mysql.com/doc/refman/5.0/en/unix-postinstallation.html" target="_blank"&gt;http://dev.mysql.com/doc/refman/5.0/en/unix-postinstallation.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 05 May 2011 07:42:21 GMT</pubDate>
    <dc:creator>Viktor Balogh</dc:creator>
    <dc:date>2011-05-05T07:42:21Z</dc:date>
    <item>
      <title>CACTI config issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cacti-config-issue/m-p/5281039#M474303</link>
      <description>Hi All&lt;BR /&gt;&lt;BR /&gt;I´ve seen on the net, instructions how to setup cacti on hp-ux (&lt;A href="http://www.mayoxide.com/presentations/1320_Masse.pdf" target="_blank"&gt;www.mayoxide.com/presentations/1320_Masse.pdf&lt;/A&gt; ), and try to follow this til the end, but when I point my browser to http://server/cacti-0.8.7g, I have the following errors:&lt;BR /&gt;Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We had to select 'UTC' because your platform doesn't provide functionality for the guessing algorithm in /opt/hpws/apache/htdocs/cacti-0.8.7g/include/global_arrays.php on line 640&lt;BR /&gt;FATAL: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php' &lt;BR /&gt;&lt;BR /&gt;Please can somebody help on this?&lt;BR /&gt;&lt;BR /&gt;F.R.</description>
      <pubDate>Tue, 03 May 2011 06:40:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cacti-config-issue/m-p/5281039#M474303</guid>
      <dc:creator>NDO</dc:creator>
      <dc:date>2011-05-03T06:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: CACTI config issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cacti-config-issue/m-p/5281040#M474304</link>
      <description>The timezone warning apparently happens because the TZ environment variable is not set in the environment of the web server. &lt;BR /&gt;&lt;BR /&gt;You might fix this with:&lt;BR /&gt;&lt;BR /&gt;echo ". /etc/TIMEZONE" &amp;gt;&amp;gt;/opt/hpws/apache/bin/envvars&lt;BR /&gt;&lt;BR /&gt;The /opt/hpws/apache/bin/envvars script determines the environment variables for Apache (and therefore for all CGI scripts and Perl/PHP applications run through Apache plugins). The above-mentioned command adds a line which should make it pick up the TZ setting from the HP-UX standard /etc/TIMEZONE.&lt;BR /&gt;&lt;BR /&gt;The fatal error message about MySQL is because Cacti requires a valid, functional and properly configured MySQL database to work. &lt;BR /&gt;&lt;BR /&gt;Did you create and configure the Cacti database for MySQL as instructed in the Cacti documentation:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.cacti.net/downloads/docs/html/unix_configure_cacti.html" target="_blank"&gt;http://www.cacti.net/downloads/docs/html/unix_configure_cacti.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Tue, 03 May 2011 10:15:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cacti-config-issue/m-p/5281040#M474304</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2011-05-03T10:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: CACTI config issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cacti-config-issue/m-p/5281041#M474305</link>
      <description>Hi Matti!&lt;BR /&gt;&lt;BR /&gt;Sorry, perhaps that was my mistake, I did not follow what is in the documentation provided on your link, but I did follow the pdf on the link stated on my first post.&lt;BR /&gt;I will follow the procedure stated on your link.&lt;BR /&gt;I will come back.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;F.R.</description>
      <pubDate>Tue, 03 May 2011 13:55:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cacti-config-issue/m-p/5281041#M474305</guid>
      <dc:creator>NDO</dc:creator>
      <dc:date>2011-05-03T13:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: CACTI config issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cacti-config-issue/m-p/5281042#M474306</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I cannot start mysql, so mysql deamon is not running, this is the error when I try to run from:~&lt;BR /&gt;usr/local/mysql/share/mysql #./mysql.server start&lt;BR /&gt;Starting MySQL&lt;BR /&gt;. ERROR! Manager of pid-file quit without updating file.&lt;BR /&gt;&lt;BR /&gt;If I try from :&lt;BR /&gt;[430]/usr/local/mysql/bin #./mysql&lt;BR /&gt;ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please can you help?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;F.R.</description>
      <pubDate>Wed, 04 May 2011 14:17:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cacti-config-issue/m-p/5281042#M474306</guid>
      <dc:creator>NDO</dc:creator>
      <dc:date>2011-05-04T14:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: CACTI config issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cacti-config-issue/m-p/5281043#M474307</link>
      <description>didn't you just forget the postinstallation procedure? I mean a binary named mysql_install_db&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://dev.mysql.com/doc/refman/5.0/en/unix-postinstallation.html" target="_blank"&gt;http://dev.mysql.com/doc/refman/5.0/en/unix-postinstallation.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 May 2011 07:42:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cacti-config-issue/m-p/5281043#M474307</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2011-05-05T07:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: CACTI config issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cacti-config-issue/m-p/5281044#M474308</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I have got mysql up and running:&lt;BR /&gt;&lt;BR /&gt;prep03[156]/usr/local/mysql #bin/mysqld_safe --user=mysql &amp;amp;&lt;BR /&gt;[1]     8980&lt;BR /&gt;prep03[157]/usr/local/mysql #110505 09:28:50 mysqld_safe Logging to '/usr/local/mysql/var/prep03.err'.&lt;BR /&gt;110505 09:28:50 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var&lt;BR /&gt;&lt;BR /&gt;prep03[158]/usr/local/mysql #/usr/local/mysql/bin/mysqladmin -u root password 'prep03'&lt;BR /&gt;prep03[159]/usr/local/mysql #/usr/local/mysql/bin/mysql -u root -p&lt;BR /&gt;Enter password: ******&lt;BR /&gt;Welcome to the MySQL monitor.  Commands end with ; or \g.&lt;BR /&gt;Your MySQL connection id is 2&lt;BR /&gt;Server version: 5.1.39 Source distribution&lt;BR /&gt;&lt;BR /&gt;Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.&lt;BR /&gt;&lt;BR /&gt;mysql&amp;gt; show databases;&lt;BR /&gt;+--------------------+&lt;BR /&gt;| Database           |&lt;BR /&gt;+--------------------+&lt;BR /&gt;| information_schema |&lt;BR /&gt;| mysql              |&lt;BR /&gt;| test               |&lt;BR /&gt;+--------------------+&lt;BR /&gt;&lt;BR /&gt;But when I try to create a cacti db, I have the following error:&lt;BR /&gt;&lt;BR /&gt;prep03[301]/usr/local/mysql/bin #./mysqladmin --user=root create cacti&lt;BR /&gt;./mysqladmin: connect to server at 'localhost' failed&lt;BR /&gt;error: 'Access denied for user 'root'@'localhost' (using password: NO)'&lt;BR /&gt;prep03[302]/usr/local/mysql/bin #ps -ef | grep mysql&lt;BR /&gt;    root 12322 12241  0 12:10:28 pts/4     0:00 grep mysql&lt;BR /&gt;    root  8980  8629  0 09:28:50 pts/1     0:00 /bin/sh bin/mysqld_safe --user=mysql&lt;BR /&gt;   mysql  9015  8980  0 09:28:50 pts/1     0:00 /usr/local/mysql/libexec/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/var --user=mysql --log-error=/usr/local/m&lt;BR /&gt;    root  9149  8629  0 09:33:45 pts/1     0:00 /usr/local/mysql/bin/mysql -u root -p&lt;BR /&gt;prep03[303]/usr/local/mysql/bin #&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;F.R.</description>
      <pubDate>Thu, 05 May 2011 09:05:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cacti-config-issue/m-p/5281044#M474308</guid>
      <dc:creator>NDO</dc:creator>
      <dc:date>2011-05-05T09:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: CACTI config issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cacti-config-issue/m-p/5281045#M474309</link>
      <description>the hint is the error message:&lt;BR /&gt;&lt;BR /&gt;"error: 'Access denied for user 'root'@'localhost' (using password: NO)'"&lt;BR /&gt;&lt;BR /&gt;which indices that you must supply a "-p" parameter at the command line. anyway, you can issue that create statement also in interactive mode, after you are logged in to mysql. note that you don't need to feed the password at the command line, only the "-p" switch - this way your shell history cannot catch the db password.</description>
      <pubDate>Thu, 05 May 2011 09:11:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cacti-config-issue/m-p/5281045#M474309</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2011-05-05T09:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: CACTI config issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cacti-config-issue/m-p/5281046#M474310</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I have managed to create the cacti DB:&lt;BR /&gt;mysql&amp;gt; create database cacti;&lt;BR /&gt;Query OK, 1 row affected (0.01 sec)&lt;BR /&gt;&lt;BR /&gt;mysql&amp;gt; show databases;&lt;BR /&gt;+--------------------+&lt;BR /&gt;| Database           |&lt;BR /&gt;+--------------------+&lt;BR /&gt;| information_schema |&lt;BR /&gt;| cacti              |&lt;BR /&gt;| mysql              |&lt;BR /&gt;| test               |&lt;BR /&gt;+--------------------+&lt;BR /&gt;4 rows in set (0.00 sec)&lt;BR /&gt;&lt;BR /&gt;mysql&amp;gt;&lt;BR /&gt;&lt;BR /&gt;But on cacti online manual do I have to follow these steps?&lt;BR /&gt;&lt;BR /&gt;1.Import the default cacti database:&lt;BR /&gt;&lt;BR /&gt;shell&amp;gt; mysql cacti &amp;lt; cacti.sql&lt;BR /&gt;&lt;BR /&gt;2.Optional: Create a MySQL username and password for Cacti.&lt;BR /&gt;&lt;BR /&gt;shell&amp;gt; mysql --user=root mysql&lt;BR /&gt;mysql&amp;gt; GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'somepassword';&lt;BR /&gt;mysql&amp;gt; flush privileges;&lt;BR /&gt;&lt;BR /&gt;F.R.</description>
      <pubDate>Thu, 05 May 2011 09:28:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cacti-config-issue/m-p/5281046#M474310</guid>
      <dc:creator>NDO</dc:creator>
      <dc:date>2011-05-05T09:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: CACTI config issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cacti-config-issue/m-p/5281047#M474311</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I have followed all the steps, but now when I run "&lt;A href="http://10.100.48.13/cacti-0.8.7g/" target="_blank"&gt;http://10.100.48.13/cacti-0.8.7g/&lt;/A&gt;" I have a page with lots of warnings. pls see attachement.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We had to select 'UTC' because your platform doesn't provide functionality for the guessing algorithm in /opt/hpws/apache/htdocs/cacti-0.8.7g/include/global_constants.php on line 154&lt;BR /&gt;&lt;BR /&gt;Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We had to select 'UTC' because your platform doesn't provide functionality for the guessing algorithm in /opt/hpws/apache/htdocs/cacti-0.8.7g/include/global_constants.php on line 154&lt;BR /&gt;&lt;BR /&gt;Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We had to select 'UTC' because your platform doesn't provide functionality for the guessing algorithm in /opt/hpws/apache/htdocs/cacti-0.8.7g/include/global_constants.php on line 155&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;F.R.</description>
      <pubDate>Thu, 05 May 2011 09:56:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cacti-config-issue/m-p/5281047#M474311</guid>
      <dc:creator>NDO</dc:creator>
      <dc:date>2011-05-05T09:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: CACTI config issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cacti-config-issue/m-p/5281048#M474312</link>
      <description>see the first post from Matti, you should set the timezone e.g with the TZ variable.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; echo ". /etc/TIMEZONE" &amp;gt;&amp;gt;/opt/hpws/apache/bin/envvars&lt;BR /&gt;&lt;BR /&gt;or maybe there is a config file somewhere named like cacti.conf.inc or something like this where you can set the timezone. just look around in the subfolders</description>
      <pubDate>Thu, 05 May 2011 10:09:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cacti-config-issue/m-p/5281048#M474312</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2011-05-05T10:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: CACTI config issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cacti-config-issue/m-p/5281049#M474313</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I did run that comamnd, but did not help. &lt;BR /&gt;&lt;BR /&gt;The warninigs are strtotime()  and date () functions related.&lt;BR /&gt;&lt;BR /&gt;F.R.</description>
      <pubDate>Thu, 05 May 2011 10:37:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cacti-config-issue/m-p/5281049#M474313</guid>
      <dc:creator>NDO</dc:creator>
      <dc:date>2011-05-05T10:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: CACTI config issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cacti-config-issue/m-p/5281050#M474314</link>
      <description>then maybe you should specify the timezone not for apache, but for php. look for the file&lt;BR /&gt;&lt;BR /&gt;/opt/hpws/apache/conf/php.ini&lt;BR /&gt;&lt;BR /&gt;and add the following line to it (if nothing similar is there already):&lt;BR /&gt;&lt;BR /&gt;date.timezone=Europe/Paris&lt;BR /&gt;&lt;BR /&gt;here is a list of valid timezones:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://php.net/manual/en/timezones.php" target="_blank"&gt;http://php.net/manual/en/timezones.php&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 May 2011 10:52:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cacti-config-issue/m-p/5281050#M474314</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2011-05-05T10:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: CACTI config issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cacti-config-issue/m-p/5281051#M474315</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Yes I did that as well, but no luck, and I have noticed that the error message mention a file global_constants in "/opt/hpws/apache/htdocs/cacti-0.8.7g/include/ ", but I cannot find a setting in it&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;F.R.</description>
      <pubDate>Thu, 05 May 2011 10:57:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cacti-config-issue/m-p/5281051#M474315</guid>
      <dc:creator>NDO</dc:creator>
      <dc:date>2011-05-05T10:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: CACTI config issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cacti-config-issue/m-p/5281052#M474316</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;For example, the error msg I got is Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We had to select 'UTC' because your platform doesn't provide functionality for the guessing algorithm in /opt/hpws/apache/htdocs/cacti-0.8.7g/include/global_arrays.php on line 640&lt;BR /&gt; So they are refering to line 640 and other error lines 154 to 160.&lt;BR /&gt;&lt;BR /&gt;Lines 154 to 160 contains the following:&lt;BR /&gt;&lt;BR /&gt;153  # weekdays according to date("w") builtin function&lt;BR /&gt;   154  define("WD_SUNDAY",     date("w",strtotime("sunday")));&lt;BR /&gt;   155  define("WD_MONDAY",     date("w",strtotime("monday")));&lt;BR /&gt;   156  define("WD_TUESDAY",    date("w",strtotime("tuesday")));&lt;BR /&gt;   157  define("WD_WEDNESDAY",  date("w",strtotime("wednesday")));&lt;BR /&gt;   158  define("WD_THURSDAY",   date("w",strtotime("thursday")));&lt;BR /&gt;   159  define("WD_FRIDAY",     date("w",strtotime("friday")));&lt;BR /&gt;   160  define("WD_SATURDAY",   date("w",strtotime("saturday")));&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But the same file does not have line 640 as mentioned on the error&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;FR&lt;BR /&gt;</description>
      <pubDate>Thu, 05 May 2011 11:07:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cacti-config-issue/m-p/5281052#M474316</guid>
      <dc:creator>NDO</dc:creator>
      <dc:date>2011-05-05T11:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: CACTI config issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cacti-config-issue/m-p/5281053#M474317</link>
      <description>bye</description>
      <pubDate>Fri, 20 May 2011 05:55:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cacti-config-issue/m-p/5281053#M474317</guid>
      <dc:creator>NDO</dc:creator>
      <dc:date>2011-05-20T05:55:36Z</dc:date>
    </item>
  </channel>
</rss>

