Last Week i changed the entrie in the table and it works like charme. hope it will be soon also in i-mscp possible. I also read the two other tickets and will recommend it. a very high prio should the mail quota withhin the all setup quota. and i think the setup of quota should not manage the customer, but rather the reseller.
many thx
Posts by Sunghost
-
-
Hello MuhKuh,
many thx for pointing me to that ;). Opened for 12 month - not bad. i conclude that only a few guys use the option of limitation ,). ok i will test it. what do you think about the other facts? they are still actual? -
No answer until now thats bad. How can i change the quota of dovecot over 2GB? I found a old thread here, but what is actual and why the limit of 2GB?
-
Quote
You are mixing things up. You can use 'php' in the cron directly because it will find the binary.
Ok i know, i do the whole tiime, but in the settings of cacti i must enter the path of it. as far as i understand the cron calls the poll.php which runs futher commands over php to get rrd-data and other thinks. perhaps you give me the line for cron and cacti so i know what you mean with mix things - perhaps we talk about diffent ways actually i got the graph but no data.
edit: ok after searching i changed the crontab to php /cacti/poller.php and have no errors for this, but still no data in graph - will check
[hr]
Well done - it works. Many thx MuhKuh. Finaly i will check the open_basedir changes i have done and try to change it to default. many thx so far -
Quote
You could have just used 'php'. No need to give the path.
how do you mean this? i mean the path in cacti which i have to setup. should i only enter php???i read the php doc for open_basedir and i know of that and i know the differences in i-mscp for the different php.ini. but i have not enough knowledge to know any point of attack o security risk of that.
-
The cron is from an howto for debian and is for crontab -e of user cacti, which i not have. i dont know how to find / notize or know what php bin is ?! sorry. i see that its an directory with lot of files and pear and so on, but for what ?! while iam still using squeeze i wouldnt use the cacti package and installed from website, which should be no problem.
the cron is:and your right with dev/null i know that, but thought it would log to syslog but not to bash/screen - ok i have to learn a lot ,) but thats why there are help like this... thx
ok what i should i do - add the open_basedir with /usr/bin/php ok? and ?
[hr]
ok changed as i wrote /usr/bin/php and its ok for cacti thx, but why have i in open_basedir usr/share/php for what and what is the conclusion and disadvantag of doing this?
[hr]
Ok after changing the php path i get this:Code- PM - POLLER: Poller[0] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 17173 seconds have passed since the last poll!
- OK u:0.00 s:0.00 r:0.04
- OK u:0.00 s:0.01 r:0.06
- OK u:0.00 s:0.01 r:0.07
- OK u:0.00 s:0.01 r:0.07
- OK u:0.00 s:0.01 r:0.09
- OK u:0.00 s:0.01 r:0.09
- OK u:0.00 s:0.01 r:0.11
- OK u:0.00 s:0.01 r:0.11
- OK u:0.00 s:0.01 r:0.17
- OK u:0.00 s:0.01 r:0.17
- 07/12/2013 10:08:59 PM - SYSTEM STATS: Time:0.3088 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:5
-
Syslog:
Quote(vuxx) CMD (/usr/share/php /var/www/virtual/domain.de/subdomain/htdocs/poller.php > /dev/null 2>&1)
/USR/SBIN/CRON[13259]: (CRON) error (grandchild #13260 failed with exit status 126)edit:
mainproblem is still the path to php binary, i tried /usr/share/php which is written as open_basedir by default. you wrote /usr/bin/php, should i add this to open_basedir? -
I gave you a thx for your constructive answer. i tried www-data and actually vuxxx but without positiv result. have i restart anything after edit crontab? actually i try to debug cacti and found out, that the mem var is set up do 512m for php, what is to much for my server configuration and i changed it. now i will test further.
edit: about permission - in open_basedir is an entry for the php dir and the owner are root, while www is vuxxx but this is no problem or how must i interprete it?
-
Hi,
now all paths work except for php. The binary lays in /usr/share/php or not?
[hr]
edit: How is the construct of the permission for that. the webuser in which the files of cacti lay are vuxxx and the rights for /usr/share/* are root. if i run from bash as root or as vux the poller.php i get permission denied, but i dont know which user is for what, can someone help? -
Hello,
i know the difference between both and i want to log disk size, cpu usage network traffic and so on and therefor cacti is good. but your right if i would monitor downtimes and want to informed i would use icinga.I got it work for rrdtool. i copy the rrdtool file in /usr/share/rrdtool and add on open_basedir :/usr/share/rrdtool. This works but not for snmpwalk and the other needed one. is this doing correct or would an symlink help as well? ok i see at this moment that symlink is permitted by disable_functions ;I am i right?
thx TheCry
edit: which path have i choose for php? the basedir say /usr/share/php, but cacti say its an dir and i think it expected the binaries, or?