$SERVICEOUT$ on windows disk check cutting off after C:
Andrew Laden
Andrew.Laden at tudor.com
Mon Oct 24 19:17:20 CEST 2005
The problem is the unix command line interpreting the \.
I ended up re-writing the check slightly to escape all \'s as \\'s
You can also try single quoting the $SERVICEOUTPUT$ Though I cant recall how
well that worked.
> -----Original Message-----
> From: Andrew Cruse [mailto:andrew at profitability.net]
> Sent: Monday, October 24, 2005 12:35 PM
> To: 'Nathan Oyler'; nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] $SERVICEOUT$ on windows disk
> check cutting off after C:
>
> Looks like you're missing a ". Try this:
>
> $LONGDATETIME$\n\nAdditional Info:\n\n"$SERVICEOUTPUT$"
>
> Andrew
>
> nagios-users-admin at lists.sourceforge.net wrote:
> > $SERVICEOUT$ is sending
> >
> > C:\ Used Space'=4.58Gb;9.70;9.90;0.00;10.00
> >
> > It shows in the nagios web interface fine.
> >
> > In emails however everything is cut off after C:
> >
> > So it seems the \ is the issue. In misccommands.cfg the section is
> > double quoted as
> >
> > "***** Nagios *****\n\nNotification Type:
> > $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost:
> > $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
> > $SERVICESTATE$\n\nDate/Time:
> > $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$"
> >
> > Any ideas on what I can do to have it print properly?
> >
> > Thank you.
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by the JBoss Inc.
> > Get Certified Today * Register for a JBoss Training Course Free
> > Certification Exam for All Training Attendees Through End of 2005
> > Visit http://www.jboss.com/services/certification
> > for more information _______________________________________________
> > 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
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by the JBoss Inc.
> Get Certified Today * Register for a JBoss Training Course
> Free Certification Exam for All Training Attendees Through
> End of 2005 Visit http://www.jboss.com/services/certification
> for more information _______________________________________________
> 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
>
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
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