Disk test, NFS and FTP queries
list Loris Serena
Hello List, I'm rather familiar with BigBrother but new to Xymon. My Xymon server 4.2.3 runs on CentOS and my monitored nodes are a mix of Solaris, Windows, Cisco, and NetApp hosts. Q1. Is there a way to avoid the Solaris 10 virtual filesystems (i.e./etc/dfs/sharetab) from being listed/graphed in the disk test? (possibly via conf setting on the Xymon client, rather than on the server) Also, the web page shows seven filesystems, whereas the RRD graphs show nine of them... (those 7 plus /devices and /var/run). How do I get rid of them? Q2. I manage to monitor NFS mounted filesystems (from a NetApp filer) via an external script from deadcat.net, but is there a way to get them show up in the disk test/column? This way I get to: a. save a column ;-) b. have all the filesystems shown under one roof c. have NFS filesystems automagically graphed Q3. Is there a functionality similar to the BB www/notes html files, and a template that matches the current xymon fonts/style? Or, where can I add custom info about my monitored nodes? I.e. serial numbers, helpdesk contacts, etc... Q4. I have had to enable ftp on one Solaris 10 box to allow it to just ftp itself (don't ask!), and therefore I configured /etc/hosts.allow as follows: [actarus]$ grep ftp /etc/hosts.allow in.ftpd: actarus [actarus]$ Now, on the bb-hosts on the Xymon server, if I put: 10.11.12.13 actarus # http://actarus/ ssh !telnet !ftp !smtp it gets RED, telling me that FTP is up and if I put 10.11.12.13 actarus # http://actarus/ ssh !telnet ftp !smtp# it gets YELLOW with the following message: Service ftp on actarus is not OK : Unexpected service response In fact, if I ftp actarus from the Xymon server cli, I get: $ ftp actarus Connected to actarus.boing.com. 421 Service not available, remote server has closed connection ftp> quit $ Is there a way around this? Thank in advance for your help Loris
list Alan Sparks
▸
Loris Serena wrote:
Q1. Is there a way to avoid the Solaris 10 virtual filesystems (i.e./etc/dfs/sharetab) from being listed/graphed in the disk test? (possibly via conf setting on the Xymon client, rather than on the server) Also, the web page shows seven filesystems, whereas the RRD graphs show nine of them... (those 7 plus /devices and /var/run). How do I get rid of them?
Can you possibly do this by listing them in the NORRDDISKS= section of hobbitserver.cfg? See also the hobbitserver.cfg man page.
▸
Q2. I manage to monitor NFS mounted filesystems (from a NetApp filer) via
an external script from deadcat.net <http://deadcat.net>;, but is there
▸
a way to get them show up in the disk test/column?
This way I get to:
a. save a column ;-)
b. have all the filesystems shown under one roof
c. have NFS filesystems automagically graphed
As a separate test, do not think you'll be able to do this.
▸
Q3. Is there a functionality similar to the BB www/notes html files, and a template that matches the current xymon fonts/style? Or, where can I add custom info about my monitored nodes? I.e. serial numbers, helpdesk contacts, etc...
Works just like BB, there is a notes directory. Also in the hobbitserver.cfg file, and mentioned in man page.
▸
Q4. I have had to enable ftp on one Solaris 10 box to allow it to just ftp itself (don't ask!), and therefore I configured /etc/hosts.allow as follows: [actarus]$ grep ftp /etc/hosts.allow in.ftpd: actarus [actarus]$ Now, on the bb-hosts on the Xymon server, if I put: 10.11.12.13 actarus # http://actarus/ ssh !telnet !ftp !smtp it gets RED, telling me that FTP is up and if I put 10.11.12.13 actarus # http://actarus/ ssh !telnet ftp !smtp# it gets YELLOW with the following message: Service ftp on actarus is not OK : Unexpected service response In fact, if I ftp actarus from the Xymon server cli, I get: $ ftp actarus
Connected to actarus.boing.com <http://actarus.boing.com>;.
▸
421 Service not available, remote server has closed connection
ftp> quit
$
Is there a way around this?
Not sure what you want. !ftp is telling you ftp is up and responding and shouldn't, but it is, hence the red. However, the FTP service /isn't/ responding correctly to your xymon server, since it disconnects (due to your access rules). Either you need to allow the xymon server to connect (via your hosts.allow rules), not monitor it, or hack around on the bb-services file (maybe even adding a custom ftp service that only checks connectivity).
list Henrik Størner
▸
In <user-cdc7fe58fab6@xymon.invalid> Loris Serena <user-718e3cd16d56@xymon.invalid> writes:
Q1. Is there a way to avoid the Solaris 10 virtual filesystems (i.e./etc/dfs/sharetab) from being listed/graphed in the disk test? (possibly via conf setting on the Xymon client, rather than on the server)
The hobbitclient-sunos.sh script in ~xymon/client/bin/ does some work to filter out the not-so-interesting filesystems. You can tweak that shell-script to do what you want - if it makes sense to ignore them everywhere, then please send me your modifications.
▸
Also, the web page shows seven filesystems, whereas the RRD graphs show nine of them... (those 7 plus /devices and /var/run). How do I get rid of them?
Delete the corresponding ~xymon/data/rrd/HOSTNAME/disk,<whatever>.rrd files.
▸
Q3. Is there a functionality similar to the BB www/notes html files, and a template that matches the current xymon fonts/style? Or, where can I add custom info about my monitored nodes? I.e. serial numbers, helpdesk contacts, etc...
Xymon supports the same notes-files as BB. So just put the notes-files in ~xymon/server/www/notes/
▸
Q4. I have had to enable ftp on one Solaris 10 box to allow it to just ftp itself (don't ask!), and therefore I configured /etc/hosts.allow as follows:
[actarus]$ grep ftp /etc/hosts.allow in.ftpd: actarus [actarus]$
Now, on the bb-hosts on the Xymon server, if I put: 10.11.12.13 actarus # http://actarus/ ssh !telnet !ftp !smtp it gets RED, telling me that FTP is up and if I put 10.11.12.13 actarus # http://actarus/ ssh !telnet ftp !smtp# it gets YELLOW with the following message:
Service ftp on actarus is not OK : Unexpected service response
In fact, if I ftp actarus from the Xymon server cli, I get:
$ ftp actarus Connected to actarus.boing.com. 421 Service not available, remote server has closed connection ftp> quit $
Is there a way around this?
The best way would probably be to copy the [ftp] section in the
~xymon/server/etc/bb-services file and create a new entry that
expects the "421" response - you would have to call it something
other than ftp, though.
Regards,
Henrik
--
Henrik Storner
list Loris Serena
Hi Henrik,
(months later, I know...) this is what worked for me in the
hobbitclient-sunos.sh (Xymon 4.2.3).
As usual, other users mileage may vary.
-bash-3.00$ diff hobbitclient-sunos.sh.orig hobbitclient-sunos.sh
25c25
< FSTYPES=`/bin/df -n -l|awk '{print $3}'|egrep -v
"^proc|^fd|^mntfs|^ctfs|^devfs|^objfs|^nfs|^lofs"|sort|uniq`
---FSTYPES=`/bin/df -n |awk '{print $NF}'|egrep -v"^proc|^fd|^mntfs|^ctfs|^devfs|^objfs|^sharefs|^lofs"|sort -r|uniq` 28c28 < /bin/df -F $1 -k | grep -v " /var/run" ---
/bin/df -F $1 -h | egrep -v " /var/run| /etc/svc/volatile"
31c31 < /bin/df -F $1 -k | grep -v " /var/run" | tail +2 ---
/bin/df -F $1 -h | egrep -v " /var/run| /etc/svc/volatile" | tail +2
36c36 < mount ---
/usr/sbin/mount
-bash-3.00$
Regards,
Loris
Henrik "Størner"
<user-ce4a2c883f75@xymon.invalid>
To
08/10/2009 22:35 user-ae9b8668bcde@xymon.invalid
cc
Please respond to Subject
user-ae9b8668bcde@xymon.invalid Re: [hobbit] Disk test, NFS and FTP
queries
▸
In <user-cdc7fe58fab6@xymon.invalid> Loris
Serena <user-718e3cd16d56@xymon.invalid> writes:
Q1. Is there a way to avoid the Solaris 10 virtual filesystems (i.e./etc/dfs/sharetab) from being listed/graphed in the disk test? (possibly via conf setting on the Xymon client, rather than on the server)
The hobbitclient-sunos.sh script in ~xymon/client/bin/ does some work to filter out the not-so-interesting filesystems. You can tweak that shell-script to do what you want - if it makes sense to ignore them everywhere, then please send me your modifications.
Also, the web page shows seven filesystems, whereas the RRD graphs show nine of them... (those 7 plus /devices and /var/run). How do I get rid of them?
Delete the corresponding ~xymon/data/rrd/HOSTNAME/disk,<whatever>.rrd files.