SV: Status Information Field
Kjetil Kvig
kjetil at catchcom.com
Fri Oct 11 14:59:28 CEST 2002
Is there any solution to this problem below?
I tried editing the common/objects.h file below, but when compiling it failed...
I am using Nagios to monitor some equipment (Riverstone routers and some other devices).
What information i am interested in getting is the ifDescr value of all interfaces on this equipment.
When i use the check_ifstatus plugin in the command line like this:
check_ifstatus -C <community> -H <hostaddress>
...i get the full list of interfaces on the device.
But when i make a new check command like this:
define command{
command_name check_router_full
command_line $USER1$/check_ifstatus -C <community> -H $HOSTADDRESS$
}
And use this check command in a service like this:
define service{
use generic-servicew
host_name router1
service_description Router no. 1
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups router-admins
notification_interval 240
notification_period 24x7
notification_options c,r
check_command check_router_full
}
When the check_ifstatus output is displayed in the Service Detail menu, it doesnt display the whole list of interfaces....but stops in the middle.
This is pretty annoying :(
Solution of this problem is greatly wanted...
By the way...is it possible to just display the interfaces that does not have AdminStatus - down?
So when an interface that does not have AdminStatus down, actually goes down...an alarm is raised.
The other alternative i have is to use the check_ifoperstatus plugin for each interface (meaning a LOT of manual configuration).
Thanks, any help appreciated :)
-Kjetil
> -----Opprinnelig melding-----
> Fra: Ewan Leith [mailto:ejl at man.fwltech.com]
> Sendt: 10. september 2002 16:53
> Til: 'Jeffcoat, Al'; rpatl at gmx.at; nagios-users at lists.sourceforge.net
> Emne: RE: [Nagios-users] Status Information Field
>
>
> in the source code file common/objects.h there is the line:
>
> #define MAX_PLUGINOUTPUT_LENGTH 352 /*
> max. length of
> plugin
> output */
>
>
> you could try upping that a bit, but it will probably
> introduce all sorts of
> nasty security holes.
>
> Ewan
>
> > -----Original Message-----
> > From: Jeffcoat, Al [mailto:ajeffco at orhs.org]
> > Sent: 10 September 2002 15:29
> > To: rpatl at gmx.at; nagios-users at lists.sourceforge.net
> > Subject: RE: [Nagios-users] Status Information Field
> >
> >
> > Hi,
> >
> > I'm having the same problem with the check_disk plug-in. It's
> > truncating the data.
> >
> > No idea how to fix it, but just to say, you aren't alone ;)
> >
> > Al
> >
> > -----Original Message-----
> > From: rpatl at gmx.at [mailto:rpatl at gmx.at]
> > Sent: Tuesday, September 10, 2002 10:15 AM
> > To: nagios-users at lists.sourceforge.net
> > Subject: [Nagios-users] Status Information Field
> >
> > Hi !!
> > It's me again !!
> > I've a problem with the status.cgi and the extinfo.cgi:
> > If the status information is too long, it is cut off. For
> instance, I
> > monitor a switch with 24 ports and the plugin check_ifstatus
> > returns the
> > state of
> > every port (down, up and dormant).
> > Is the buffer too small or the table field ??
> >
> > I hope you can help me !!
> > Thanks in advance !!
> > Patrick
> >
> > --
> > GMX - Die Kommunikationsplattform im Internet.
> > http://www.gmx.net
> >
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by: OSDN - Tired of that same old
> > cell phone? Get a new here for FREE!
> > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> > _______________________________________________
> > Nagios-users mailing list
> > Nagios-users at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nagios-users
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by: OSDN - Tired of that same old
> > cell phone? Get a new here for FREE!
> > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> > _______________________________________________
> > Nagios-users mailing list
> > Nagios-users at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nagios-users
> >
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone? Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
More information about the Users
mailing list