Topic
  • 1 reply
  • Latest Post - ‏2014-12-20T21:54:53Z by nagger
dansilva1
dansilva1
1 Post

Pinned topic NMON 14i on crontab does not create/write to log file

‏2014-06-26T03:46:37Z |

Running NMON 14i on SUSE SLES 11 64-bit.


My crontab:
# crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.XXXXbEOGJY installed on Wed Jun 25 21:01:15 2014)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
###NMON - Every 15 minutes during weekdays for 24h
00 0 * * 1-5 /local/nmon/nmon -x

 

So I see that cron started the command:

/var/log # cat messages | grep nmon
Jun 26 00:00:01 icsp101 /usr/sbin/cron[20038]: (root) CMD (/local/nmon/nmon -x)

# ps -ef | grep nmon
root     20141     1  0 00:00 ?        00:00:00 /local/nmon/nmon -x


However, when I check the filesystem where nmon is installed, there is no output file created:

/local/nmon # ls -l
total 240
-rwxr-xr-x 1 root root 240514 Sep 19  2013 nmon

 

I assumed that it would automatically create a file.  Do I need to specify this explicitly on the crontab entry? If so, how?


Thanks in advance,

Daniel

Updated on 2014-06-26T03:59:19Z at 2014-06-26T03:59:19Z by dansilva1
  • nagger
    nagger
    1686 Posts

    Re: NMON 14i on crontab does not create/write to log file

    ‏2014-12-20T21:54:53Z  

    Hi,

    No idea why you assume nmon would create output into the directly in which is it install?

    Would you expect vi to save files to /usr/bin ?

    It saves the file in the current working directory just like ever other UNIX/Linux command.

    So have a look at the directory that cron run in - I would guess "/".

    If you want to set something different try running nmon with a -m /home/nigel"

     

    Cheers, Nigel Griffiths