Hi
Thanks for your response.
Yes, I know the oldstatus and the services files. I'm not using the
cluster feature, all the hosts have their own configuration. What I
want is that when a monitor come down, it changes the file on the
remote webmin server. I was thinking in changing something in the
status module of all the hosts to make that, on a going down and a
going up it change the local oldstatus and the remote file (not using
the onup and ondown commands).
By the way, could it be possible to have the date internazionalizated
in the status module (in the emails and in the last scheduled status)?
Thanks
20 Sep 2005 10:26:13 +1000, Jamie Cameron <jca...@we...>:
> On Tue, 2005-09-20 at 01:48, Enrique Toledano wrote:
> > Hi Jamie and the rest of the list:
> >
> > I need some advice in a module I'm developing, so I think you'll be so
> > kind to help me.
> > I have many hosts (more than 200) monitorized with the status module
> > of webmin. Now, I want to show the status of all the computers in one
> > master host, showing them in a map, and giving them a color in
> > function of his actual status, with a new module.
> > I think this can be done with the module reading a local file than
> > contents the status of all the hosts that have alarms.
> > But, what do you think it's the best way to put the status of all the
> > hosts in one file of the master host?
> > I'm using the onup and ondown commands, but I think it's not the best w=
ay.
>
> Hi Enrique,
> If you are using the cluster feature of the status module to monitor all
> the systems from a single webmin server, then the information about
> which monitors are up and down is already available on that master
> server. It can be found in the file /etc/webmin/status/oldstatus , which
> is a text file in which each line is in the format :
>
> id=3Dstatus
>
> The 'id' is the ID of a monitor, and status is the result from the last
> check. 0 =3D down, 1 =3D up, other numbers indicate other types of failur=
es.
> You can read that file easily in a webmin module with the read_file
> funcion, which converts it into a hash.
>
> The actual details of each monitored services are in files in the
> /etc/webmin/status/services directory. You can either read those
> directory, or make foreign calls from your module to the status module
> to read them, with code like :
>
> &foreign_require("status", "status-lib.pl");
> $serv =3D &status::get_service($id):
>
> - Jamie
>
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server. Downl=
oad
> it for free - -and be entered to win a 42" plasma tv or your very own
> Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
> -
> Forwarded by the Webmin mailing list at web...@li....n=
et
> To remove yourself from this list, go to
> http://lists.sourceforge.net/lists/listinfo/webadmin-list
>
|