Count processes where string matched

Templates, scripts for templates, scripts and requests for templates.

Moderators: Moderators, Developers

Post Reply
User avatar
Cacti User
Posts: 141
Joined: Mon Dec 13, 2004 5:14 pm
Location: Jurmala, Latvia

Count processes where string matched

#1 Post by Instigater » Mon Dec 13, 2004 6:26 pm

It is a bugfixed version based on Martin Spasov's "Counts processes countaining string". Also made templates for easier starting.
Put into scripts folder and import xml file from webinterface.
(2.4 KiB) Downloaded 1129 times

Cacti User
Posts: 165
Joined: Thu May 03, 2007 2:25 am

#2 Post by Mika2006 » Mon Jun 18, 2007 5:23 am

it works only on locahost machine maybe can explain how i can use it with telnet connection?
|Cacti Version - 0.8.6j||Plugin Architecture - 1.1||Poller Type - CMD.php|
|os - Red hat 4es | |Web Server - Apache/2.0.52 (Red Hat)|
|PHP - 4.3.9| |MySQL - 4.1.20| |RRDTool - 1.2.13||SNMP - 5.1.2|
|Plugins| Host Info (hostinfo - v0.1)

Posts: 1
Joined: Tue Feb 05, 2013 6:13 pm

Re: Count processes where string matched

#3 Post by STNathan » Tue Feb 05, 2013 6:16 pm

I know this was forever ago, but if you're still there I'm curious about something. Your bug fix consists of adding the line
OUT=$(($NUM - 3))

Now, I can understand subtracting 1 for the grep process, but what are the other two for? It appears to me that 3 should be a 1.

Post Reply