Hi,
Maybye somebody could give me any tip or show the paragraph about monitoring the processes in docs.I wonder how to monitor online with snmp only couple of processes on my sun server. There are few java proceses among many others. And I can find all OIDs of the processes(java) and build the template and try to figure it out. But what will happen after restart of one or all the processes?The OID will probably change, because the last part of the OID come from the PID of the process. So, how to show cacti, that I want to follow the particualr process?
Do I have to use perl or another language to write the script to check the processes(e.g. with the name or path?) or can I prepare template with the indexed way?
Thanks for any help
bojus
monitoring particular process/sses with snmp from mib tree
Moderators: Developers, Moderators
Re: monitoring particular process/sses with snmp from mib tr
What information do you want to monitor?
For "number of process" which is combined by name, use PROC in snmpd.conf of target server and snmpwalk/snmpget from prTable (.1.3.6.1.4.1.2021.2).
- http://forums.cacti.net/viewtopic.php?f=21&t=34547
- Manpage of SNMPD.CONF
But if you want to monitor detailed attributes (load, memory use, etc.) of particular process individually,
you have to create custom script for that on Cacti server or target server.
Probably it won't solved by SNMP query alone..
(See also: http://forums.cacti.net/viewtopic.php?f=2&t=42920)
For "number of process" which is combined by name, use PROC in snmpd.conf of target server and snmpwalk/snmpget from prTable (.1.3.6.1.4.1.2021.2).
- http://forums.cacti.net/viewtopic.php?f=21&t=34547
- Manpage of SNMPD.CONF
But if you want to monitor detailed attributes (load, memory use, etc.) of particular process individually,
you have to create custom script for that on Cacti server or target server.
Probably it won't solved by SNMP query alone..
(See also: http://forums.cacti.net/viewtopic.php?f=2&t=42920)
Re: monitoring particular process/sses with snmp from mib tr
hi,
thanks for hints. I tried to add in my snmp.conf in solaris server:
proc spioch.ksh
(my test script) then I restarted the snmp with svcadm restart /application/management/snmpdx:default
and I invoked and got
/usr/sfw/bin/snmpwalk -v2c -c public localhost prTable
UCD-SNMP-MIB::prTable = No Such Object available on this agent at this OID
Hmm, do you have idea what is wrong??
Thanks
thanks for hints. I tried to add in my snmp.conf in solaris server:
proc spioch.ksh
(my test script) then I restarted the snmp with svcadm restart /application/management/snmpdx:default
and I invoked and got
/usr/sfw/bin/snmpwalk -v2c -c public localhost prTable
UCD-SNMP-MIB::prTable = No Such Object available on this agent at this OID
Hmm, do you have idea what is wrong??
Thanks
Re: monitoring particular process/sses with snmp from mib tr
OKi,
I found there are different conf files, the right one on my server is:
/etc/sma/snmp/snmpd.conf
I found there are different conf files, the right one on my server is:
/etc/sma/snmp/snmpd.conf
Re: monitoring particular process/sses with snmp from mib tr
That's correct.bojus wrote:I found there are different conf files, the right one on my server is:
/etc/sma/snmp/snmpd.conf
% svcs -a | grep sma
online Jun_29 svc:/application/management/sma:default
It's better to disable snmpdx & seaport.
Re: monitoring particular process/sses with snmp from mib tr
Hmm,
and when I will make entry
exec .1.3.6.1.4.1.2021.555 java_checker.ksh /var/test/java_checker.ksh
and then create the template with the OID .1.3.6.1.4.1.2021.555 on cacti side. The script will be execute every time the snmpwalk -v2c -c public HOST_IP .1.3.6.1.4.1.2021.555 will be run. -> with the cacti pooling frequenty?? Am I right?
And the order output is every time the same? , e.g.
I made the script java_checker.ksh
#!/usr/bin/ksh
echo "java1"
echo "java2"
................
echo "javaN"
the output will be like below
UCD-SNMP-MIB::ucdavis.555.100.1 = STRING: "java1"
UCD-SNMP-MIB::ucdavis.555.100.2 = STRING: "java2"
------------------------------
UCD-SNMP-MIB::ucdavis.555.100.N = STRING: "javaN"
Am I right?
Thx!
and when I will make entry
exec .1.3.6.1.4.1.2021.555 java_checker.ksh /var/test/java_checker.ksh
and then create the template with the OID .1.3.6.1.4.1.2021.555 on cacti side. The script will be execute every time the snmpwalk -v2c -c public HOST_IP .1.3.6.1.4.1.2021.555 will be run. -> with the cacti pooling frequenty?? Am I right?
And the order output is every time the same? , e.g.
I made the script java_checker.ksh
#!/usr/bin/ksh
echo "java1"
echo "java2"
................
echo "javaN"
the output will be like below
UCD-SNMP-MIB::ucdavis.555.100.1 = STRING: "java1"
UCD-SNMP-MIB::ucdavis.555.100.2 = STRING: "java2"
------------------------------
UCD-SNMP-MIB::ucdavis.555.100.N = STRING: "javaN"
Am I right?
Thx!
Who is online
Users browsing this forum: No registered users and 1 guest