pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/48575: xymon/xymonclient doesn't do inode test by default on NetBSD



>Number:         48575
>Category:       pkg
>Synopsis:       xymon/xymonclient doesn't do inode test by default on NetBSD
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 05 21:40:00 +0000 2014
>Originator:     gendalia%NetBSD.org@localhost
>Release:        NetBSD 6.1.3
>Organization:
        
>Environment:
System: NetBSD afs-24.iastate.edu 6.1.3 NetBSD 6.1.3 (MONOLITHIC) i386
Architecture: i386
Machine: i386
>Description:
xymonclient doesn't have the configuration to do inode tests on NetBSD
by default. 
>How-To-Repeat:
Install. notice the lack of the inode test.
>Fix:

I haven't upgraded my xymon server yet to test that this works. It should.
patch-client_xymonclient-netbsd.sh is necessary on the client, and changes to:

--- client/xymonclient-netbsd.sh.orig   2011-07-31 21:01:52.000000000 +0000
+++ client/xymonclient-netbsd.sh
@@ -20,7 +20,12 @@ uptime
 echo "[who]"
 who
 echo "[df]"
-df -P -tnonfs,kernfs,procfs,cd9660,null | sed -e '/^[^         ][^     ]*$/{
+df -P -tnonfs,kernfs,procfs,cd9660,null,ptyfs,fdesc | sed -e '/^[^     ][^     
]*$/{
+N
+s/[    ]*\n[   ]*/ /
+}'
+echo "[inode]"
+df -i -tnonfs,kernfs,procfs,cd9660,null,ptyfs,fdesc | sed -e '/^[^     ][^     
]*$/{
 N
 s/[    ]*\n[   ]*/ /
 }'


patch-xymond_client_netbsd.c is necessary on the server, and has: 

--- xymond/client/netbsd.c.orig 2014-02-05 20:03:39.000000000 +0000
+++ xymond/client/netbsd.c
@@ -24,6 +24,7 @@ void handle_netbsd_client(char *hostname
        char *psstr;
        char *topstr;
        char *dfstr;
+       char *inodestr;
        char *meminfostr;
        char *msgsstr;
        char *netstatstr;
@@ -47,6 +48,7 @@ void handle_netbsd_client(char *hostname
        psstr = getdata("ps");
        topstr = getdata("top");
        dfstr = getdata("df");
+       inodestr = getdata("inode");
        meminfostr = getdata("meminfo");
        msgsstr = getdata("msgsstr");
        netstatstr = getdata("netstat");
@@ -57,6 +59,7 @@ void handle_netbsd_client(char *hostname
        unix_cpu_report(hostname, clienttype, os, hinfo, fromline, timestr, 
uptimestr, clockstr, msgcachestr, 
                        whostr, 0, psstr, 0, topstr);
        unix_disk_report(hostname, clienttype, os, hinfo, fromline, timestr, 
"Avail", "Capacity", "Mounted", dfstr);
+       unix_inode_report(hostname, clienttype, os, hinfo, fromline, timestr, 
"ifree", "%iused", "Mounted", inodestr);
        unix_procs_report(hostname, clienttype, os, hinfo, fromline, timestr, 
"COMMAND", NULL, psstr);
        unix_ports_report(hostname, clienttype, os, hinfo, fromline, timestr, 
3, 4, 5, portsstr);
 

>Unformatted:
 pkgsrc is currentish


Home | Main Index | Thread Index | Old Index