Hi Narsimha Please find the detailed steps as below:
1. Install the snmpd daemon on the target machine that you want to monitor , use yum to install it. command is : yum install net-snmp 2. Open the file snmpd.conf from the directory /etc/snmp , you need to locate for the lines as below : view systemview included .1.3.6.1.2.1.1 view systemview included .1.3.6.1.2.1.25 The second line as above is normally like: "view systemview included .1.3.6.1.2.1.25.1.1" , you have to edit it to : .1.3.6.1.2.1.25 so that you can query the entire HOST-RESOURCES-MIB. 3. Re-start the snmpd daemon using the command : "service snmpd restart" and you are good to start monitoring it. Rest of the steps remain the same as mentioned in the mail thread below. Thanks Jatin On 4/10/2010 12:27 PM, Jatin wrote: > Hi Narsimha > > I followed these steps: > > 1. Installed the snmpd daemon on the target machine that you want to > monitor , use yum to install it. command is : yum install net-snmp > > 2. open the file snmpd.conf file from the directory /etc/snmp , you need > to edit this file. locate the line which says "view systemview x.x.x.x.x > " , make sure to add the oid for the first element in the > HOST-RESOURCES-MIB , usually if you dont edit this file then you will be > only able to get reply for only one mib parameter from the > HOST-RESOURCES-MIB. > > 3. Restart the snmpd daemon on the target machine using the command : > service snmpd restart > > 4. In the HOST-RESOURCES-MIB , there is one parameter which shows the > values for the processes running in the system , which is hrSWrun (not > sure about the name though) locate using a MIB browser for the > paremeters supported in this MIB. > > I will check out and reply with some more detail when i go to office on > monday , try if you can figure out with the above mentioned clues so far. > > Thanks > Jatin > > Narasimha Tadepalli wrote: > >> Hi Jatin >> >> Could you explain briefly how did you solve your problem. Look like you >> solved with snmp. Please explain how did you tied snmp to nagios etc stuff. >> I am also in need of solution for exact similar situation. >> >> Thanks >> Nars >> >> -----Original Message----- >> From: Jatin Davey [mailto:[email protected]] >> Sent: Tuesday, March 09, 2010 1:57 AM >> To: Matt Simmons >> Cc: [email protected] >> Subject: Re: [Nagios-users] Monitoring a process with its pid >> >> Thanks Matt, >> >> It solved my problem. >> >> Thanks >> Jatin >> >> On 3/8/2010 9:01 PM, Matt Simmons wrote: >> >> >>> If you have snmp enabled on the hosts, you can pull that information out: >>> >>> ~$ snmpwalk -v 2c -c COMMUNITY myhost.mydomain.com >>> HOST-RESOURCES-MIB::hrSWRunName.3309 >>> HOST-RESOURCES-MIB::hrSWRunName.3309 = STRING: "crond" >>> >>> >>> >>> On Mon, Mar 8, 2010 at 8:10 AM, Jatin Davey<[email protected]> wrote: >>> >>> >>> >>>> Let me re-phrase it a little , >>>> >>>> Basically what i want is to give the process id as the input and make >>>> sure on that target machine i have the process with the given id running >>>> , once it stops there might not be the process running with that id and >>>> hence i need to raise an email notification alert. >>>> >>>> Thanks >>>> Jatin >>>> >>>> On 3/8/2010 5:41 PM, Jatin Davey wrote: >>>> >>>> >>>> >>>>> Hi All >>>>> >>>>> Do we have a plugin that can monitor process id (pid) on a target >>>>> machine , the target machine could be anything such as windows , linux , >>>>> solaris etc and alert with an email notification when the process id >>>>> changes. >>>>> >>>>> Appreciate your responses. >>>>> >>>>> Thanks >>>>> Jatin >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Download Intel® Parallel Studio Eval >>>>> Try the new software tools for yourself. Speed compiling, find bugs >>>>> proactively, and fine-tune applications for parallel performance. >>>>> See why Intel Parallel Studio got high marks during beta. >>>>> http://p.sf.net/sfu/intel-sw-dev >>>>> _______________________________________________ >>>>> Nagios-users mailing list >>>>> [email protected] >>>>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>> ::: Please include Nagios version, plugin version (-v) and OS when >>>>> reporting any issue. >>>>> ::: Messages without supporting info will risk being sent to /dev/null >>>>> >>>>> >>>>> >>>>> >>>>> >>>> ------------------------------------------------------------------------------ >>>> Download Intel® Parallel Studio Eval >>>> Try the new software tools for yourself. Speed compiling, find bugs >>>> proactively, and fine-tune applications for parallel performance. >>>> See why Intel Parallel Studio got high marks during beta. >>>> http://p.sf.net/sfu/intel-sw-dev >>>> _______________________________________________ >>>> Nagios-users mailing list >>>> [email protected] >>>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>>> ::: Please include Nagios version, plugin version (-v) and OS when >>>> reporting any issue. >>>> ::: Messages without supporting info will risk being sent to /dev/null >>>> >>>> >>>> >>>> >>> >>> >>> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> _______________________________________________ >> Nagios-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when reporting >> any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> >> >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> _______________________________________________ >> Nagios-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when reporting >> any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> >> >> > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Nagios-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Nagios-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
