Web monitoring of an UPS with NUT

In a previouspost we saw how to install NUT to administer an UPS.

Now we will see how monitoring the function through Apache server. Over Debian Etch.

Install cgi package:

elite:/etc/nut# apt-get install nut-cgi
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias... Hecho
Se instalarán los siguientes paquetes extras:
  defoma fontconfig-config libfontconfig1 libfreetype6 libgd2-xpm libjpeg62 libpng12-0 libx11-6 libx11-data libxau6 libxdmcp6 libxpm4
  ttf-dejavu x11-common
Paquetes sugeridos:
  defoma-doc psfontmgr x-ttcidfont-conf dfontmgr libfreetype6-dev libgd-tools
Paquetes recomendados
  libft-perl
Se instalarán los siguientes paquetes NUEVOS:
  defoma fontconfig-config libfontconfig1 libfreetype6 libgd2-xpm libjpeg62 libpng12-0 libx11-6 libx11-data libxau6 libxdmcp6 libxpm4
  nut-cgi ttf-dejavu x11-common
0 actualizados, 15 se instalarán, 0 para eliminar y 1 no actualizados.
Se necesita descargar 99,9kB/5973kB de archivos.
Se utilizarán 13,8MB de espacio de disco adicional después de desempaquetar.

The cgi copy in the directory /usr/lib/cgi-bin/nut/upsstats.cgi, then Apache must find this in its Virtual hosts. We can se hosts in /etc/apache2/sites-available/default:

<VirtualHost *>
        ServerName www.yourdomain.com

        ScriptAlias /sai/ "/usr/lib/cgi-bin/nut/"
        <Directory "/usr/lib/cgi-bin/nut">
                AllowOverride None
                Options +ExecCGI
                Order allow,deny
                Allow from all
        </Directory>

</VirtualHost>

In the hosts NUT file: cp /usr/share/doc/nut-cgi/examples/hosts.conf /etc/nut/, we must add the line:

MONITOR misai@localhost "UPS ELITE"

The name “misai” was declared in the configuration file /etc/nut/ups.conf.

Copy the visialization pages:

cp /usr/share/doc/nut-cgi/examples/upsstats.html /etc/nut/
cp /usr/share/doc/nut-cgi/examples/upsstats-single.html /etc/nut/

We can see the monitor in: http://www.yourdomain.com/sai/

One thought on “Web monitoring of an UPS with NUT

  1. France’s largest metropolis and located on the river Seine, Paris has been an important settlement for greater than two millennia.

    They are nicely taught about male anatomy they usually know which areas to hit for providing a very wholesome experiencethe escort services provider has bought the most effective ladies and they have additionally included some pioneering services which might be sure to provde the finest arousal that you have been so far longing for. So if need to experience the touch that pampers senses and gives the best arousal then Alexandra VIP escort companies is a job participant to take a look at in Paris. Escort Paris Women is nice resolution for gentlemen who would not have so much time to look for ladies for relationship.

    The northern outskirts of Paris have predominantly working-class districts with large population density, lack of basic amenities, with Paris escort ladies strolling up and down the streets. There are implausible cultural monuments, art and historic places that attract vacationers from all over the world, a few of which do not thoughts visiting Paris escorts company. By the Place de la Concorde (Harmony) Champs Elysees are linked to Rue de Rivoli – the longest road within the city, where elite escorts Paris are situated. Here are the famous Sorbonne University, the Faculty de France, the Paris Academy of Sciences Ecole Polytechnique and other main establishments. They usually get the escort women who proof their age, and proof their profiles.

    Ce mercredi en effet, le prefecture de police de Paris a annonce que deux reseaux de prostitution nigeriane ont ete demanteles coup sur coup a Paris dans le quartier de Barbes. These embody street prostitution , escort services , bars and residence prostitution Avenue prostitution is partly managed by pimps, while different staff are autonomous prostitutes. One of the http://paris-royal.club/contacts/ best ways ahead for central Paris is one among surroundings friendly, silent public transport, few autos, decreased pollution and paved streets. Je suis une charmante name girl Parisienne qui vous fera decouvrir la capitale : Paris et ses soirees branchees.

    There are many a number of sorts of bistros with Paris along with sites that you may are likely to take out with, along with lots of the eating locations get several historical past and nostalgia, so individuals thought it might a perception to concentrate on an individual specifically, termed your See d’Argent. In 1995, renowned Italian designer Francesco Smalto was convicted after sending quite a lot of suits to Gabon’s President Omar Bongo together with a group of call ladies.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>