TECHZEN Zenoss User Community ARCHIVE  

Add OS Process monitor

Subject: Add OS Process monitor
Author: [Not Specified]
Posted: 2014-03-21 04:48

Hi,
The adding OS Process monitor is driving me crazy, hopefully some guru here can help.
Here is what I did
Runing Zenoss 4.2.4 on Centos 6.4

1) In infrastructure-> Processes, I added in my own custom process call moncpu.
2) Regular Expression Pattern
I have try
i) moncpu
ii) \/root\/moncpu
iii) ^.*\/*moncpu and etc
all this pattern is validated on http://www.regexr.com
Ignore Parameter = yes

3) On the devices add in the moncpu process and set
zMonitor = yes
zAlertOnRestart = yes
zFailSeverity = Error

4) make sure the moncpu is running on the monitored server

However I always get Process not running: moncpu event regardless of weather the moncpu is running or not.
I have try different regex pattern also got the same result.
I have done snmpwalk processlist and moncpu is in the snmp list.
Anyone have any idea or do I miss out any step in adding the process monitor

Thank you.



Subject: Which monitoring template are
Author: [Not Specified]
Posted: 2014-03-21 11:32

Which monitoring template are you using to monitor this device, SSH or SNMP The default SSH template has to be modified before it will work, at least with Core.

Hydruid



Subject: Hi Hydruid,
Author: [Not Specified]
Posted: 2014-03-22 02:15

Hi Hydruid,
I am using the Add OS process which is using snmp. Using snmpwalk i able to see my custom process but zenprocess unable to find it.



Subject: Guide
Author: [Not Specified]
Posted: 2014-03-24 09:09

Here are the steps that I completed for a basic test to confirm that it works:

1. Infrastructure -> Processes -> Add Process Class Organizer (just to make it easier to find in the list) -> Test
2. Highlighted Test -> Add Process Class -> Ping4222
3. Highlight Ping4222 -> On the right Set Local Value to Yes, Yes, Error -> Include Process Like: ping 4.2.2.2 -> Save
4. On my test server, issued this command: ping 4.2.2.2 (continuous ping)
5. Remodeled my test server to see if it would pick up the new "ping4222" process
6. Verified that the server has a new OS Process (see pic below)

http://oi59.tinypic.com/jry5h5.jpg

Hydruid



Subject: My tip is to keep it simple
Author: [Not Specified]
Posted: 2014-03-24 09:09

My tip is to keep it simple and then go from there, no fancy regex is needed in many cases!

Hydruid



< Previous
Zenwinperf stops
  Next
how to set custom graph commands(cur, avg, max, min)
>