Hey all. Monitoring a Linux server via SNMP. I'm trying to create an Process Monitor (SNMP) in SAM that can monitor about four difference PM2 / Node JS processes. The difficult part of this is that there isn't a way that I know f to get the actual process.
I've tried several variations for the Process Name and Command Line Filter with no success, including:
- "PM2 v2.4.6: God Daemon (/home/nmgr/.pm2)"
- "node /.local/node/services/ebs-rest/server/server.js"
I'm sure I have this completely wrong. If anyone has suggestions or recommendations, i'm all ears.
Plan B would be to just write a script on the Linux server to output the onlne/offline status and send a notification along with a restart script.