truncated output?
Joel Brooks
jbrooks at cuberoute.com
Tue Aug 8 15:42:53 CEST 2006
Hi list
i have a disk check using nsclient++ on a windows server. the nagios
server is RHLinux. When the disk check finds a problem, it notifies
me via email, but the output is truncated.
here is a sample of what the output *should* look like:
--
WARNING: C:\: Total: 137G - Used: 128G (93%) - Free: 9.05G (7%)
< warning|'C:\'=7%;7;5;
--
here's what i actually get:
--
Result: WARNING: C:
--
here is the notify-by-email template that i use:
--
define command{
command_name notify-by-email
command_line /usr/bin/printf "%b" "\nDate/Time: $LONGDATETIME$
\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nService: $SERVICEDESC$\nStat
e: $SERVICESTATE$\nResult: $SERVICEOUTPUT$" |/bin/mail -s "** $NOTIFICATI
ONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
}
--
so i believe that this is the $SERVICEOUTPUT$ variable that is somehow
being truncated.
here's the check command definition on the nagios server:
--
define service{
use generic-service
host_name *
service_description Check System Services
is_volatile 0
contact_groups production-support
notification_options w,c,u,r
check_command check_nrpe!check_system_services
servicegroups system
}
--
and here's the nsclient++ definition for the check on the remote
Windows system:
--
check_drive=inject CheckDriveSize MinWarnFree=7% MinCritFree=5%
CheckAll=long FilterType=FIXED
--
can anyone see how/why this wouldn't work as expected? something
to do with the '<' or '|' in the service output? any suggestions
on how to make it work?
thanks!
J
- Joel Brooks (joel.brooks)
-----------------------
The mailing list archive is found here:
http://www.nagiosexchange.org/nagios-users.34.0.html
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list