graph number of processes?
Moderators: Developers, Moderators
graph number of processes?
Hi,
is it possible to graph the number of processes like apache or mysqld via SNMP?
Regards,
stigmata
is it possible to graph the number of processes like apache or mysqld via SNMP?
Regards,
stigmata
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
No directly, but you could use a script to count the process names in the process table of the HOSTMIB and return a count.
PHP server would be a great way too implement this.
PHP server would be a great way too implement this.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Hi
you can use these 2 excellent templates sets :
- MySQL Graph Collection 2.0 : http://forums.cacti.net/viewtopic.php?t=6108
- ApacheStats 0.4 : http://forums.cacti.net/viewtopic.php?t=4028
you can use these 2 excellent templates sets :
- MySQL Graph Collection 2.0 : http://forums.cacti.net/viewtopic.php?t=6108
- ApacheStats 0.4 : http://forums.cacti.net/viewtopic.php?t=4028
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Hi
it should be possible with a little script
You can get a list of MySQL processes like this :
Parse the output, and then query each process memory size, for example :
it should be possible with a little script
You can get a list of MySQL processes like this :
Code: Select all
$ snmpwalk -v 1 -c public localhost hrSWRunName | grep "mysqld"
HOST-RESOURCES-MIB::hrSWRunName.3621 = STRING: "mysqld_safe"
HOST-RESOURCES-MIB::hrSWRunName.3712 = STRING: "mysqld"
HOST-RESOURCES-MIB::hrSWRunName.3771 = STRING: "mysqld"
HOST-RESOURCES-MIB::hrSWRunName.3772 = STRING: "mysqld"
HOST-RESOURCES-MIB::hrSWRunName.3773 = STRING: "mysqld"
Code: Select all
$ snmpwalk -v 1 -c public localhost hrSWRunPerfMem.3712
HOST-RESOURCES-MIB::hrSWRunPerfMem.3712 = INTEGER: 60516 KBytes
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
-
- Posts: 23
- Joined: Mon Jun 06, 2005 11:15 am
i am trying to use the apache template,
Apache Statistics - Bytes / Request :
not working -> ERROR: Could not parse color in ''
Apache Statistics - Hits / s :
working but i have no title nor legends ..
Apache Statistics - kBits / s120x500
working but i have no title nor legends ..
Apache Statistics - Thread Details
working but i have no title nor legends ..
Apache Statistics - Thread Details (%)
not working -> ERROR: Could not parse color in ''
i am sorry maybe its because i dont use cacti correctly .. i am a beginner with it. But i would appreciate any answer. Thank you.
Apache Statistics - Bytes / Request :
not working -> ERROR: Could not parse color in ''
Apache Statistics - Hits / s :
working but i have no title nor legends ..
Apache Statistics - kBits / s120x500
working but i have no title nor legends ..
Apache Statistics - Thread Details
working but i have no title nor legends ..
Apache Statistics - Thread Details (%)
not working -> ERROR: Could not parse color in ''
i am sorry maybe its because i dont use cacti correctly .. i am a beginner with it. But i would appreciate any answer. Thank you.
If you're talking on a win32 host, then yes you can. I wrote a script: http://forums.cacti.net/viewtopic.php?t=6661
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Who is online
Users browsing this forum: No registered users and 1 guest