Process monitoring

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
scycheng
Posts: 1
Joined: Fri Nov 08, 2019 9:27 am

Process monitoring

Post by scycheng »

Hello,

I am trying to use cacti to monitor specific processes using the templates provided here <http://www.routerjanitor.com/2014/04/ca ... esses.html>. SNMP has been configured so I can poll for the data. I am having problems trying to get the data graphed.

Code: Select all

~# snmpwalk -v 2c -c public localhost .1.3.6.1.4.1.2021.2.1
iso.3.6.1.4.1.2021.2.1.1.1 = INTEGER: 1
iso.3.6.1.4.1.2021.2.1.1.2 = INTEGER: 2
iso.3.6.1.4.1.2021.2.1.2.1 = STRING: "systemd"
iso.3.6.1.4.1.2021.2.1.2.2 = STRING: "ffmpeg"
iso.3.6.1.4.1.2021.2.1.3.1 = INTEGER: 1
iso.3.6.1.4.1.2021.2.1.3.2 = INTEGER: 1
iso.3.6.1.4.1.2021.2.1.4.1 = INTEGER: 1
iso.3.6.1.4.1.2021.2.1.4.2 = INTEGER: 60
iso.3.6.1.4.1.2021.2.1.5.1 = INTEGER: 3
iso.3.6.1.4.1.2021.2.1.5.2 = INTEGER: 0
iso.3.6.1.4.1.2021.2.1.100.1 = INTEGER: 1
iso.3.6.1.4.1.2021.2.1.100.2 = INTEGER: 1
iso.3.6.1.4.1.2021.2.1.101.1 = STRING: "Too many systemd running (# = 3)"
iso.3.6.1.4.1.2021.2.1.101.2 = STRING: "No ffmpeg process running"
iso.3.6.1.4.1.2021.2.1.102.1 = INTEGER: 0
iso.3.6.1.4.1.2021.2.1.102.2 = INTEGER: 0
iso.3.6.1.4.1.2021.2.1.103.1 = ""
iso.3.6.1.4.1.2021.2.1.103.2 = ""
If I look in Management>Data Source>[actual source], the data appears to be collected for systemd which is always running on Debian/Ubuntu systems.
Screen Shot 2019-11-08 at 10.17.03.png
Screen Shot 2019-11-08 at 10.17.03.png (895.46 KiB) Viewed 1145 times
If I look in the RRD file, the number of systemd processes appears to be there.

Code: Select all

filename = "cactitest_prmin_22.rrd"
rrd_version = "0003"
step = 60
last_update = 1573226282
header_size = 6728
ds[prMin].index = 0
ds[prMin].type = "GAUGE"
ds[prMin].minimal_heartbeat = 120
ds[prMin].min = 0.0000000000e+00
ds[prMin].max = NaN
ds[prMin].last_ds = "1"
ds[prMin].value = NaN
ds[prMin].unknown_sec = 2
ds[prMax].index = 1
ds[prMax].type = "GAUGE"
ds[prMax].minimal_heartbeat = 120
ds[prMax].min = 0.0000000000e+00
ds[prMax].max = NaN
ds[prMax].last_ds = "1"
ds[prMax].value = NaN
ds[prMax].unknown_sec = 2
ds[prCount].index = 2
ds[prCount].type = "GAUGE"
ds[prCount].minimal_heartbeat = 120
ds[prCount].min = 0.0000000000e+00
ds[prCount].max = NaN
ds[prCount].last_ds = "3"
ds[prCount].value = NaN
ds[prCount].unknown_sec = 2
rra[0].cf = "AVERAGE"
rra[0].rows = 2900
rra[0].cur_row = 1431
rra[0].pdp_per_row = 1
rra[0].xff = 5.0000000000e-01
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0
rra[0].cdp_prep[1].value = NaN
rra[0].cdp_prep[1].unknown_datapoints = 0
rra[0].cdp_prep[2].value = NaN
rra[0].cdp_prep[2].unknown_datapoints = 0
rra[1].cf = "AVERAGE"
rra[1].rows = 1400
rra[1].cur_row = 1392
rra[1].pdp_per_row = 15
rra[1].xff = 5.0000000000e-01
rra[1].cdp_prep[0].value = 0.0000000000e+00
rra[1].cdp_prep[0].unknown_datapoints = 3
rra[1].cdp_prep[1].value = 0.0000000000e+00
rra[1].cdp_prep[1].unknown_datapoints = 3
rra[1].cdp_prep[2].value = 0.0000000000e+00
rra[1].cdp_prep[2].unknown_datapoints = 3
The plotted graph however shows nothing. The data points for max/min/cur shows up as NaN.
Screen Shot 2019-11-08 at 10.45.24.png
Screen Shot 2019-11-08 at 10.45.24.png (889.26 KiB) Viewed 1145 times
Being totally new to NMS setup, I am not sure why. Can anyone give me a hint where I am going off the rail? Thanks for any help in advance.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests