Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Win32 - Monitor running processes
Goto page Previous  1, 2, 3, 4 ... 10, 11, 12  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
knight



Joined: 30 Mar 2005
Posts: 2

PostPosted: Wed Mar 30, 2005 2:36 pm    Post subject: Reply with quote

Anyone know how to intergrate this with Thold to monitor a process if it stops and send an email to the admin?
Back to top
BSOD2600
Cacti Moderator


Joined: 08 May 2004
Posts: 6795
Location: WA, USA

PostPosted: Wed Mar 30, 2005 5:25 pm    Post subject: Reply with quote

How about setting a low threashold for a memory and/or cpu value?
Back to top
knight



Joined: 30 Mar 2005
Posts: 2

PostPosted: Thu Mar 31, 2005 5:59 pm    Post subject: Reply with quote

Unfortunately, that does not work.
Back to top
Luis Gardea



Joined: 13 Apr 2005
Posts: 23

PostPosted: Thu Apr 21, 2005 2:54 pm    Post subject: Win32 - Monitor running processes for winnt Reply with quote

Hi

Why I can get this error "SNMP: error" when I add a new device (winnt)?
I installed in my winnt the service snmp and configured my community name.

Back to top
BSOD2600
Cacti Moderator


Joined: 08 May 2004
Posts: 6795
Location: WA, USA

PostPosted: Thu Apr 21, 2005 4:07 pm    Post subject: Reply with quote

Can you poll the device normally in cacti w/o my script? For example, network usage, cpu usage, disk usage, etc. If no, you need to get those working before you try and get extra scripts working.
Back to top
jvlalonde



Joined: 21 Mar 2005
Posts: 14

PostPosted: Fri Apr 22, 2005 9:21 am    Post subject: KBytes in Memory Usage Reply with quote

I have a problem with the Memory Walk as well 'cause it reports KBytes after the integer.


[root@xy snmp_queries]# snmpwalk -v 1 -c public itsrvt01 .1.3.6.1.2.1.25.5.1.1.2.988
HOST-RESOURCES-MIB::hrSWRunPerfMem.988 = INTEGER: 18008 KBytes


Is there a way to get rid of this?
Back to top
Luis Gardea



Joined: 13 Apr 2005
Posts: 23

PostPosted: Fri Apr 22, 2005 10:31 am    Post subject: snmp error Reply with quote

Hi.


Maybe you can help me. When I add a winnt device in my cacti, i get this message "snmp error" I just add service snmp in winnt and configure the community RO. Why I don't see winnt but I can see winxp, 2003 server, cisco routers?


I hope that you can help me.

thanks.

Back to top
ajeskey
Cacti User


Joined: 28 Mar 2005
Posts: 93
Location: Boston, MA

PostPosted: Fri Apr 22, 2005 11:10 am    Post subject: Reply with quote

could be the SNMP version you are trying to poll with
Back to top
BSOD2600
Cacti Moderator


Joined: 08 May 2004
Posts: 6795
Location: WA, USA

PostPosted: Fri Apr 22, 2005 12:43 pm    Post subject: Reply with quote

jvlalonde: What OS you polling?

Luis Gardea: You never did answer my original questions. Did you even read the readme?


Last edited by BSOD2600 on Sat Apr 23, 2005 10:47 am; edited 1 time in total
Back to top
elnino
Cacti User


Joined: 08 Mar 2005
Posts: 205

PostPosted: Fri Apr 22, 2005 4:25 pm    Post subject: Reply with quote

I'm actually getting the same thing BlueT is. I looked at the Cacti log file and it said
Quote:
04/22/2005 04:35:52 PM - SYSTEM STATS: Time: 49.9720 s, Method: cmd.php, Processes: 2, Threads: N/A, Hosts: 28, Hosts/Process: 14
04/22/2005 04:35:50 PM - CMDPHP: Poller[0] Host[32] WARNING: Result from SNMP not valid. Partial Result: 27676 KBytes
04/22/2005 04:35:50 PM - CMDPHP: Poller[0] Host[32] WARNING: Result from SNMP not valid. Partial Result: 7356 KBytes

On my graphs only the CPU was graphing, not the memory. Whats strange is, the 27676 KBytes and 7356 KBytes are actually the memory values to the two processes I was trying to graph. Maybe something wrong with the template?
Back to top
BSOD2600
Cacti Moderator


Joined: 08 May 2004
Posts: 6795
Location: WA, USA

PostPosted: Fri Apr 22, 2005 4:46 pm    Post subject: Reply with quote

elnino:
What OS you polling from and to?
You using net-snmp in cacti or php for snmp polling?
Post the raw output from the script ran manually.

Starting to sound like I'm going to need to add another regex to get rid of the text being returned. Although, I'm still not sure why I don't see it and a few of you do.
Back to top
nethedy



Joined: 08 Feb 2005
Posts: 18

PostPosted: Sat Apr 23, 2005 6:40 am    Post subject: error message,help me Reply with quote

the message tell what ,and what can i do ?
i don't understand the step 3
=========================
3. Add the data query 'SNMP - Running Processes' with Re-inxed method 'Index Count Changed'. This has worked fine for me, but you might need to use 'Verify all fields'
=======================



捕获050423_2.jpg
 Description:
error
 Filesize:  43.84 KB
 Viewed:  5076 Time(s)

捕获050423_2.jpg


Back to top
elnino
Cacti User


Joined: 08 Mar 2005
Posts: 205

PostPosted: Sat Apr 23, 2005 9:17 am    Post subject: Reply with quote

BSOD2600 wrote:
elnino:
What OS you polling from and to?
You using net-snmp in cacti or php for snmp polling?
Post the raw output from the script ran manually.

Starting to sound like I'm going to need to add another regex to get rid of the text being returned. Although, I'm still not sure why I don't see it and a few of you do.

I'm polling from a Linux machine to a Window 2k server. I'm using net-SNMP 5.1.2 and using the cmd.php poller in Cacti. PHP version is 4.3.11. How do I run your script manually so I can post the output? Do you mean the Verbose Query in Cacti?
Back to top
BSOD2600
Cacti Moderator


Joined: 08 May 2004
Posts: 6795
Location: WA, USA

PostPosted: Sat Apr 23, 2005 11:18 am    Post subject: Reply with quote

nethedy: What don't you understand? When you add the data query, you need to change the reindexing method to Index Count Changed. Otherwise, when you restart a process, it's PID will change and then the OID will not be valid.

elnino: Alright, so I figured out the problem but not sure how to really fix it.

Running net-snmp 5.1.1 outputs: ...= INTEGER: 48832
Running net-snmp 5.2.1 outputs: ...= INTEGER: 48832 KBytes
Running net-snmp 5.2.1 with -O U :...= INTEGER: 48832


I don't know how to tell my data input method to add on that additional output option, only when ran with net-snmp. I don't see why it would hurt, to add that option to your global Cacti config, so it will always NOT show the units.
Back to top
elnino
Cacti User


Joined: 08 Mar 2005
Posts: 205

PostPosted: Sat Apr 23, 2005 12:41 pm    Post subject: Reply with quote

BSOD2600 wrote:
elnino: Alright, so I figured out the problem but not sure how to really fix it.

Running net-snmp 5.1.1 outputs: ...= INTEGER: 48832
Running net-snmp 5.2.1 outputs: ...= INTEGER: 48832 KBytes
Running net-snmp 5.2.1 with -O U :...= INTEGER: 48832


I don't know how to tell my data input method to add on that additional output option, only when ran with net-snmp. I don't see why it would hurt, to add that option to your global Cacti config, so it will always NOT show the units.

The problem in this recent thread looks to be the same problem we're having here. Would this help any?

Also, I'm using net-snmp 5.1.2 and it shows the KBytes in the output which differs some from what you said. Would upgrading net-snmp also fix the problem since it is maybe left off in newer versions?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4 ... 10, 11, 12  Next
Page 3 of 12

 



Powered by phpBB © 2001, 2005 phpBB Group