|
|
| Author |
Message |
BSOD2600 Cacti Moderator
Joined: 08 May 2004 Posts: 6767 Location: WA, USA
|
Posted: Fri May 25, 2007 11:05 am Post subject: |
|
|
| You'll have to write a custom script for that. |
|
| Back to top |
|
 |
Mika2006 Cacti User
Joined: 03 May 2007 Posts: 165
|
Posted: Fri May 25, 2007 2:28 pm Post subject: |
|
|
arg
:'(
but i think you can find with snmp
but i don't know how to find the oid |
|
| Back to top |
|
 |
idle
Joined: 26 May 2004 Posts: 49 Location: Russia: Saint Petersburg
|
Posted: Tue May 29, 2007 8:09 am Post subject: |
|
|
| Mika2006 wrote: | arg
:'(
but i think you can find with snmp
but i don't know how to find the oid |
Grab your favourite mib browser, fetch all the oids you can and grep them.
Сказали-бы по русски чего надо, Ваш английский читать нереально.
Sorry, for non english post. |
|
| Back to top |
|
 |
Mika2006 Cacti User
Joined: 03 May 2007 Posts: 165
|
Posted: Tue May 29, 2007 10:06 am Post subject: |
|
|
well
i look with getif but i d'ont find the oid
about this
on HP-UX
how i active all oid on my machine hp-ux? |
|
| Back to top |
|
 |
idle
Joined: 26 May 2004 Posts: 49 Location: Russia: Saint Petersburg
|
Posted: Tue May 29, 2007 11:53 pm Post subject: |
|
|
| Mika2006 wrote: | well
i look with getif but i d'ont find the oid
about this
on HP-UX
how i active all oid on my machine hp-ux? |
Well if you don't use mib-browser you can use something like this:
snmpwalk -v 1 -c public host | grep -i 'what you looking for'(e.g. grep -i excel). |
|
| Back to top |
|
 |
Mika2006 Cacti User
Joined: 03 May 2007 Posts: 165
|
Posted: Wed May 30, 2007 8:51 am Post subject: |
|
|
For a windows machine:
Thks i hav my script sh
| Quote: |
snmpwalk -v 1 -c public 192.168.0.5 | grep -c firefox
|
this count number processus firefox runnin on my host !
for a UNix machine i have this i do'nt understand what is please?
| Quote: | [root@localhost plugins]# snmpwalk -v 1 -c public 192.168.0.2 | grep -c menu
Error: OID not increasing: TCP-MIB::tcpConnState.127.0.0.1.55440.127.0.0.1.55342
>= TCP-MIB::tcpConnState.127.0.0.1.383.127.0.0.1.59816
0
|
|
|
| Back to top |
|
 |
BSOD2600 Cacti Moderator
Joined: 08 May 2004 Posts: 6767 Location: WA, USA
|
Posted: Wed May 30, 2007 11:33 am Post subject: |
|
|
| Please start your own thread, since this conversation doesn't have anything to do with the with the Windows processes script. |
|
| Back to top |
|
 |
Mika2006 Cacti User
Joined: 03 May 2007 Posts: 165
|
Posted: Wed Jun 13, 2007 7:37 am Post subject: |
|
|
| well i don't find how i can add number process runnng on all graph |
|
| Back to top |
|
 |
isosysadm
Joined: 23 May 2007 Posts: 11 Location: Austin
|
Posted: Fri Jul 06, 2007 2:34 pm Post subject: A noob-ish question re: BSOD's Win Proc script |
|
|
I preface this by noting that I am fairly new to system monitoring and SNMP in general and with cacti, in particular.
Monitor target is a Win2K box running SP4 and Exchange 2000 on it. MS's snmp service is installed and I can use snmpwalk against it (from the same Linux server running cacti) and pull back all sorts of information. Cacti "j" is running on a CentOS-5 Linux box.
I went through the README file and had a couple of questions:
1st, there are 4 .xml files included, but I only see coverage of the two templates and the win32 files. What is the data_query_snmp_xxxx file for?
In step 3, what file is my target xml? Also, what's my data input method (script data, script server or SNMP Data)?
Seems like no matter what permutation I use, I keep getting this:
| Code: | + Running data query [12].
+ Found type = '4 '[script query].
+ Could not find data query XML file at '/var/www/html/resource/snmp_queries/win32_procs.xml'
+ Error parsing XML file into an array.
+ Could not find data query XML file at '/var/www/html/resource/snmp_queries/win32_procs.xml'
+ Could not find data query XML file at '/var/www/html/resource/snmp_queries/win32_procs.xml'
+ Could not find data query XML file at '/var/www/html/resource/snmp_queries/win32_procs.xml' |
Now, Cacti is able to successfully interact with the Win2K server at some basic level, though the uptime looks off. Its been up a LOT longer than that. Anyway...:
| Code: | System: Hardware: x86 Family 15 Model 4 Stepping 10 AT/AT COMPATIBLE - Software: Windows 2000 Version 5.0 (Build 2195 Multiprocessor Free)
Uptime: 665773 (0 days, 1 hours, 50 minutes)
Hostname: EXCHANGE01
Location: xxxxxxxxxxx
Contact: xxxxxxxxx@xxxxxx |
Everything else in cacti seems to be working well, though everything else is Cisco network equipment.
Any assistance with this would be much appreciated. I don't *think* I need it spelled out. Just pointed in the right direction will be great!
Oh, and I have perused all 11 pages of this thread to try to avoid re-asking an answered question. |
|
| Back to top |
|
 |
BSOD2600 Cacti Moderator
Joined: 08 May 2004 Posts: 6767 Location: WA, USA
|
Posted: Fri Jul 06, 2007 6:49 pm Post subject: Re: A noob-ish question re: BSOD's Win Proc script |
|
|
| isosysadm wrote: | What is the data_query_snmp_xxxx file for?
In step 3, what file is my target xml? |
It's the data query template, which interfaces between the script (win32_procs.xml) and data template (cacti_data_template_snmp_running_process_info.xml). Just import all 3 cacti_XXX.xml files.
| isosysadm wrote: | | In step 3, what file is my target xml? Also, what's my data input method (script data, script server or SNMP Data)? |
If you imported the script, this is all specified for you automatically.
| isosysadm wrote: | | Seems like no matter what permutation I use, I keep getting this: |
sounds like you didn't place the win32_procs.xml in the correct folder or have permission problems. |
|
| Back to top |
|
 |
isosysadm
Joined: 23 May 2007 Posts: 11 Location: Austin
|
Posted: Mon Jul 09, 2007 1:52 pm Post subject: |
|
|
BSOD,
Thanks. It finally came together for me.
First, I whacked, then re-imported all 3 template files.
Then I finally realized that I didn't have to select "Data Queries" from the Left hand menu and then click "add". Instead I selected the device I wanted to monitor and applied the already existing data query to that device.
Bingo! all of the currently running procs on that host presented themselves for my selection. |
|
| Back to top |
|
 |
tviktor
Joined: 01 Apr 2007 Posts: 12
|
Posted: Tue Nov 13, 2007 1:14 am Post subject: |
|
|
| Is problem of manual reindex solved? |
|
| Back to top |
|
 |
BSOD2600 Cacti Moderator
Joined: 08 May 2004 Posts: 6767 Location: WA, USA
|
Posted: Tue Nov 13, 2007 1:46 pm Post subject: |
|
|
| Err what problem exactly is that? |
|
| Back to top |
|
 |
tviktor
Joined: 01 Apr 2007 Posts: 12
|
Posted: Tue Nov 13, 2007 4:42 pm Post subject: |
|
|
If process was restarted, its PID changes, and I need manually recache cactis poller (or click 'verbose query' under Management->devices), otherwise template 'asking' old PID :(
All settings done as explained in readme. |
|
| Back to top |
|
 |
BSOD2600 Cacti Moderator
Joined: 08 May 2004 Posts: 6767 Location: WA, USA
|
Posted: Tue Nov 13, 2007 6:49 pm Post subject: |
|
|
Ah correct. The script only reindexes when the number of processes changes. So if you terminate a process and then start it up again, cacti won't properly poll it until the process count changes.
The only work-around I know of is to change the reindex method to always. It's more expensive. Can you think of another way cacti would know when to reindex a device? |
|
| Back to top |
|
 |
|