[Pkg-nagios-devel] Bug#596372: columns environment

Peter Palfrader weasel at debian.org
Fri Sep 10 19:31:29 UTC 2010


Just as some added info:

| weasel at lamb:~$ sudo cat /proc/884/environ 
| CONSOLE=/dev/consoleHOME=/init=/sbin/initrunlevel=2INIT_VERSION=sysvinit-2.88COLUMNS=80TERM=linuxBO.....

884 is the nrped started from init.

] weasel at intrepid:~$ ssh byrd.debian.org "env -i COLUMNS=80 /usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C monit -a '/usr/sbin/monit -d 300 -I -c /etc/monit/monitrc -s /var/lib/monit/monit.state'"
] PROCS CRITICAL: 0 processes with UID = 0 (root), command name 'monit', args '/usr/sbin/monit -d 300 -I -c /etc/monit/monitrc -s /var/lib/monit/monit.state'
] weasel at intrepid:~$ ssh byrd.debian.org "env -i /usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C monit -a '/usr/sbin/monit -d 300 -I -c /etc/monit/monitrc -s /var/lib/monit/monit.state'"
] PROCS OK: 1 process with UID = 0 (root), command name 'monit', args '/usr/sbin/monit -d 300 -I -c /etc/monit/monitrc -s /var/lib/monit/monit.state'


lamb has a fixed check_procs:
} weasel at intrepid:~$ ssh lamb.debian.org "env -i COLUMNS=80 /usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C monit -a '/usr/sbin/monit -d 300 -I -c /etc/monit/monitrc -s /var/lib/monit/monit.state'"
} PROCS OK: 1 process with UID = 0 (root), command name 'monit', args '/usr/sbin/monit -d 300 -I -c /etc/monit/monitrc -s /var/lib/monit/monit.state'


-- 
                           |  .''`.  ** Debian GNU/Linux **
      Peter Palfrader      | : :' :      The  universal
 http://www.palfrader.org/ | `. `'      Operating System
                           |   `-    http://www.debian.org/





More information about the Pkg-nagios-devel mailing list