Re: Issues with Cacti running very long rrdtool commands

Larry <[email protected]> Mon, 27 Oct 2014 21:07:26 +0000 (UTC)
Newsgroups gmane.network.cacti.user
Message-ID <[email protected]>
This is definitely an OS or PHP limitation. Per Gandalf, I would lean towards OS, but testing should confirm. 

# xargs --show-limits 
Your environment variables take up 1972 bytes 
POSIX upper limit on argument length (this system): 4611686018427383883 
POSIX smallest allowable upper limit on argument length (all systems): 4096 
Maximum length of command we could actually use: 4611686018427381911 
Size of command buffer we are actually using: 131072 

That's RHEL6, my first guess would be to get the following to increase, afterwards, restart Apache and then go backward from there: 

Size of command buffer we are actually using: 131072 

Regards, 

You know Who 

----- Original Message -----

From: "Paul Gevers" <[email protected]> 
To: "Support requests/questions about cacti" <[email protected]> 
Sent: Monday, October 27, 2014 3:42:35 PM 
Subject: Re: [cacti-user] Issues with Cacti running very long rrdtool commands 

> Does anybody know why a command, while run internal to Cacti, would have a 
> different command line argument character limit than when the command is 
> run at the command prompt by any user on the machine, attempted in various 
> shells? 

No, but I suspect it is due to being called by php. 

> If I could somehow emulate the exact command Cacti is running, with the 
> same environment variables, via the command prompt, that could also help to 
> determine next steps. 

I believe you can run php interactive from the command prompt. That is 
where I would start. 

Paul 


------------------------------------------------------------------------------ 

_______________________________________________ 
cacti-user mailing list 
[email protected] 
https://lists.sourceforge.net/lists/listinfo/cacti-user 

------------------------------------------------------------------------------