Error - NRDS Install Script - AIX 7.1
Posted: Wed Jan 07, 2015 12:45 pm
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
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