NCPA Top CPU/Memory process to email the list?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

NCPA Top CPU/Memory process to email the list?

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
jbrunkow
Posts: 441
Joined: Fri Mar 13, 2020 10:45 am

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

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked