Hi, I'm having some issues...
Are there any other parameters that need to be applied? preferred shell, environment variables?
I've changed the log directory from /logs/psp to /var/log/psp as per the instructions.
First error is with central perl script, ls -ld /var/log/psp - agent may not be installed.
The agent is working fine, the nmon files are being created in /var/log/psp.
I can get past this error, but then it complains about data/hostname directories not existing.
I've run the psp_central.pl hostname so I'm only working with one host.
TIA for your help.
$ ./psp_central.pl myhost
Running: ls -ld /var/log/psp on myhost
Problem: PSP agent not deploy on myhost, skipping - probably not installed yet
Running psp_alerts.pl for myhost
psp_alerts: Cannot cd to /home/muser/psp/rrd/myhost
$ ls -ld /var/log/psp
drwxr-xr-x 2 root system 4096 Oct 21 00:44 /var/log/psp
$
$ echo "ls -ld /var/log/psp;echo $?" |ssh -q myhost 2>/dev/null
drwxr-xr-x 2 root system 4096 Oct 21 00:44 /var/log/psp
0
$ echo "ls /var/log/psp/*.nmon" |ssh -q myhost 2>/dev/null
/var/log/psp/myhost_20131020_2210.nmon
/var/log/psp/myhost_20131020_2310.nmon
/var/log/psp/myhost_20131021_0010.nmon
$
Hi,
When I did implement the ability to change the directory for the agent, I forgot to change the validations. I will update the distribution with the corrections. In the mean time, you could edit the file psp_central.pl and change
line 255 from:
$found = 1 if /^d.\/logs\/psp$/;
to:
$found = 1 if /^d.\/var\/log\/psp$/;
and line 291 from:
if ( $fname eq ".nmon" || ! /^\/logs/ )
to:
if ( $fname eq ".nmon" || ! /^\/var/ )
Sorry about that.
Version 1.4.6 include the correction. You can only replace the file psp_central.pl by the one in the distribution.
Alain