Nagios-users Digest, Vol 18, Issue 20

Mangesh Dhamale mangesh.dhamale at sumasoft.net
Wed Nov 14 17:40:35 CET 2007


Hi All,
I have configured nagios. Can any body file regarding nagios-plugin. 
Actually i have configured windows system using nsclient++.  How to monitor 
remote linux boxes like cpu load,disk...etc.

Regards,

Mangesh Dhamale
-----------------------------------------------------------------
System Administrator
Suma Soft Pvt. Ltd.
Suma Center, IInd Floor, Opp. Himali Society,
Near Mangeshkar Hospital, Erandwane, Pune - 411004
Ph : +91-20-2542 5655 Extn : 327
Cell : +91-98508 87775
Email : mangesh.dhamale at sumasoft.net
www.sumasoft.com
------------------------------------------------------------------

----- Original Message ----- 
From: <nagios-users-request at lists.sourceforge.net>
To: <nagios-users at lists.sourceforge.net>
Sent: Wednesday, November 14, 2007 1:07 AM
Subject: Nagios-users Digest, Vol 18, Issue 20


> Send Nagios-users mailing list submissions to
> nagios-users at lists.sourceforge.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> or, via email, send a message with subject or body 'help' to
> nagios-users-request at lists.sourceforge.net
>
> You can reach the person managing the list at
> nagios-users-owner at lists.sourceforge.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Nagios-users digest..."
>
>
> Today's Topics:
>
>   1. Nagios time format (Jerad Riggin)
>   2. Re: Nagios time format (Marc Powell)
>   3. Re: Two instances of ndo2db running... (GT4NE1)
>   4. Date/Time and Additional Info Shows as $ (Robert Gil)
>   5. Re: Date/Time and Additional Info Shows as $ (Haydn Solomon)
>   6. Status display colors (Israel Brewster)
>   7. Re: Status display colors (Marc Powell)
>   8. Host monitoring (Jerad Riggin)
>   9. Re: Host monitoring (Marc Powell)
>  10. Re: check_snmp_storage fails on 2003 box, works manually
>      (chris serafin)
>  11. Re: Plugin for monitoring FreeBSD for updates (like
>      check_apt)? (Matthias Kellermann)
>  12. Re: Status display colors (Giles Coochey)
>  13. RE :  Nagios CGI modification (Florent HOUBART)
>  14. Re: Plugin for monitoring FreeBSD for updates (like
>      check_apt)? (Michael W. Lucas)
>  15. Re: Plugin for monitoring FreeBSD for updates (like
>      check_apt)? (Brian A. Seklecki)
>  16. Re: Plugin for monitoring FreeBSD for updates (like
>      check_apt)? (Matthias Kellermann)
>  17. nagios.log format (Kuang-Chun Cheng)
>  18. Re: nagios.log format (Marc Powell)
>  19. Old state information randomly appearing (Shawn Kovalchick)
>  20. Re: Old state information randomly appearing (Shawn Kovalchick)
>  21. Re: no newlines in notification emails ? (SCHAER Frederic)
>  22. Re: Old state information randomly appearing (Marc Powell)
>  23. Re: Old state information randomly appearing (Shawn Kovalchick)
>  24. Monitoring a process (Jerad Riggin)
>  25. Were can I find the check_snmp plugin (Christy.New at cancer.org)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 12 Nov 2007 15:15:40 -0600
> From: "Jerad Riggin" <jriggin at gmail.com>
> Subject: [Nagios-users] Nagios time format
> To: nagios-users at lists.sourceforge.net
> Message-ID:
> <66955c170711121315r39452d71ub9ac82b965c71a5e at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Is there a way to change the time format that nagios uses?  CST would
> make the logs easier to read.
>
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 12 Nov 2007 15:24:05 -0600
> From: "Marc Powell" <marc at ena.com>
> Subject: Re: [Nagios-users] Nagios time format
> To: <nagios-users at lists.sourceforge.net>
> Message-ID: <A7B0A9F02975A74A845FE85D0B95B8FA08E64163 at misex01.ena.com>
> Content-Type: text/plain; charset="US-ASCII"
>
>
>
>> -----Original Message-----
>> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
>> bounces at lists.sourceforge.net] On Behalf Of Jerad Riggin
>> Sent: Monday, November 12, 2007 3:16 PM
>> To: nagios-users at lists.sourceforge.net
>> Subject: [Nagios-users] Nagios time format
>>
>> Is there a way to change the time format that nagios uses?  CST would
>> make the logs easier to read.
>
> Not within the logfiles themselves (and you don't want to change them)
> but this FAQ covers a couple of different ways to display them with
> localtime -- http://www.nagios.org/faqs/viewfaq.php?faq_id=70
>
> --
> Marc
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 12 Nov 2007 13:24:53 -0800
> From: GT4NE1 <gt4ne1 at gmail.com>
> Subject: Re: [Nagios-users] Two instances of ndo2db running...
> To: "Valdinger, Stephen (DOV, MSX)" <svalding at doverchem.com>
> Cc: Patrick Morris <patrick.morris at hp.com>,
> nagios-users at lists.sourceforge.net
> Message-ID:
> <18894d440711121324y29f19742j85eb59a88eefa163 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Okay, maybe you are right.
>
> I just rechecked my database and their are recent entries in there.
>
> Sorry and thanks.
>
> -GT
>
> On 11/12/07, Valdinger, Stephen (DOV, MSX) <svalding at doverchem.com> wrote:
>> This is correct, I just verified to make sure that mine behaves the same
>> way, and alas, it does.
>>
>>
>>
>> -----Original Message-----
>> From: Patrick Morris [mailto:patrick.morris at hp.com]
>> Sent: Monday, November 12, 2007 2:48 PM
>> To: GT4NE1
>> Cc: nagios-users at lists.sourceforge.net
>> Subject: Re: [Nagios-users] Two instances of ndo2db running...
>>
>> On Mon, 12 Nov 2007, GT4NE1 wrote:
>>
>> > Any ideas why two ndo2db process are starting?
>>
>> That's just the way it works.  If you only saw one, it'd mean it wasn't
>> working.
>>
>> You'll see one when you start it up, and a second will appear when
>> Nagios uses it.  It's not a problem.
>>
>> ------------------------------------------------------------------------
>> -
>> This SF.net email is sponsored by: Splunk Inc.
>> Still grepping through log files to find problems?  Stop.
>> Now Search log events and configuration files using AJAX and a browser.
>> Download your FREE copy of Splunk now >> http://get.splunk.com/
>> _______________________________________________
>> 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
>>
>>
>
>
>
> ------------------------------
>
> Message: 4
> Date: Mon, 12 Nov 2007 16:52:16 -0500
> From: "Robert Gil" <rgil at liquidnet.com>
> Subject: [Nagios-users] Date/Time and Additional Info Shows as $
> To: <nagios-users at lists.sourceforge.net>
> Message-ID:
> <4AB4EC5F69C3774C875B1BD8CB658B1A02965053 at ny0ech01.LNHOLDINGS.COM>
> Content-Type: text/plain; charset="us-ascii"
>
> For some reason the Date/Time and Additional Info don't show up. Any
> thoughts as to why this might be? I couldn't find anything about it
> online.
>
>
>
> ***** Nagios  *****
>
>
>
> Notification Type: PROBLEM
>
>
>
> Service: Storage /
>
> Host: Unix Server
>
> Address: xxx.xxx.xxx.xxx
>
> State: CRITICAL
>
>
>
> Date/Time: $
>
>
>
> Additional Info:
>
>
>
> $
>
>
>
> Thanks,
>
> Rob
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 5
> Date: Mon, 12 Nov 2007 17:07:08 -0500
> From: "Haydn Solomon" <haydn.solomon at gmail.com>
> Subject: Re: [Nagios-users] Date/Time and Additional Info Shows as $
> To: "Robert Gil" <rgil at liquidnet.com>
> Cc: nagios-users at lists.sourceforge.net
> Message-ID:
> <b75785ba0711121407s28577b44pb64ed616f1dc7374 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> You're probably using wrong/outdated macros. Check the documentation for
> version of nagios you're using and update your commands configuration 
> files.
>
>
> On Nov 12, 2007 4:52 PM, Robert Gil <rgil at liquidnet.com> wrote:
>
>>  For some reason the Date/Time and Additional Info don't show up. Any
>> thoughts as to why this might be? I couldn't find anything about it 
>> online.
>>
>>
>>
>> ***** Nagios  *****
>>
>>
>>
>> Notification Type: PROBLEM
>>
>>
>>
>> Service: Storage /
>>
>> Host: Unix Server
>>
>> Address: xxx.xxx.xxx.xxx
>>
>> State: CRITICAL
>>
>>
>>
>> Date/Time: $
>>
>>
>>
>> Additional Info:
>>
>>
>>
>> $
>>
>>
>>
>> Thanks,
>>
>> Rob
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Splunk Inc.
>> Still grepping through log files to find problems?  Stop.
>> Now Search log events and configuration files using AJAX and a browser.
>> Download your FREE copy of Splunk now >> http://get.splunk.com/
>> _______________________________________________
>> 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
>>
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 6
> Date: Mon, 12 Nov 2007 13:27:23 -0900
> From: Israel Brewster <israel at frontierflying.com>
> Subject: [Nagios-users] Status display colors
> To: Nagios Users mailinglist <nagios-users at lists.sourceforge.net>
> Message-ID: <52CB1EC1-3305-4C96-999A-65230D815C7D at frontierflying.com>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>
> Is there any way to change the colors generated by status.cgi? My
> boss is complaining that it is really hard for him to read the dark
> blue hostname on the dark red background you get when a host is down.
> Thanks!
>
> -----------------------------------------------
> Israel Brewster
> Computer Support Technician
> Frontier Flying Service Inc.
> 5245 Airport Industrial Rd
> Fairbanks, AK 99709
> (907) 450-7250 x293
> -----------------------------------------------
>
>
>
>
>
> ------------------------------
>
> Message: 7
> Date: Mon, 12 Nov 2007 16:35:23 -0600
> From: "Marc Powell" <marc at ena.com>
> Subject: Re: [Nagios-users] Status display colors
> To: "Nagios Users mailinglist" <nagios-users at lists.sourceforge.net>
> Message-ID: <A7B0A9F02975A74A845FE85D0B95B8FA08E64189 at misex01.ena.com>
> Content-Type: text/plain; charset="US-ASCII"
>
>
>
>> -----Original Message-----
>> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
>> bounces at lists.sourceforge.net] On Behalf Of Israel Brewster
>> Sent: Monday, November 12, 2007 4:27 PM
>> To: Nagios Users mailinglist
>> Subject: [Nagios-users] Status display colors
>>
>> Is there any way to change the colors generated by status.cgi? My
>> boss is complaining that it is really hard for him to read the dark
>> blue hostname on the dark red background you get when a host is down.
>
> Haven't done it myself but status.css in ~nagios/share looks to be the
> ticket.
>
> --
> Marc
>
>
>
> ------------------------------
>
> Message: 8
> Date: Mon, 12 Nov 2007 16:52:24 -0600
> From: "Jerad Riggin" <jriggin at gmail.com>
> Subject: [Nagios-users] Host monitoring
> To: nagios-users at lists.sourceforge.net
> Message-ID:
> <66955c170711121452t7725cc2do9a75acd3b88a6e4c at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> So what would be the best way to monitor in this situation?
>
> I have Host A, hosting two websites.
>
> Currently I have both websites configured as separate hosts, so in
> nagios it shows up as ServerA - site.com, and another host ServerA -
> siteb.com
>
> This doesn't seem efficient since I am pinging both sites, but it's
> the same host.  Ideally I would want to just ping the host, and check
> strings on each site under that host.  Any recommendations?
>
>
>
> ------------------------------
>
> Message: 9
> Date: Mon, 12 Nov 2007 17:13:50 -0600
> From: "Marc Powell" <marc at ena.com>
> Subject: Re: [Nagios-users] Host monitoring
> To: <nagios-users at lists.sourceforge.net>
> Message-ID: <A7B0A9F02975A74A845FE85D0B95B8FA08E64198 at misex01.ena.com>
> Content-Type: text/plain; charset="US-ASCII"
>
>
>
>> -----Original Message-----
>> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
>> bounces at lists.sourceforge.net] On Behalf Of Jerad Riggin
>> Sent: Monday, November 12, 2007 4:52 PM
>> To: nagios-users at lists.sourceforge.net
>> Subject: [Nagios-users] Host monitoring
>>
>> So what would be the best way to monitor in this situation?
>>
>> I have Host A, hosting two websites.
>>
>> Currently I have both websites configured as separate hosts, so in
>> nagios it shows up as ServerA - site.com, and another host ServerA -
>> siteb.com
>>
>> This doesn't seem efficient since I am pinging both sites, but it's
>> the same host.  Ideally I would want to just ping the host, and check
>> strings on each site under that host.  Any recommendations?
>
> Unless I'm missing something obvious, this seems pretty straightforward.
> host{} definition for the web server machine, service{} definitions for
> each vhost using check_http to check them. You can craft a command{}
> definition to pass the variable parameters like vhost name, uri and
> search string like so --
>
> define command {
>    command_name                   check_http_url
>    command_line                   $USER1$/check_http -I $HOSTADDRESS$
> -H $ARG1$ -u $ARG2$ -wt 20 -ct 30 -to 35 -s $ARG3$
>    }
>
> To check to vhosts --
>
> define service {
>    use                            generic-service
>    host_name                      my_webserver
>    service_description            HTTP VHOST site1
>    check_command
> check_http_url!www.site1.com!/mypage!/html
>    }
>
> define service {
>    use                            generic-service
>    host_name                      my_webserver
>    service_description            HTTP VHOST site2
>    check_command
> check_http_url!www.site2.com!/someotherpage!/html
>    }
>
> --
> Marc
>
>
>
> ------------------------------
>
> Message: 10
> Date: Mon, 12 Nov 2007 20:11:22 -0600
> From: "chris serafin" <chrisserafin at gmail.com>
> Subject: Re: [Nagios-users] check_snmp_storage fails on 2003 box,
> works manually
> To: "Nagios Users Mailinglist" <nagios-users at lists.sourceforge.net>
> Message-ID:
> <a97dec240711121811k27b3de42q2978bd6e2487323c at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> AAhhhh, after over 6+ hours of editing CLI code, my eyes failed me. I
> changed these simple flags and it works great. Sorry for the newb
> false alarm.
>
> Chris Serafin
> Security Engineer
> chris at chrisserafin.com
>
>
> On Nov 12, 2007 12:58 AM, Hugo van der Kooij <hvdkooij at vanderkooij.org> 
> wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> chris serafin wrote:
>> > I'm having an issue with getting some SNMP commands to work.
>> >
>> > When issuing the check_snmp_storage.pl manually, I get perfect results,
>> > but once I put it in Nagios 3.0b5, I get critical alerts: (Return code
>> > of 127 is out of bounds - plugin may be missing)
>> >
>> > This is the manual command I enter and the result:
>> >
>> > $ sudo ./check_snmp_storage.pl -H 192.168.1.200 -C pUBLIC -m C -w 80 -c 
>> > 95
>>
>> Great for root. But what about the account that Nagios is running as?
>> Did you test it too? And where did you put check_snmp_storage.pl exactly?
>> ./ is a rather relative distinction. But I think it does not matter ....
>>
>> > This is how I defined the command and service:
>> > define command{
>> >         command_name    check_snmp_storage_windrive
>> >         command_line    $USER1$/check_snmp_storage -H $HOSTADDRESS$ -C
>> > $ARG1$ -m $ARG2$  -w $ARG3$ -c $ARG4$
>>
>> Hold on. Why are you afraid to come out and tell nagios it is a perl 
>> script?
>> $USER1$/check_snmp_storage  !!=  ./check_snmp_storage.pl
>>
>> For those unaware of pseudo code: !!= stands for 'is most definitly
>> NOT'. Pretty much as !~= stands for 'almost but not quite unlike`;-)
>>
>> Hugo.
>>
>> - --
>> hvdkooij at vanderkooij.org               http://hugo.vanderkooij.org/
>> PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc
>>
>>         A: Yes.
>>         >Q: Are you sure?
>>         >>A: Because it reverses the logical flow of conversation.
>>         >>>Q: Why is top posting frowned upon?
>>
>> Bored? Click on http://spamornot.org/ and rate those images.
>>
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.7 (GNU/Linux)
>>
>> iD8DBQFHN/mgBvzDRVjxmYERAmt3AKCD35Rz1k7aT3POzEvQPYUNEQXo4ACfUa0H
>> Mg/Qj9Pt1/o0/6T4xxwwxZg=
>> =GD0Z
>> -----END PGP SIGNATURE-----
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Splunk Inc.
>> Still grepping through log files to find problems?  Stop.
>> Now Search log events and configuration files using AJAX and a browser.
>> Download your FREE copy of Splunk now >> http://get.splunk.com/
>> _______________________________________________
>> 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
>>
>
>
>
> ------------------------------
>
> Message: 11
> Date: Tue, 13 Nov 2007 08:06:08 +0100
> From: Matthias Kellermann <mkellermann at net-com.de>
> Subject: Re: [Nagios-users] Plugin for monitoring FreeBSD for updates
> (like check_apt)?
> To: "Michael W. Lucas" <mwlucas at blackhelicopters.org>
> Cc: Nagios Users <nagios-users at lists.sourceforge.net>
> Message-ID: <47394CE0.9010602 at net-com.de>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Michael W. Lucas schrieb:
>> On Mon, Nov 12, 2007 at 04:42:40PM +0100, Matthias Kellermann wrote:
>>> Hi list,
>>>
>>> anyone knows of a Nagios plugin to check the FreeBSD ports and base
>>> system for updates? I'm searching for something like check_apt for
>>> Debian/Ubuntu.
>>>
>>> One important thing is that I also want to monitor all the FreeBSD jails
>>> for updates, too. Any help/hint appreciated :)
>>
>> None exists today.
>>
>> It should be fairly simple to write a NRPE wrapper around portmaster,
>> however.
>>
>> I believe (but might be wrong) that net-snmp also has the ability to
>> read the FreeBSD package database; you could run a snmpwalk on the
>> target machine and compare that to a master package database.
>>
>> Good luck, and if you implement something be sure to let us know about 
>> it.
>
> Thanks for your answer Michael. I will see what I can do. If I have
> found/implemented something useful I will let you know.
>
> BTW: Looking forward for your new book coming out these days. Hope it
> will be released in Europe also on November 14th :)
>
> Matthias
>
>> ==ml
>
>
>
> ------------------------------
>
> Message: 12
> Date: Tue, 13 Nov 2007 09:10:44 +0100
> From: "Giles Coochey" <gcoochey at sapphire.gi>
> Subject: Re: [Nagios-users] Status display colors
> To: "Israel Brewster" <israel at frontierflying.com>, "Nagios Users
> mailinglist" <nagios-users at lists.sourceforge.net>
> Message-ID:
> <9D30659ABCA7FB428CF91E386C3A57449A7A63 at hermes.sapphire-int.gi>
> Content-Type: text/plain; charset="us-ascii"
>
>
>
>> -----Original Message-----
>> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
>> bounces at lists.sourceforge.net] On Behalf Of Israel Brewster
>> Sent: 12 November 2007 23:27
>> To: Nagios Users mailinglist
>> Subject: [Nagios-users] Status display colors
>>
>> Is there any way to change the colors generated by status.cgi? My
>> boss is complaining that it is really hard for him to read the dark
>> blue hostname on the dark red background you get when a host is down.
>> Thanks!
>>
>
> I use the Nuvola style from the NagiosExchange website, for me it's an
> instant improvement in the look and feel of the Nagios frontend.
>
>
>
> ------------------------------
>
> Message: 13
> Date: Tue, 13 Nov 2007 14:42:18 +0100
> From: "Florent HOUBART" <Florent.HOUBART at Ajilon.fr>
> Subject: [Nagios-users] RE :  Nagios CGI modification
> To: <aragonx at dcsnow.com>, <nagios-users at lists.sourceforge.net>
> Message-ID:
> <3254342B66257B4CAB24920F49640F4F0132A406 at MEINTFR02095.wwit.adecco.net>
>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hello,
>
>
>>Changing the link is no big deal of course.  My big question is, how do I
>>get a list of all the hosts in that host group passed?
>
>
> You may find exemple of such tasks in status.cgi. You need to loop over 
> all the hosts and check for each if the belong to the hostgroup or not.
>
> Below is an extract of status.c where I only keep what would be relevant 
> for you (extract from function show_hostgroup_overview).
>
> --------------------------
>
> /* find all the hosts that belong to the hostgroup */
> for(temp_hoststatus=hoststatus_list;temp_hoststatus!=NULL;temp_hoststatus=temp_hoststatus->next){
>
>     /* find the host... */
>     temp_host=find_host(temp_hoststatus->host_name,NULL);
>
>     /* make sure this host a member of the hostgroup */
>     if(!is_host_member_of_hostgroup(hstgrp,temp_host))
>          continue;
>
>     /* make sure the user is authorized to see this host */
>     if(is_authorized_for_host(temp_host,&current_authdata)==FALSE)
>          continue;
>
>
>     /* Do something with the host temp_host */
> }
>
> ---------------------------
>
> Regards,
>
> Florent Houbart
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 14
> Date: Tue, 13 Nov 2007 10:09:03 -0500
> From: "Michael W. Lucas" <mwlucas at blackhelicopters.org>
> Subject: Re: [Nagios-users] Plugin for monitoring FreeBSD for updates
> (like check_apt)?
> To: Matthias Kellermann <mkellermann at net-com.de>
> Cc: Nagios Users <nagios-users at lists.sourceforge.net>
> Message-ID:
> <20071113150903.GA50921 at bewilderbeast.blackhelicopters.org>
> Content-Type: text/plain; charset=us-ascii
>
> On Tue, Nov 13, 2007 at 08:06:08AM +0100, Matthias Kellermann wrote:
>> Michael W. Lucas schrieb:
>> > On Mon, Nov 12, 2007 at 04:42:40PM +0100, Matthias Kellermann wrote:
>> >> Hi list,
>> >>
>> >> anyone knows of a Nagios plugin to check the FreeBSD ports and base
>> >> system for updates? I'm searching for something like check_apt for
>> >> Debian/Ubuntu.
>> >>
>> >> One important thing is that I also want to monitor all the FreeBSD 
>> >> jails
>> >> for updates, too. Any help/hint appreciated :)
>> >
>> > None exists today.
>> >
>> > It should be fairly simple to write a NRPE wrapper around portmaster,
>> > however.
>> >
>> > I believe (but might be wrong) that net-snmp also has the ability to
>> > read the FreeBSD package database; you could run a snmpwalk on the
>> > target machine and compare that to a master package database.
>> >
>> > Good luck, and if you implement something be sure to let us know about 
>> > it.
>>
>> Thanks for your answer Michael. I will see what I can do. If I have
>> found/implemented something useful I will let you know.
>>
>> BTW: Looking forward for your new book coming out these days. Hope it
>> will be released in Europe also on November 14th :)
>
> The book physically exists, and is being shipped to stores now.  You
> should be able to find it any day now.
>
> I really need to change my .sig...
>
> ==ml
> -- 
> Michael W. Lucas mwlucas at BlackHelicopters.org, mwlucas at FreeBSD.org
> http://www.BlackHelicopters.org/~mwlucas/
>      Coming Soon: "Absolute FreeBSD" -- http://www.AbsoluteFreeBSD.com
> On 5/4/2007, the TSA kept 3 pairs of my soiled undies "for security 
> reasons."
>
>
>
> ------------------------------
>
> Message: 15
> Date: Tue, 13 Nov 2007 10:19:31 -0500
> From: "Brian A. Seklecki" <lavalamp at spiritual-machines.org>
> Subject: Re: [Nagios-users] Plugin for monitoring FreeBSD for updates
> (like check_apt)?
> To: Matthias Kellermann <mkellermann at net-com.de>
> Cc: nagios-users at lists.sourceforge.net
> Message-ID:
> <1194967171.2611.17.camel at ingress.pitbpa0.priv.collaborativefusion.com>
>
> Content-Type: text/plain; charset=iso-8859-1
>
>
> On Mon, 2007-11-12 at 16:42 +0100, Matthias Kellermann wrote:
>> Hi list,
>>
>> anyone knows of a Nagios plugin to check the FreeBSD ports and base
>> system for updates? I'm searching for something like check_apt for
>> Debian/Ubuntu.
>
> All that you need to do is exec portaudit and trap the output.  However,
> mapping this into warn/crit status will get tricky.
>
> Most big shops have software release engineer processes that prevent
> them from, as a NetBSD friend of mine calls it, "implementing massive
> rolling in-place binary upgrades".
>
> In the hope that security will somehow be derived from that (Linux
> credo, I suppose).  I like the idea ether way.  Let me know if you need
> help testing/coding.
>
> ~BAS
>
> $ pkg_version -vL "="
> apache-2.2.4_2               <   needs updating (port has 2.2.6_2)
> apr-nothr-db4-1.0.1_1        <   needs updating (port has 1.2.8_2)
> arj-3.10.22                  <   needs updating (port has 3.10.22_1)
> autoconf-2.59_3              <   needs updating (port has 2.61_2)
> autoconf-wrapper-20070404    <   needs updating (port has 20071109)
>
> $ sudo portaudit
> Affected package: perl-5.8.8
> Type of problem: perl -- regular expressions unicode data buffer
> overflow. Reference:   <http://www.FreeBSD.org/ ...
>
> Affected package: nagios-plugins-1.4.9,1
> Type of problem: nagios-plugins -- Long Location Header Buffer
> Overflow Vulnerability.
>
> ~BAS
>
>>
>> One important thing is that I also want to monitor all the FreeBSD jails
>> for updates, too. Any help/hint appreciated :)
>>
>> Matthias
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Splunk Inc.
>> Still grepping through log files to find problems?  Stop.
>> Now Search log events and configuration files using AJAX and a browser.
>> Download your FREE copy of Splunk now >> http://get.splunk.com/
>> _______________________________________________
>> 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
>>
>>
>>
>>
>>
>>
>
>
>
>
> ------------------------------
>
> Message: 16
> Date: Tue, 13 Nov 2007 17:27:38 +0100
> From: Matthias Kellermann <mkellermann at net-com.de>
> Subject: Re: [Nagios-users] Plugin for monitoring FreeBSD for updates
> (like check_apt)?
> To: "Brian A. Seklecki" <lavalamp at spiritual-machines.org>
> Cc: nagios-users at lists.sourceforge.net
> Message-ID: <4739D07A.3060107 at net-com.de>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Brian A. Seklecki schrieb:
>> On Mon, 2007-11-12 at 16:42 +0100, Matthias Kellermann wrote:
>>> Hi list,
>>>
>>> anyone knows of a Nagios plugin to check the FreeBSD ports and base
>>> system for updates? I'm searching for something like check_apt for
>>> Debian/Ubuntu.
>>
>> All that you need to do is exec portaudit and trap the output.  However,
>> mapping this into warn/crit status will get tricky.
>>
>> Most big shops have software release engineer processes that prevent
>> them from, as a NetBSD friend of mine calls it, "implementing massive
>> rolling in-place binary upgrades".
>>
>> In the hope that security will somehow be derived from that (Linux
>> credo, I suppose).  I like the idea ether way.  Let me know if you need
>> help testing/coding.
>>
>> ~BAS
>>
>> $ pkg_version -vL "="
>>  apache-2.2.4_2               <   needs updating (port has 2.2.6_2)
>>  apr-nothr-db4-1.0.1_1        <   needs updating (port has 1.2.8_2)
>>  arj-3.10.22                  <   needs updating (port has 3.10.22_1)
>>  autoconf-2.59_3              <   needs updating (port has 2.61_2)
>>  autoconf-wrapper-20070404    <   needs updating (port has 20071109)
>>
>> $ sudo portaudit
>>  Affected package: perl-5.8.8
>>  Type of problem: perl -- regular expressions unicode data buffer
>>  overflow. Reference:   <http://www.FreeBSD.org/ ...
>>
>>  Affected package: nagios-plugins-1.4.9,1
>>  Type of problem: nagios-plugins -- Long Location Header Buffer
>>  Overflow Vulnerability.
>>
>> ~BAS
>
> Thanks for your answer Brian.
>
> I've found ports-mgmt/jailaudit in the Ports. Seems quite useful yet.
> I'll see how this tool can help on monitoring the installed ports for
> security holes.
>
> Monitoring the jails for updates should work with pkg_version -vL "="
>
> I'll let you know if I've made something useful.
>
> Matthias
>
>
>
> ------------------------------
>
> Message: 17
> Date: Wed, 14 Nov 2007 00:32:43 +0800
> From: "Kuang-Chun Cheng" <kcc1967 at gmail.com>
> Subject: [Nagios-users] nagios.log format
> To: nagios-users at lists.sourceforge.net
> Message-ID:
> <5eb4b0650711130832g2a66d2f6g7914a6e568cdcfcd at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi,
>
> I want to do post-analysis of nagios.log and save the filtered result to 
> DB.
> The format look like this:
> [1194969600] CURRENT SERVICE STATE: localhost;Current
> Load;OK;HARD;1;OK - load average: 0.17, 0.23, 0.20
> [1194969600] CURRENT SERVICE STATE: localhost;Current
> Users;OK;HARD;1;USERS OK - 14 users currently logged in
> [1194969600] CURRENT SERVICE STATE: localhost;HTTP;OK;HARD;1;HTTP OK
> HTTP/1.1 200 OK - 7590 bytes in 0.006 seconds
> [1194969600] CURRENT SERVICE STATE: localhost;PING;OK;HARD;1;PING OK -
> Packet loss = 0%, RTA = 0.04 ms
> [1194969600] CURRENT SERVICE STATE: localhost;Root
> Partition;OK;HARD;1;DISK OK - free space: / 37567 MB (53% inode=96%):
> [1194969600] CURRENT SERVICE STATE: localhost;SSH;OK;HARD;1;SSH OK -
> OpenSSH_4.3 (protocol 2.0)
> [1194969600] CURRENT SERVICE STATE: localhost;Swap
> Usage;OK;HARD;1;SWAP OK - 78% free (1542 MB out of 1983 MB)
> [1194969600] CURRENT SERVICE STATE: localhost;Total
> Processes;OK;HARD;1;PROCS OK: 110 processes with STATE = RSZDT
>
> Could someone tell me what's the fields means ?
> What kind of message will be log into nagios.log.   Sometime I found
> "SERVICE ALERT" message ...
> any complete list existed for possible message ?  Thanks
>
> Regards
> KC
>
>
>
> ------------------------------
>
> Message: 18
> Date: Tue, 13 Nov 2007 10:56:40 -0600
> From: "Marc Powell" <marc at ena.com>
> Subject: Re: [Nagios-users] nagios.log format
> To: <nagios-users at lists.sourceforge.net>
> Message-ID: <A7B0A9F02975A74A845FE85D0B95B8FA08E64225 at misex01.ena.com>
> Content-Type: text/plain; charset="US-ASCII"
>
>
>
>> -----Original Message-----
>> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
>> bounces at lists.sourceforge.net] On Behalf Of Kuang-Chun Cheng
>> Sent: Tuesday, November 13, 2007 10:33 AM
>> To: nagios-users at lists.sourceforge.net
>> Subject: [Nagios-users] nagios.log format
>>
>> Hi,
>>
>> I want to do post-analysis of nagios.log and save the filtered result
> to
>> DB.
>> The format look like this:
>
>
>>
>> Could someone tell me what's the fields means ?
>> What kind of message will be log into nagios.log.   Sometime I found
>> "SERVICE ALERT" message ...
>> any complete list existed for possible message ?  Thanks
>
> The only documentation I am aware of is the source code itself
> (nagios-src/base/logging.c). For anything that starts with MACRO_, you
> can find more information about that in the Macros documentation. --
>
> $ grep snprintf logging.c
>        snprintf(temp_buffer,sizeof(temp_buffer),"SERVICE ALERT:
> %s;%s;%s;%s;%s;%s\n",svc->host_name,svc->description,macro_x[MACRO_SERVI
> CESTATE],macro_x[MACRO_SERVICESTATETYPE],macro_x[MACRO_SERVICEATTEMPT],s
> vc->plugin_output);
>
> [timestamp] SERVICE ALERT:
> host_name;service_description;servicestate,servicestatetype,serviceattem
> pt;plugin_output
>
>        snprintf(temp_buffer,sizeof(temp_buffer),"HOST ALERT:
> %s;%s;%s;%s;%s\n",hst->name,macro_x[MACRO_HOSTSTATE],macro_x[MACRO_HOSTS
> TATETYPE],macro_x[MACRO_HOSTATTEMPT],hst->plugin_output);
>
> [timestamp] HOST ALERT:
> host_name,hoststate;hoststatetype;hostattempt;plugin_output
>
>                snprintf(temp_buffer,sizeof(temp_buffer),"%s HOST STATE:
> %s;%s;%s;%s;%s\n",(type==INITIAL_STATES)?"INITIAL":"CURRENT",temp_host->
> name,macro_x[MACRO_HOSTSTATE],macro_x[MACRO_HOSTSTATETYPE],macro_x[MACRO
> _HOSTATTEMPT],temp_host->plugin_output);
>
> [timestamp] (INITIAL|CURRENT) HOST STATE:
> host_name;hoststate;hoststatetype;hostattempt;plugin_output
>
>                snprintf(temp_buffer,sizeof(temp_buffer),"%s SERVICE
> STATE:
> %s;%s;%s;%s;%s;%s\n",(type==INITIAL_STATES)?"INITIAL":"CURRENT",temp_ser
> vice->host_name,temp_service->description,macro_x[MACRO_SERVICESTATE],ma
> cro_x[MACRO_SERVICESTATETYPE],macro_x[MACRO_SERVICEATTEMPT],temp_service
> ->plugin_output);
>
> [timestamp] (INITIAL|CURRENT) SERVICE STATE:
> host_name;service_description;servicestate;servicestatetype;serviceattem
> pt;plugin_output
>
>        snprintf(temp_buffer,sizeof(temp_buffer),"LOG ROTATION:
> %s\n",method_string);
>
> [timestamp] LOG ROTATION (daily|weekly|monthly, etc)
>
>        snprintf(temp_buffer,sizeof(temp_buffer),"LOG VERSION:
> %s\n",LOG_VERSION_2);
>
> [timestamp] LOG VERION: [log version string]
>
> Hth,
>
> --
> Marc
>
>
>
> ------------------------------
>
> Message: 19
> Date: Tue, 13 Nov 2007 12:50:17 -0500
> From: "Shawn Kovalchick" <bamapookie at gmail.com>
> Subject: [Nagios-users] Old state information randomly appearing
> To: "Nagios Users Mailinglist" <nagios-users at lists.sourceforge.net>
> Message-ID:
> <c12dcfbb0711130950w605e72cdyae51e25a87512877 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I have 2 hosts and 4 services that I added Friday to my nagios
> configuration.  They were misconfigured (wrong IP addresses), and rightly
> sent out notifications.  I disabled notifications and active checks via 
> the
> web interface while I was diagnosing the problem.  I fixed the problems 
> (the
> IP addresses) and reenabled the checks and notifications.  Now, every once
> in a while (roughly once per minute), the old data appears on the tac.cgi,
> status.cgi, and extinfo.cgi pages.  They will show as down/critical, and
> will have the icons for disabled notifications and disabled active checks.
> Then, moments later, they will show normal (OK state, with no icons for
> disabled notifications/checks).  I have tried purging the bad data from 
> the
> log files, retention.dat, etc. while the Nagios daemon was stopped, but 
> the
> bad data still shows.  Is this a bug, or is there something I can do to
> flush this old data?
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 20
> Date: Tue, 13 Nov 2007 12:54:02 -0500
> From: "Shawn Kovalchick" <bamapookie at gmail.com>
> Subject: Re: [Nagios-users] Old state information randomly appearing
> To: "Nagios Users Mailinglist" <nagios-users at lists.sourceforge.net>
> Message-ID:
> <c12dcfbb0711130954h80d90f8xcc03660a09ab9c10 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Actually, the timing is a bit different than what I described below.
> Refreshing once per second, I was able to determining that the correct 
> state
> shows for 5 seconds, then the incorrect state shows for 10 seconds, then 
> the
> process repeats.
>
> On 11/13/07, Shawn Kovalchick <bamapookie at gmail.com> wrote:
>>
>> I have 2 hosts and 4 services that I added Friday to my nagios
>> configuration.  They were misconfigured (wrong IP addresses), and rightly
>> sent out notifications.  I disabled notifications and active checks via 
>> the
>> web interface while I was diagnosing the problem.  I fixed the problems 
>> (the
>> IP addresses) and reenabled the checks and notifications.  Now, every 
>> once
>> in a while (roughly once per minute), the old data appears on the 
>> tac.cgi,
>> status.cgi, and extinfo.cgi pages.  They will show as down/critical, and
>> will have the icons for disabled notifications and disabled active 
>> checks.
>> Then, moments later, they will show normal (OK state, with no icons for
>> disabled notifications/checks).  I have tried purging the bad data from 
>> the
>> log files, retention.dat, etc. while the Nagios daemon was stopped, but
>> the bad data still shows.  Is this a bug, or is there something I can do 
>> to
>> flush this old data?
>>
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 21
> Date: Tue, 13 Nov 2007 19:03:50 +0100
> From: "SCHAER Frederic" <frederic.schaer at cea.fr>
> Subject: Re: [Nagios-users] no newlines in notification emails ?
> To: "Jaimie Livingston" <jaimie at onebutterfly.com>,
> <nagios-users at lists.sourceforge.net>
> Message-ID:
> <EA04FF699CD5274E9EC52CB5EC0508709639EA at DIODON.extra.cea.fr>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi,
>
> Maybe a stupid question, but did you solve the problem ?
> I upgraded to nagiosb6 beta and I still get no newlines in the service
> notifications (host notifications are fine)... wondering if that's me or
> something else.
>
> Cheers
>
>> -----Original Message-----
>> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
>> bounces at lists.sourceforge.net] On Behalf Of Jaimie Livingston
>> Sent: Thursday, November 01, 2007 2:24 AM
>> To: nagios-users at lists.sourceforge.net
>> Subject: Re: [Nagios-users] no newlines in notification emails ?
>>
>> I had the same problem when I was testing 3.0b4 on CentOS. I thought
> it was just me at the time...
>>
>>
>> - Jaimie Livingston (jaimielives)
>>
>
>
>
> ------------------------------
>
> Message: 22
> Date: Tue, 13 Nov 2007 12:07:06 -0600
> From: "Marc Powell" <marc at ena.com>
> Subject: Re: [Nagios-users] Old state information randomly appearing
> To: "Nagios Users Mailinglist" <nagios-users at lists.sourceforge.net>
> Message-ID: <A7B0A9F02975A74A845FE85D0B95B8FA08E64239 at misex01.ena.com>
> Content-Type: text/plain; charset="US-ASCII"
>
>
>
>> -----Original Message-----
>> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
>> bounces at lists.sourceforge.net] On Behalf Of Shawn Kovalchick
>> Sent: Tuesday, November 13, 2007 11:50 AM
>> To: Nagios Users Mailinglist
>> Subject: [Nagios-users] Old state information randomly appearing
>>
>> I have 2 hosts and 4 services that I added Friday to my nagios
>> configuration.  They were misconfigured (wrong IP addresses), and
> rightly
>> sent out notifications.  I disabled notifications and active checks
> via
>> the web interface while I was diagnosing the problem.  I fixed the
>> problems (the IP addresses) and reenabled the checks and
> notifications.
>> Now, every once in a while (roughly once per minute), the old data
> appears
>> on the tac.cgi, status.cgi, and extinfo.cgi pages.  They will show as
>
> FAQ in disguise: http://www.nagios.org/faqs/viewfaq.php?faq_id=21
>
> --
> Marc
>
>
>
>
>
>
> ------------------------------
>
> Message: 23
> Date: Tue, 13 Nov 2007 13:18:46 -0500
> From: "Shawn Kovalchick" <bamapookie at gmail.com>
> Subject: Re: [Nagios-users] Old state information randomly appearing
> To: "Marc Powell" <marc at ena.com>
> Cc: Nagios Users Mailinglist <nagios-users at lists.sourceforge.net>
> Message-ID:
> <c12dcfbb0711131018kb3f3c4fq4234b6ec7858670d at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> The hosts weren't disappearing, just showing inconsistant states.  Anyway,
> that fixed the problem.  Thanks, Marc!
>
>
> On 11/13/07, Marc Powell <marc at ena.com> wrote:
>>
>>
>>
>> > -----Original Message-----
>> > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
>> > bounces at lists.sourceforge.net] On Behalf Of Shawn Kovalchick
>> > Sent: Tuesday, November 13, 2007 11:50 AM
>> > To: Nagios Users Mailinglist
>> > Subject: [Nagios-users] Old state information randomly appearing
>> >
>> > I have 2 hosts and 4 services that I added Friday to my nagios
>> > configuration.  They were misconfigured (wrong IP addresses), and
>> rightly
>> > sent out notifications.  I disabled notifications and active checks
>> via
>> > the web interface while I was diagnosing the problem.  I fixed the
>> > problems (the IP addresses) and reenabled the checks and
>> notifications.
>> > Now, every once in a while (roughly once per minute), the old data
>> appears
>> > on the tac.cgi, status.cgi, and extinfo.cgi pages.  They will show as
>>
>> FAQ in disguise: http://www.nagios.org/faqs/viewfaq.php?faq_id=21
>>
>> --
>> Marc
>>
>>
>>
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Splunk Inc.
>> Still grepping through log files to find problems?  Stop.
>> Now Search log events and configuration files using AJAX and a browser.
>> Download your FREE copy of Splunk now >> http://get.splunk.com/
>> _______________________________________________
>> 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
>>
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 24
> Date: Tue, 13 Nov 2007 13:30:33 -0600
> From: "Jerad Riggin" <jriggin at gmail.com>
> Subject: [Nagios-users] Monitoring a process
> To: nagios-users at lists.sourceforge.net
> Message-ID:
> <66955c170711131130s381655f2rfeeabbb626c3480b at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Would it be possible using Nsclient++ to monitor for a process name?
> We need to make sure Outlook.exe is running on the server and if it
> isn't, send out notifications.
>
> Thanks,
>
> Jerad
>
>
>
> ------------------------------
>
> Message: 25
> Date: Tue, 13 Nov 2007 14:36:47 -0500
> From: Christy.New at cancer.org
> Subject: [Nagios-users] Were can I find the check_snmp plugin
> To: nagios-users at lists.sourceforge.net
> Message-ID:
> <OFCC22D740.F1F6C2EA-ON85257392.006BA6F8-85257392.006BBD43 at cancer.org>
> Content-Type: text/plain; charset=US-ASCII
>
>
> I need to download the check_snmp plugin for Ubuntu for Nagios.
>
> Very Respectfully,
> Chris
>
>
>
>
> ------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
>
> ------------------------------
>
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
>
>
> End of Nagios-users Digest, Vol 18, Issue 20
> ********************************************
> 

----------------------------------------------
Confidentiality Note: This e-mail message and any attachments to it are
intended only for the named recipients and may contain legally privileged
and/or confidential information. If you are not one of the intended
recipients, please forward this mail to abuse at sumasoft.net and do not duplicate or forward this
e-mail message and immediately delete it from your computer.
----------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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