How to install Node.js rpm package on Centos 6

The repository with spec file as well as the installation description can be found at Github.

yum install gcc-c++ openssl-devel
wget -P ~/rpmbuild/SOURCES http://nodejs.org/dist/v0.8.21/node-v0.8.21.tar.gz
wget -P ~/rpmbuild/SPECS https://raw.github.com/vibol/node-rpm-spec/master/nodejs.spec

Modify spec file to match current version.

rpmbuild -ba ~/rpmbuild/SPECS/nodejs.spec
rpm -ivh rpmbuild/RPMS/x86_64/nodejs-0.8.21-1.x86_64.rpm

init.d script can be found here. You would also need to modify it for your application.

Web page load speed monitoring with Munin

Here’s an example of the configuration:

[http_loadtime]
     env.target https://pydelion.com

Enabling:

ln -s /usr/share/munin/plugins/http_loadtime /etc/munin/plugins/http_loadtime

Test run:

[root@node1 ~]# sudo munin-run http_loadtime
loadtime.value 1.04
[root@node1 ~]#

Munin restart:

[root@node1 ~]# service  munin-node restart
Stopping Munin Node agents:                                [  OK  ]
Starting Munin Node:                                       [  OK  ]
[root@node1 ~]#

If you need external check you can use pingdom tools, for instance.