Page 1 of 1

NCPA Top CPU/Memory process to email the list?

Posted: Mon May 11, 2020 1:58 pm
by dlukinski
Hello XI support

Please advise if there is a way to email listed processes when using NCPA TOP Process check (since XI does not retain the list historically)
As attached, at a time of the triggered alerts, could we get the list of processes somehow recorded?

Thank you

Re: NCPA Top CPU/Memory process to email the list?

Posted: Mon May 11, 2020 4:15 pm
by jbrunkow
I believe that a little bit of bash could accomplish what you are talking about.

The greater than symbol will write text output from a command to a file.

Code: Select all

[ [i]command[/i] ] > [ [i]file name[/i] ]
Using two greater than signs in a command will add text output from a command to the end of a file specified.

Code: Select all

[ [i]command[/i] ] >> [ [i]file name[/i] ]
You could schedule a job to repeat this process using something like cron in linux or a graphical interface like Nagios XI.