X7ROOT File Manager
Current Path:
/usr/libexec/webmin/mon
usr
/
libexec
/
webmin
/
mon
/
📁
..
📄
CHANGELOG
(113 B)
📄
README
(287 B)
📄
backup_config.pl
(732 B)
📄
config
(201 B)
📄
config-Fedora-Linux
(189 B)
📄
config.info
(362 B)
📄
config.info.ca
(397 B)
📄
config.info.cs
(375 B)
📄
config.info.de
(429 B)
📄
config.info.es
(399 B)
📄
config.info.nl
(420 B)
📄
config.info.no
(381 B)
📄
config.info.ru
(506 B)
📄
config.info.uk
(511 B)
📄
create_watch.cgi
(281 B)
📄
edit_auth.cgi
(1.43 KB)
📄
edit_global.cgi
(2.01 KB)
📄
edit_service.cgi
(8.05 KB)
📄
edit_user.cgi
(1.38 KB)
📄
edit_watch.cgi
(2.21 KB)
📄
feedback_files.pl
(113 B)
📁
help
📁
images
📄
index.cgi
(1.52 KB)
📄
install_check.pl
(329 B)
📁
lang
📄
list_groups.cgi
(832 B)
📄
list_periods.cgi
(2.09 KB)
📄
list_users.cgi
(1.03 KB)
📄
list_watches.cgi
(1.26 KB)
📄
module.info
(181 B)
📄
module.info.af
(0 B)
📄
module.info.af.auto
(108 B)
📄
module.info.ar
(0 B)
📄
module.info.ar.auto
(136 B)
📄
module.info.be
(0 B)
📄
module.info.be.auto
(166 B)
📄
module.info.bg
(0 B)
📄
module.info.bg.auto
(171 B)
📄
module.info.ca
(117 B)
📄
module.info.ca.auto
(13 B)
📄
module.info.cs
(37 B)
📄
module.info.cs.auto
(86 B)
📄
module.info.da
(0 B)
📄
module.info.da.auto
(108 B)
📄
module.info.de
(111 B)
📄
module.info.de.auto
(12 B)
📄
module.info.el
(0 B)
📄
module.info.el.auto
(192 B)
📄
module.info.es
(32 B)
📄
module.info.es.auto
(91 B)
📄
module.info.eu
(0 B)
📄
module.info.eu.auto
(121 B)
📄
module.info.fa
(0 B)
📄
module.info.fa.auto
(168 B)
📄
module.info.fi
(0 B)
📄
module.info.fi.auto
(105 B)
📄
module.info.fr
(0 B)
📄
module.info.fr.auto
(126 B)
📄
module.info.he
(0 B)
📄
module.info.he.auto
(136 B)
📄
module.info.hr
(0 B)
📄
module.info.hr.auto
(119 B)
📄
module.info.hu
(0 B)
📄
module.info.hu.auto
(122 B)
📄
module.info.it
(0 B)
📄
module.info.it.auto
(121 B)
📄
module.info.ja
(0 B)
📄
module.info.ja.auto
(160 B)
📄
module.info.ko
(0 B)
📄
module.info.ko.auto
(138 B)
📄
module.info.lt
(0 B)
📄
module.info.lt.auto
(141 B)
📄
module.info.lv
(0 B)
📄
module.info.lv.auto
(128 B)
📄
module.info.ms
(105 B)
📄
module.info.ms.auto
(12 B)
📄
module.info.mt
(0 B)
📄
module.info.mt.auto
(132 B)
📄
module.info.nl
(28 B)
📄
module.info.nl.auto
(89 B)
📄
module.info.no
(31 B)
📄
module.info.no.auto
(82 B)
📄
module.info.pl
(0 B)
📄
module.info.pl.auto
(112 B)
📄
module.info.pt
(0 B)
📄
module.info.pt.auto
(122 B)
📄
module.info.pt_BR
(0 B)
📄
module.info.pt_BR.auto
(131 B)
📄
module.info.ro
(0 B)
📄
module.info.ro.auto
(128 B)
📄
module.info.ru
(38 B)
📄
module.info.ru.auto
(154 B)
📄
module.info.sk
(0 B)
📄
module.info.sk.auto
(122 B)
📄
module.info.sl
(0 B)
📄
module.info.sl.auto
(113 B)
📄
module.info.sv
(0 B)
📄
module.info.sv.auto
(117 B)
📄
module.info.th
(0 B)
📄
module.info.th.auto
(255 B)
📄
module.info.tr
(0 B)
📄
module.info.tr.auto
(123 B)
📄
module.info.uk
(0 B)
📄
module.info.uk.auto
(214 B)
📄
module.info.ur
(0 B)
📄
module.info.ur.auto
(158 B)
📄
module.info.vi
(0 B)
📄
module.info.vi.auto
(155 B)
📄
module.info.zh
(0 B)
📄
module.info.zh.auto
(121 B)
📄
module.info.zh_TW
(0 B)
📄
module.info.zh_TW.auto
(130 B)
📄
mon-lib.pl
(8.96 KB)
📄
mon.cgi
(998 B)
📄
mon_action.cgi
(415 B)
📄
moncmd.diff
(2.52 KB)
📄
moncmd.pl
(5.66 KB)
📄
monshow.cgi
(564 B)
📄
monshowrc
(166 B)
📄
restart.cgi
(180 B)
📄
save_auth.cgi
(625 B)
📄
save_global.cgi
(1.7 KB)
📄
save_groups.cgi
(656 B)
📄
save_periods.cgi
(1.11 KB)
📄
save_service.cgi
(4.71 KB)
📄
save_user.cgi
(823 B)
📄
save_watch.cgi
(370 B)
📄
start.cgi
(226 B)
📄
stop.cgi
(423 B)
Editing: edit_watch.cgi
#!/usr/bin/perl # edit_watch.cgi # Display a new or existing watch require './mon-lib.pl'; &ReadParse(); $conf = &get_mon_config(); $watch = $conf->[$in{'idx'}]; &ui_print_header(undef, $text{'watch_title'}, ""); print "<form action=save_watch.cgi>\n"; print "<input type=hidden name=idx value='$in{'idx'}'>\n"; print "<table border width=100%>\n"; print "<tr $tb> <td><b>$text{'watch_header'}</b></td> </tr>\n"; print "<tr $cb> <td><table width=100%>\n"; print "<tr> <td><b>$text{'watch_group'}</b></td>\n"; print "<td><select name=group>\n"; foreach $s (&find("hostgroup", $conf)) { printf "<option %s>%s</option>\n", $s eq $watch->{'values'}->[0] ? "selected" : "", $s->{'values'}->[0]; $found++ if ($s eq $watch->{'values'}->[0]); } print "<option selected>$watch->{'values'}->[0]</option>\n" if (!$found); print "</select></td> </tr>\n"; print "<tr> <td valign=top><b>$text{'watch_services'}</b></td>\n"; print "<td colspan=3> <table border width=100%>\n"; print "<tr $tb> <td><b>$text{'watch_service'}</b></td> ", "<td><b>$text{'watch_monitor'}</b></td> ", "<td><b>$text{'watch_interval'}</b></td> ", "<td><b>$text{'watch_periods'}</b></td> </tr>\n"; foreach $s (&find("service", $watch->{'members'})) { print "<tr $cb>\n"; print "<td><a href='edit_service.cgi?idx=$in{'idx'}&", "sidx=$s->{'index'}'>$s->{'value'}</a></td>\n"; local $mon = &find_value("monitor", $s->{'members'}); print "<td>$mon</td>\n"; local $int = &find_value("interval", $s->{'members'}); print "<td>$int</td>\n"; local @pers = &find("period", $s->{'members'}); local $pers = join(" , ", map { $_->{'value'} } @pers); print "<td>$pers</td>\n"; print "</tr>\n"; } print "</table>\n"; print "<a href='edit_service.cgi?idx=$in{'idx'}&new=1'>", "$text{'watches_sadd'}</a>\n"; print "</td> </tr>\n"; print "</table></td></tr></table>\n"; print "<table width=100%><tr>\n"; if ($in{'new'}) { print "<td><input type=submit value='$text{'create'}'></td>\n"; } else { print "<td><input type=submit value='$text{'save'}'></td>\n"; print "<td align=right><input type=submit name=delete ", "value='$text{'delete'}'></td>\n"; } print "</tr></table></form>\n"; &ui_print_footer("list_watches.cgi", $text{'watches_return'});
Upload File
Create Folder