Help - Search - Members - Calendar
Full Version: HOWTO add Urchin Service Status To The Server Status List!
The Planet Forums > Control Panels > cPanel/WHM > Cpanel/WHM HOWTOs
Pages: 1, 2, 3
aussie
Urchin Monitor
HighRiskCO
QUOTE
Originally posted by aussie
Its coming soon! I'm testing this one and so far it's working great. Anyone want this? icon_wink.gif It will monitor the CRASHED status for the scheduler including the crashed status of Urchin, then restart everthing so we never need to see Urchin dying like it does under Cpanel. Again, so many people are running Urchin on Cpanel and DarkOrb is so lazy in coming out with a solution when so many millions of RackShack Clients are using it and have complained about unnecessary Urchin shutdowns.

aussie...

Sounds great! icon_biggrin.gif

Tired of ./urchinctl start icon_sad.gif How far away are you from releasing this?

You would think DarkOrb would have taken care of this already :confused: Put like the old saying goes: If you want anything done right, you have to do it yourself! :rolleyes:

Your HowTo's have been a great help to many of us. I am looking forward to this one!

Thanks!
GetWired
Ditto here.

Aussie's howto's rock major buttocks.
Water
I will be looking forward to this. icon_smile.gif
aussie
QUOTE
Originally posted by HighRiskCO
aussie...

Sounds great! icon_biggrin.gif

Tired of ./urchinctl start icon_sad.gif How far away are you from releasing this?

You would think DarkOrb would have taken care of this already :confused: Put like the old saying goes: If you want anything done right, you have to do it yourself! :rolleyes:

Your HowTo's have been a great help to many of us. I am looking forward to this one!

Thanks!


TODAY!

Im still testing it. So far Urchin has died 5 times with 5 messages being sent to me in the past 12hrs.

Urchin failed @ Sun Aug 31 12:49:07 2003. A restart was attempted automagicly.

And it was restarted auto. without any help from me! icon_biggrin.gif
aussie
Its ready, go for your lives! Ready the origional messages to get the link!
Water
Works great.

Maybe you can make one of those scripts for your PostgreSQL Monitor. icon_smile.gif
piranha
Good job.
Installed and works fine.

One problem I encountered was the fact that I had urchin installed in /usr/local/urchin (my version is 5).
So I just created a symlink called /usr/local/urchin5 and everything seems to work fine.
You're genius.
aussie
QUOTE
Originally posted by piranha
Good job.
Installed and works fine.

One problem I encountered was the fact that I had urchin installed in /usr/local/urchin (my version is 5).
So I just created a symlink called /usr/local/urchin5 and everything seems to work fine.
You're genius.


You going to need to keep the symlink active because the script /scripts/restartsrv has been modified to accomodate the path to where i though Urchin5 is installed by default.

So where does everyone have their Urchin5 installed? Whats the proper path? I know that if you upgraded from Urchin4 -> Urchin 5 it should still be Urchin4.
piranha
As I said.. I solved it with symlink since I didn't know if you don't use full path in the main scripts.
One wish though: uninstall procedure for those "technically challenged". At one point there may be need to remove it, so preparing instructions in advance will be a lovely thing from you.

Long live aussie! icon_smile.gif

P.S. If you do fresh install of Urchin5, it uses /usr/local/urchin directory.
aussie
Uninstall script is in the works.

Ahh ok, then let me add additional code for /usr/local/urchin.
aussie
Ok that should take care of everyone!
InternetPEI
Thanks!! Worked like a charm!!
aussie
Great, there is a uninstall script on my site if anyone needs it.
aussie
Did everyone notice that i had to chattr +i /scripts/restartsrv???

This was necessary so as not to overwrite the script during the /scripts/updatenow run. If you run /scripts/updatenow and see something like, rename .restartsrv.yt9gRr -> restartsrv : Operation not permitted, then you know why. If you chattr -i the file you will loose the ability to monitor Urchin any futher because the updatenow script will overwrite it. Unless of course cPanel adds the necessary code to restartsrv this issue will not go away. If your restartsrv is overwritten you can either run the install script again or add the code manually. What a pain!!!
Ayoye
Thanks Aussie

Work great icon_biggrin.gif
GetWired
Worked great icon_biggrin.gif

So aussie, does this mean that everytime urchin goes down it'll try to automatically start?

I hate that bug that everytime you upgrade cpanel, urchin stops.
aussie
QUOTE
Originally posted by GetWired
Worked  great icon_biggrin.gif  

So aussie, does this mean that everytime urchin goes down it'll try to automatically start?

I hate that bug that everytime you upgrade cpanel, urchin stops.


icon_cool.gif
GetWired
Mucho kisses for aussie. icon_smile.gif
jmr
thats good work...

hats off to you......

we was so sick of restarting Urchin we gave up!
GetWired
Hmm, I did this and then did that Postgre howto, and now all 3 show up red.

Its been about 20 minutes after I put in the postgre edit, and its all showing red.

Help aussie?
GetWired
Just noticed. I never had postgre installed. icon_razz.gif

I removed that, but now urchin is still showing 2 reds.

What should I do?
aussie
I cant make this any easier than I have and that is by running the scripts. I suggest you get the uninstall script, run it, then check to see if you have Urchin installed and that its running. Then re run the install script.

Good luck! icon_razz.gif
GetWired
2 greens.

good deal
aussie
How is this working for everyone? Scheduler staying alive? Need feedback!
TySoft
Looking great! Been staying green for me.
aussie
QUOTE
Originally posted by TySoft
Looking great!  Been staying green for me.


Green is my favourite color!
jmr
Has stayed up and added all domains and stats just fine.
aussie
QUOTE
Originally posted by jmr
Has stayed up and added all domains and stats just fine.


Thanks for letting us know jmr!
jmr
Furthermore just updated to latest version R158 Urchin was stopped during the procedure and restarted just fine icon_smile.gif
L4S
Aussie,

The scheduler is perfect, has not missed a beat for the last 2 days.

Great job, you have officially become a Guru

:rolleyes:
we are all humbled.


Cheers,
L4s.
aussie
QUOTE
Originally posted by L4S
Aussie,

The scheduler is perfect, has not missed a beat for the last 2 days.

Great job, you have officially become a Guru  

:rolleyes:  
we are all humbled.


Cheers,
L4s.


Great Mr! Guru? icon_wink.gif I have submitted the code to Cpanel. Hopefully they will include it in their next update so it will become part of something Urchin users need. Thanks for your feedback!

-AuZ
aussie
QUOTE
Originally posted by aussie
Great Mr! Guru? icon_wink.gif I have submitted the code to Cpanel. Hopefully they will include it in their next update so it will become part of something Urchin users need. Thanks for your feedback!

-AuZ


I wrote to DBraco about this code change but so far no response. I thought that maybe he implamented it silently but after getting the lastest scripts i found nothing added. I would like him to respond on this issue since we all need this. Just because Urchin is now an integrated part of Cpanel it doesnt mean the job has been completed. Its only 3/4 done so far and we need this integrated as part of Cpanel, otherwise Urchin, as it stands is useless to us if its going to shutdown all the time. Hmmm!
aussie
It seems that the scheduler is misbehaving a bit and the status indicator is staying GREEN if the scheduler goes down. Did anyone notice this? In other words if you log into Urchin and check the status of the scheduler does it say its down? Now look at the status display does it show GREEN?

Ok so thats what i fixed this morning. I will be releasing an update script to fix that. It will also correct Postgresql.

Thanks guys.
GetWired
Well its starting the services fine.

Upgraded cpanel, it started.
Rebooted server, it started.

Pretty nice.

Is the updated version already on the website? Do we just follow the installtion instructions to copy over the old installtion?

Thanks aussie.
aussie
Not yet!
HighRiskCO
aussie is da man icon_smile.gif icon_smile.gif icon_smile.gif icon_smile.gif icon_smile.gif

Installed your first release and haven't had a problem yet! icon_biggrin.gif

Urchin and Scheduler has been up and running since your first release!

What a pleasure!

You have out done yourself with this one icon_cool.gif
QUOTE
I wrote to DBraco about this code change but so far no response. I thought that maybe he implamented it silently but after getting the lastest scripts i found nothing added. I would like him to respond on this issue since we all need this. Just because Urchin is now an integrated part of Cpanel it doesnt mean the job has been completed. Its only 3/4 done so far and we need this integrated as part of Cpanel, otherwise Urchin, as it stands is useless to us if its going to shutdown all the time. Hmmm!

Rome wasn't built overnight but once the word is out about this one, it will be just a matter of time!

Great job aussie!
aussie
Around 1am this morning i happen to log into Urchin and found the Urchin Scheduler in a stopped state. Looking at my stats everthing showed green. Looked at the other boxes same thing, Urchin Scheduler had also stopped at 1am and the stats was again green which is incorrect. I found the error and corrected it. I will let everyone know when the update will be available. After i finished modifying a few things.
aussie
There is a new updater script on my site. Follow the directions for ur-update. Run this script only if have already installed the Urchin Monitoring stuff. Run the other script only if you have not installed Urchin Monitoring yet.

Please be patient after upgrading. Dont expect your status indicators to run red immediately. One on of my boxes it took over 40min until it turned GREEN so be patient.

If you have installed Postgresql it will reinstall it so that it works properly with the Urchin status monitor and there is no confict anymore. It also fixes a small bug in the detection of the Urchin Status monitor. If you have not installed postgresql it will install it for you.

Good luck!
aussie
And one more thing, I have just completed the Monitoring of MailScanner as well! icon_biggrin.gif icon_biggrin.gif icon_biggrin.gif
martinjr76
after install i noticed urchin, urchin-schduler and postgrespl are all down.. will wait another 15mins and see if they come back up or not icon_sad.gif
ricoche
Very nice! Everything worked well for me. Thank you.

- Jim
aussie
QUOTE
Originally posted by martinjr76
after install i noticed urchin, urchin-schduler and postgrespl are all down.. will wait another 15mins and see if they come back up or not icon_sad.gif


I had to wait over 40min on one of my boxes. 15min is not waiting long enough.
GetWired
Upgraded worked fine!

Urchins are working and showing in the green, but the fincky postgre is down, and its not running on my server.

Was this suppose to install postgre the database scripts, or just the montior, or both? Where can I find a howto on how to install postgre?

Aussie da man. Think you guys could put a cpanel tab on top of the linux network template? icon_razz.gif
aussie
QUOTE
Originally posted by GetWired
Upgraded worked fine!

Urchins are working and showing in the green, but the fincky postgre is down, and its not running on my server.

Was this suppose to install postgre the database scripts, or just the montior, or both? Where can I find a howto on how to install postgre?

Aussie da man. Think you guys could put a cpanel tab on top of the linux network template? icon_razz.gif


You can do 1 of two things. You can remove the postgresql files because they are now installed by default, silly me! or you can install postgresql. The choice is yours.

You can install postgresql by running the follow as root;

/scripts/installpostgres

If you would rather just remove the postgresql monitoring

cd /etc/chkserv.d
rm -f postgresql
cd /var/run/chk*
rm -f postgresql
/etc/rc.d/init.d/chkservd restart

icon_smile.gif
Got-Hosting
I am having serious Urchin 5 issues.

In the admin control panel, the scheduler still says it is not running, but the service montior (thanks aussie) says it is running fine.

No graphs display for many users. Some users can click on the standard button (which gives an error) and then click on traffic and the graphs show up, but others, nothing shows up either way.

UTM does not seem to be working at all.

My process list looks like this:

24770 ? S 0:00 /usr/local/urchin4/bin/urchind
24814 ? S 0:00 /usr/local/urchin4/bin/urchind stop
25107 ? S 0:00 /usr/local/urchin4/bin/urchind
25153 ? S 0:00 /usr/local/urchin4/bin/urchind stop
31661 ? S 0:00 /usr/local/urchin4/bin/urchinwebd -f /usr/local/urchi
31662 ? S 0:00 /usr/local/urchin4/bin/urchinwebd -f /usr/local/urchi
31663 ? S 0:00 /usr/local/urchin4/bin/urchinwebd -f /usr/local/urchi
31664 ? S 0:00 /usr/local/urchin4/bin/urchinwebd -f /usr/local/urchi
31665 ? S 0:00 /usr/local/urchin4/bin/urchinwebd -f /usr/local/urchi
31666 ? S 0:00 /usr/local/urchin4/bin/urchinwebd -f /usr/local/urchi
31668 ? S 0:00 /usr/local/urchin4/bin/urchind
31706 ? S 0:00 /usr/local/urchin4/bin/urchinwebd -f /usr/local/urchi
31707 ? S 0:00 /usr/local/urchin4/bin/urchinwebd -f /usr/local/urchi
31708 ? S 0:00 /usr/local/urchin4/bin/urchinwebd -f /usr/local/urchi

Which seems excessive.

Anyone have thoughts?
aussie
QUOTE
Originally posted by Got-Hosting
I am having serious Urchin 5 issues.

In the admin control panel, the scheduler still says it is not running, but the service montior (thanks aussie) says it is running fine.

No graphs display for many users.  Some users can click on the standard button (which gives an error) and then click on traffic and the graphs show up, but others, nothing shows up either way.

UTM does not seem to be working at all.

My process list looks like this:

24770 ?        S      0:00 /usr/local/urchin4/bin/urchind
24814 ?        S      0:00 /usr/local/urchin4/bin/urchind stop
25107 ?        S      0:00 /usr/local/urchin4/bin/urchind
25153 ?        S      0:00 /usr/local/urchin4/bin/urchind stop
31661 ?        S      0:00 /usr/local/urchin4/bin/urchinwebd -f /usr/local/urchi
31662 ?        S      0:00 /usr/local/urchin4/bin/urchinwebd -f /usr/local/urchi
31663 ?        S      0:00 /usr/local/urchin4/bin/urchinwebd -f /usr/local/urchi
31664 ?        S      0:00 /usr/local/urchin4/bin/urchinwebd -f /usr/local/urchi
31665 ?        S      0:00 /usr/local/urchin4/bin/urchinwebd -f /usr/local/urchi
31666 ?        S      0:00 /usr/local/urchin4/bin/urchinwebd -f /usr/local/urchi
31668 ?        S      0:00 /usr/local/urchin4/bin/urchind
31706 ?        S      0:00 /usr/local/urchin4/bin/urchinwebd -f /usr/local/urchi
31707 ?        S      0:00 /usr/local/urchin4/bin/urchinwebd -f /usr/local/urchi
31708 ?        S      0:00 /usr/local/urchin4/bin/urchinwebd -f /usr/local/urchi

Which seems excessive.

Anyone have thoughts?


You should probably uninstall the monitor, use the script. Then you need to find out why your Urchin is not running properly. You should not install monitoring on a system where Urchin is not running properly. Not sure what the two stop processes above are but you should probably shut Urchin down then make sure all Urchin processes a killed. Do a killall -9 urchind and then a killall -9 urchinwebd to be sure. Then start it up again. Run it for awhile. If its not running properly there is no use in installing monitoring.

The processes you listed are not excessive, at least i see about the same number of them but the STOP is whacko. I dont even know what that is. The monitor will fail if your processes look wrong.
Got-Hosting
Okay, the uninstall seems to have worked well, and I killed all the processes and restarted urchin and it is looking good for the moment.

In ps, what is the task name for the scheduler? It still comes up as being down in the admin panel.

Thanks for your help!
martinjr76
ok everything is green icon_razz.gif

I'm wondering if anyone have any problem after upgrading from v4 to v5? Mine stopped showing stats after upgrading to v5 icon_sad.gif
GetWired
I'm pretty sure what the script does is that it finds the version you're running, and makes the montoir watch that process.

If its not working and your sure its running, try uninstalling and installing it again.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.