Error - NRDS Install Script - AIX 7.1

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lb2cons
Posts: 72
Joined: Mon Dec 08, 2014 4:11 pm

Error - NRDS Install Script - AIX 7.1

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Error - NRDS Install Script - AIX 7.1

Post 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked