- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: duplicated process
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2002 05:19 PM
06-06-2002 05:19 PM
which reason can cause duplicated process?
I have a cron job ( monitoring router and switch), I have to kill them every 2~3 days.
any ideas?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2002 05:30 PM
06-06-2002 05:30 PM
Re: duplicated process
How are you monitoring the router and switch? Over snmpget or ping etc? Perhaps you would like to show us the cron script. Any errors in the cron log (or exit codes) and in your email (if STDERR has not been redirected to /dev/null)?
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2002 05:39 PM
06-06-2002 05:39 PM
Re: duplicated process
0,10,20, 30, 40, 50, **** /home/mrtg/mrtg mrtg.cfg
very strange, from cron log don't have
any error?!
but when ps -ef|grep mrtg|wc -l
the value >50 ( 2 days later)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2002 05:42 PM
06-06-2002 05:42 PM
Re: duplicated process
MRTG uses snmpget. Does it work on the command line:
# /home/mrtg/mrtg mrtg.cfg
Test whether this works properly. Also, check how long it takes to run. This is because MRTG uses a lock-file mechanism which waits for the previous MRTG session to complete before continuing with a current session.
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2002 05:55 PM
06-06-2002 05:55 PM
Re: duplicated process
the cron job is fine over 1 year, but the last
3 months got this problem.
is my box too old? it's just a J210, it will
grab around 60 routers
#sar -u 2 9
the idle is 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2002 06:01 PM
06-06-2002 06:01 PM
SolutionDoes running this take longer than 10 mins?
# /home/mrtg/mrtg mrtg.cfg
If it does, your MRTG processes will accumulate because each session will be waiting for the previous session which will be waiting for the previous session ... and so forth to complete.
One way is to uses separate configuration files instead of relying only on one single mrtg.cfg i.e. it can be z1routers.cfg, z2routers.cfg etc. In this case, z1routers.cfg and z2routers.cfg will be run as non-related separate mrtg sessions. You will not face this issue as long as each mrtg session takes less than 10 mins to run.
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2002 06:13 PM
06-06-2002 06:13 PM
Re: duplicated process
I forgot to mention that you can time how long it takes to run by doing this:
# time /home/mrtg/mrtg mrtg.cfg
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2002 06:34 PM
06-06-2002 06:34 PM