Page 1 of 1

Error - NRDS Install Script - AIX 7.1

Posted: Wed Jan 07, 2015 12:45 pm
by lb2cons
Hello everyone! I've found this little problem on a AIX box today.

After running installnrds i've got the following error:

Adding cron jobs for MYHOSTNAME at a 1 minute interval

A line of the crontab file:
1-usersgroups init.sh installnrds nrds send_nrdp.php send_nrdp.py send_nrdp.sh * * * * /opt/nagios/nrdp/clients/nrds/nrds.pl -H 'MYHOSTNAME' 2>&1

contains the following error:
0481-079 Reached a symbol that is not expected.


After investigation i've discovered that the sintax used : */4 * * * * /usr/local/nrdp/clients/nrds/nrds.pl -H 'MYHOST' 2>&1
wasn't correct to AIX.

On AIX you can't expecify this kind of interval like */4, so I've changed to:
0,4,8,12,16,20,24,28,32,36,40,44,48 * * * * * /usr/local/nrdp/clients/nrds/nrds.pl -H 'MYHOST' 2>&1

And now it's working.

If there is a more simple way to do it please tell me, if not please add this exception to AIX box's.

Thanks in advance

Re: Error - NRDS Install Script - AIX 7.1

Posted: Wed Jan 07, 2015 4:40 pm
by lmiltchev
You seem to be correct. Crontab in AIX is not the same as in Linux... :) We don't have the hardware to test this, but I found similar issues, described on the AIX forums. People would use:

Code: Select all

0,5,10,15,20,25,30,35,40,45,50,55 * * * *
instead of:

Code: Select all

*/5 * * * *
on AIX... It's ugly but as long as it works, well... Thanks for the heads up!