Re: [Nagios-users] check_snmp_load and check_snmp_mem output (null) issue.

2013-02-11 Thread Fernando Feijo

Looking at the config it seems that the community string reference in the 
pasted command definition (-c $ARG3$) will refer to the parameter 90 from the 
service definition, when the manual run shown implies 90 should be the 
critical value, not the community string. A possible fix would be adding 
!public! in the service definition and changing the community string call to 
-c $ARG4$ in the command definition.



On Feb 10, 2013, at 2:48 PM, Ronald Prague rpra...@gmail.com wrote:

 So I have an odd issue.  Running check_snmp_mem.pl and check_snmp_load.pl 
 from Manbulon's check_snmp plugins is returning (null) and I can't figure out 
 why.
 
 (The firewall is an Astaro/Sophos UTM 320)
 I tried turning on debugging, this is the output:
 
 [1360352407.069695] [016.1] [pid=23937] HOST: clk_astaro, SERVICE: Firewall 
 Load , CHECK TYPE: Active, OPTIONS: 0, SCHEDULED: Yes, RESCHEDULE: Yes, 
 EXITED OK: Yes, RETURN CODE: 2, OUTPUT: (null)
 
 
 If I run the command by hand, it works fine, as the nagios user, I've also 
 verified the nagios user has write access to /tmp just in case:
 
 nagios@monitor:/usr/local/nagios#  
 /usr/local/nagios/libexec/check_snmp_load.pl -H 192.168.0.2 -C public -T 
 stand -w 25 -c 90
 2 CPU, average load 5.0%  25% : OK
 
 
 Here's the command:
 
 define command{
   command_name check_snmp_load_v1
   command_line $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ $USER7$ -T $ARG1$ 
 -w $ARG2$ -c $ARG3$ $ARG4$
 }
 
 
 And the service definition:
 
 define service{
 use generic-service ; Inherit values from a 
 template
 host_name   clk_astaro
 service_description Firewall Load
 check_command   check_snmp_load_v1!stand!25!90
 }
 
 
 $USER1$ and $USER7$ are defined in resource.cfg:
 
 $USER1$=/usr/local/nagios/libexec
 $USER7$=-C public
 
 The only changes to the plugin are for fixing the error for a version string, 
 from this page: https://wiki.icinga.org/display/howtos/check_snmp
 Argument v6.0.1 isn't numeric in numeric lt ()
 This sources from old plugins getting a changed version string in 
 libnet-snmp-perl. This can be fixed by replacing all occurences of the 
 integer less than equal by the string compare 'lt'.
 
 # sed -i 's/Net::SNMP-VERSION  4/Net::SNMP-VERSION lt 4/g' 
 check_snmp_mem.pl
 
 Any ideas? All of the other services/checks work fine.
 --
 Free Next-Gen Firewall Hardware Offer
 Buy your Sophos next-gen firewall before the end March 2013 
 and get the hardware for free! Learn more.
 http://p.sf.net/sfu/sophos-d2d-feb___
 Nagios-users mailing list
 Nagios-users@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

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] Monitoring a host behind VPN/Firewall

2012-10-22 Thread Fernando Feijo
Gilberto,

There is surely a more elegant way, but if you add an extra test in the client 
that returns OK plus the date and time, and call this test _Last likely 
update or something of that sort, you will at least know if the data is stale.

It is a short batch file:
**
@echo off
echo OK: %DATE% %TIME%
exit /B 0
**

Fernando


**
On Oct 22, 2012, at 6:07 AM, Gilberto Ferreira gilberto.nu...@selbetti.com.br 
wrote:

 Nobody?? 
 
 
 
 
 
 Gilberto Nunes Ferreira 
 
 
 
 - Mensagem original - 
 
 De: Gilberto Ferreira gilberto.nu...@selbetti.com.br 
 Para: Nagios Users List nagios-users@lists.sourceforge.net 
 Enviadas: Sexta-feira, 19 de Outubro de 2012 16:42:01 
 Assunto: [Nagios-users] Monitoring a host behind VPN/Firewall 
 
 Hi folks.. 
 
 I'm trouble here... 
 We have a thousand host behind VPN/Firewall. 
 For now, we use NC_NET to collect WMI data from server, and send this datas 
 to Nagios server, throught NSCA. 
 We do it in passive mode... 
 What happen here is that, even host came down, I still see the status ok for 
 services on Nagios panel... 
 I'm use FAN, Fully Automatic Nagios here... Using Centreon to configure hosts 
 and services... 
 
 Some one know another way to monitoring a hosts behind VPN/Firewall??? 
 
 
 Thanks 
 
 
 
 
 
 
 Gilberto Nunes Ferreira 
 
 
 
 
 
 
 --
  
 Everyone hates slow websites. So do we. 
 Make your web apps faster with AppDynamics 
 Download AppDynamics Lite for free today: 
 http://p.sf.net/sfu/appdyn_sfd2d_oct 
 ___ 
 Nagios-users mailing list 
 Nagios-users@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 
 
 --
 Everyone hates slow websites. So do we.
 Make your web apps faster with AppDynamics
 Download AppDynamics Lite for free today:
 http://p.sf.net/sfu/appdyn_sfd2d_oct
 ___
 Nagios-users mailing list
 Nagios-users@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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] Monitor Cisco Uptime

2012-10-21 Thread Fernando Feijo
Thanks, Joerg.

I wish I had known about that one before I wrote my own (inferior) script ..

Fernando

**
On Oct 20, 2012, at 2:05 PM, Jörg Linge pitchf...@ederdrom.de wrote:

 https://github.com/mludvig/nagios-plugins/blob/268693c0afa2775c719584212433164cd846fe23/check_snmp_uptime.pl
 
 Joerg
 
 Am 20.10.2012 um 20:14 schrieb Will Bashlor wbash...@atcnetworks.net:
 
 The thought in my mind for querying uptime via snmp had 2 purposes, 1.) to 
 (possibly) alert on no snmp response, and 2.) To display uptime in a list 
 format on Nagios for my network engineers/techs to view.
  
 I like the idea of alerting on uptime  1 day. But wouldn’t the reply need 
 to be in a numbered time format only? I guess my mind is in Cacti threshold 
 plugin mode. For example:
  
 If the snmp respond replies with 4579200 in seconds (53 days), and I want to 
 alert on uptime less than 1 day then my alert value would be 86400, 
 correct? If this is true how can this be done when the response is:
  
 “iso.3.6.1.2.1.1.3.0 = Timeticks: (447923619) 51 days, 20:13:56.19”
  
 Or can I alert based on 447923619 only? It appears the 447923619 is seconds 
 with the last 2 digits being hundredths. Secondly, how can I simply display 
 “51 days, 20:13:56.19” In Nagios? I know these are basic questions, I have a 
 lot to learn and will continue to research every day.
  
 We have ssh only enabled for obvious security reasons, so that would work as 
 well for monitoring device vitals.
  
 I’m still interested in what other Network Managers as myself are using, 
 services wise to monitor critical core equipment vitals other than ping, if 
 anyone else would like to share.
  
 Today we are using an older version of whatsup with a little over 1000 
 devices/services (includes CPE) with ping only. I’m looking to Nagios as a 
 possible future replacement. Love it so far, just a bit of a learning curve. 
 NagiosQL helps me a lot with config files.
  
 Thanks for the response.
  
 -Will
  
 From: Fernando Feijo [mailto:ffe...@ffeijo.com] 
 Sent: Saturday, October 20, 2012 12:19 PM
 To: Nagios Users List
 Subject: Re: [Nagios-users] Monitor Cisco Uptime
  
 What other services do you recommend monitoring for up/down status 
 besides ping?
 You could also do ssh or even telnet, if you have them enabled.
  
 You did not ask, but a comment on uptime. You can use it to detect router 
 bounces, detecting rogue reloads or perhaps system crashes. I have it to go 
 to critical whenever the uptime is below X minutes, and email out. Network 
 tests such as ping, snmp or ssh availability might miss a quick box's trip 
 down, but uptime will always catch a reload.
  
 Fernando
  
 **
 On Oct 20, 2012, at 11:09 AM, Will Bashlor wbash...@atcnetworks.net wrote:
 
 
 Hi list,
  
 Well I’m not sure which of the steps below worked but it started working in 
 Nagios and the check_snmp command works from cli. I’d still be interested in 
 a guide or the correct steps I should have taken. I’m on a test vm now but 
 will be reinstalling on a production vm later.
  
 root@atcdeb01:~# /usr/lib/nagios/plugins/check_snmp -H x.x.x.x -C public -o 
 sysUpTime.0
 SNMP OK - Timeticks: (448261008) 51 days, 21:10:10.08 |
 root@atcdeb01:~#
  
 Now I’ve got to figure out a couple more things. Feel free to respond if you 
 can help.
  
 1.)Even though ping and uptime show ok, the test Cisco host status went 
 to “PENDING” in Nagios…?
 2.)Not sure how to get rid of part of the response I don’t need for 
 uptime. I only need “51 days, 21:10:10.08” under Status Information in Nagios
  
 Another thing, I’m looking for advice. For monitoring up/down status’ for 
 core Cisco routers/switches my idea is to monitor snmp response and ping, 
 but I don’t want to get 2 alerts from 1 device if it were to go down.
  
 So can I get ping or snmp alerts if they go down individually and only one 
 alert if the device is down hard? What other services do you recommend 
 monitoring for up/down status besides ping?
  
 Or is ping sufficient enough in your opinion? I may configure text alerts 
 only on ping and maybe just email alerts for snmp, or no alerts for snmp. I 
 like seeing uptime in Nagios though, it makes it easy to see if any devices 
 have just rebooted after an event.
  
 I continue to research every day but I am interested in your thoughts and 
 opinions if you’d like to share.
  
 Oh, can I integrate Nagios with my Cacti? Sorry for all the questions but 
 will be very grateful for any responses.
  
 Thanks all very much,
  
 -Will
  
 From: Will Bashlor [mailto:wbash...@atcnetworks.net] 
 Sent: Saturday, October 20, 2012 11:23 AM
 To: Nagios Users List
 Subject: [Nagios-users] Monitor Cisco Uptime
  
 Hi list,
  
 I’ve searched to no avail, this is a basic question with hopefully a simple 
 answer.
  
 I’m a long time cacti user (windows), I know basic Linux knowledge, new to 
 Nagios. I have a fresh install of Debian stable (squeeze) with apt-get 
 installed Webmin, ssh, apache2

Re: [Nagios-users] Monitor Cisco Uptime

2012-10-20 Thread Fernando Feijo
What other services do you recommend monitoring for up/down status besides 
ping?
You could also do ssh or even telnet, if you have them enabled.

You did not ask, but a comment on uptime. You can use it to detect router 
bounces, detecting rogue reloads or perhaps system crashes. I have it to go to 
critical whenever the uptime is below X minutes, and email out. Network tests 
such as ping, snmp or ssh availability might miss a quick box's trip down, but 
uptime will always catch a reload.

Fernando

**
On Oct 20, 2012, at 11:09 AM, Will Bashlor wbash...@atcnetworks.net wrote:

 Hi list,
  
 Well I’m not sure which of the steps below worked but it started working in 
 Nagios and the check_snmp command works from cli. I’d still be interested in 
 a guide or the correct steps I should have taken. I’m on a test vm now but 
 will be reinstalling on a production vm later.
  
 root@atcdeb01:~# /usr/lib/nagios/plugins/check_snmp -H x.x.x.x -C public -o 
 sysUpTime.0
 SNMP OK - Timeticks: (448261008) 51 days, 21:10:10.08 |
 root@atcdeb01:~#
  
 Now I’ve got to figure out a couple more things. Feel free to respond if you 
 can help.
  
 1.)Even though ping and uptime show ok, the test Cisco host status went 
 to “PENDING” in Nagios…?
 2.)Not sure how to get rid of part of the response I don’t need for 
 uptime. I only need “51 days, 21:10:10.08” under Status Information in Nagios
  
 Another thing, I’m looking for advice. For monitoring up/down status’ for 
 core Cisco routers/switches my idea is to monitor snmp response and ping, but 
 I don’t want to get 2 alerts from 1 device if it were to go down.
  
 So can I get ping or snmp alerts if they go down individually and only one 
 alert if the device is down hard? What other services do you recommend 
 monitoring for up/down status besides ping?
  
 Or is ping sufficient enough in your opinion? I may configure text alerts 
 only on ping and maybe just email alerts for snmp, or no alerts for snmp. I 
 like seeing uptime in Nagios though, it makes it easy to see if any devices 
 have just rebooted after an event.
  
 I continue to research every day but I am interested in your thoughts and 
 opinions if you’d like to share.
  
 Oh, can I integrate Nagios with my Cacti? Sorry for all the questions but 
 will be very grateful for any responses.
  
 Thanks all very much,
  
 -Will
  
 From: Will Bashlor [mailto:wbash...@atcnetworks.net] 
 Sent: Saturday, October 20, 2012 11:23 AM
 To: Nagios Users List
 Subject: [Nagios-users] Monitor Cisco Uptime
  
 Hi list,
  
 I’ve searched to no avail, this is a basic question with hopefully a simple 
 answer.
  
 I’m a long time cacti user (windows), I know basic Linux knowledge, new to 
 Nagios. I have a fresh install of Debian stable (squeeze) with apt-get 
 installed Webmin, ssh, apache2, and Nagios 3.2.1, nagiosql, and whatever 
 dependencies. I am trying to setup monitoring of our core Cisco routers and 
 switches. I have configured 2 services, ping and uptime. Ping works great of 
 course but I can’t get a valid response from check_snmp for uptime. Here’s 
 the command I’ve tried from the command line:
  
 root@atcdeb01:/# /usr/lib/nagios/plugins/check_snmp -H x.x.x.x -C public -o 
 sysUpTime.0
 no output, it just hangs
  
 I’ve also tried
  
 root@atcdeb01:/# /usr/bin/snmpget -v2c -c public x.x.x.x sysUpTime.0
 sysUpTime.0: Unknown Object Identifier (Sub-id not found: (top) - sysUpTime)
  
 Obviously with the correct IP and community string
  
 If I try this I get:
  
 root@atcdeb01:/# /usr/bin/snmpget -v2c -c public x.x.x.x 1.3.6.1.2.1.1.3.0
 iso.3.6.1.2.1.1.3.0 = Timeticks: (447923619) 51 days, 20:13:56.19
  
 So using OID names aren’t working. I’ve researched with not much luck.
  
 From here and various other sites I’ve tried…
 http://wiki.debian.org/SNMP
  
 Added “deb http://ftp.us.debian.org/debian squeeze main contrib non-free” to 
 /etc/apt/sources.list
  
 apt-get update
  
 Then apt-get install snmp-mibs-downloader
  
 Then “download-mibs”. Restart snmp.
  
 All to no avail. What am I doing wrong? Is there a simple guide I can use so 
 check_snmp works with oid names for Cisco and other devices?
  
 Thanks for any help you can provide.
  
 Best Regards,
  
 -Will
  
 --
 Everyone hates slow websites. So do we.
 Make your web apps faster with AppDynamics
 Download AppDynamics Lite for free today:
 http://p.sf.net/sfu/appdyn_sfd2d_oct___
 Nagios-users mailing list
 Nagios-users@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

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download 

Re: [Nagios-users] Monitor Cisco Uptime

2012-10-20 Thread Fernando Feijo
For uptime we use Perl to clean up the response and convert ticks to minutes, 
before sending to Nagios.


On Oct 20, 2012, at 1:14 PM, Will Bashlor wbash...@atcnetworks.net wrote:

 The thought in my mind for querying uptime via snmp had 2 purposes, 1.) to 
 (possibly) alert on no snmp response, and 2.) To display uptime in a list 
 format on Nagios for my network engineers/techs to view.
  
 I like the idea of alerting on uptime  1 day. But wouldn’t the reply need to 
 be in a numbered time format only? I guess my mind is in Cacti threshold 
 plugin mode. For example:
  
 If the snmp respond replies with 4579200 in seconds (53 days), and I want to 
 alert on uptime less than 1 day then my alert value would be 86400, correct? 
 If this is true how can this be done when the response is:
  
 “iso.3.6.1.2.1.1.3.0 = Timeticks: (447923619) 51 days, 20:13:56.19”
  
 Or can I alert based on 447923619 only? It appears the 447923619 is seconds 
 with the last 2 digits being hundredths. Secondly, how can I simply display 
 “51 days, 20:13:56.19” In Nagios? I know these are basic questions, I have a 
 lot to learn and will continue to research every day.
  
 We have ssh only enabled for obvious security reasons, so that would work as 
 well for monitoring device vitals.
  
 I’m still interested in what other Network Managers as myself are using, 
 services wise to monitor critical core equipment vitals other than ping, if 
 anyone else would like to share.
  
 Today we are using an older version of whatsup with a little over 1000 
 devices/services (includes CPE) with ping only. I’m looking to Nagios as a 
 possible future replacement. Love it so far, just a bit of a learning curve. 
 NagiosQL helps me a lot with config files.
  
 Thanks for the response.
  
 -Will
  
 From: Fernando Feijo [mailto:ffe...@ffeijo.com] 
 Sent: Saturday, October 20, 2012 12:19 PM
 To: Nagios Users List
 Subject: Re: [Nagios-users] Monitor Cisco Uptime
  
 What other services do you recommend monitoring for up/down status besides 
 ping?
 You could also do ssh or even telnet, if you have them enabled.
  
 You did not ask, but a comment on uptime. You can use it to detect router 
 bounces, detecting rogue reloads or perhaps system crashes. I have it to go 
 to critical whenever the uptime is below X minutes, and email out. Network 
 tests such as ping, snmp or ssh availability might miss a quick box's trip 
 down, but uptime will always catch a reload.
  
 Fernando
  
 **
 On Oct 20, 2012, at 11:09 AM, Will Bashlor wbash...@atcnetworks.net wrote:
 
 
 Hi list,
  
 Well I’m not sure which of the steps below worked but it started working in 
 Nagios and the check_snmp command works from cli. I’d still be interested in 
 a guide or the correct steps I should have taken. I’m on a test vm now but 
 will be reinstalling on a production vm later.
  
 root@atcdeb01:~# /usr/lib/nagios/plugins/check_snmp -H x.x.x.x -C public -o 
 sysUpTime.0
 SNMP OK - Timeticks: (448261008) 51 days, 21:10:10.08 |
 root@atcdeb01:~#
  
 Now I’ve got to figure out a couple more things. Feel free to respond if you 
 can help.
  
 1.)Even though ping and uptime show ok, the test Cisco host status went 
 to “PENDING” in Nagios…?
 2.)Not sure how to get rid of part of the response I don’t need for 
 uptime. I only need “51 days, 21:10:10.08” under Status Information in Nagios
  
 Another thing, I’m looking for advice. For monitoring up/down status’ for 
 core Cisco routers/switches my idea is to monitor snmp response and ping, but 
 I don’t want to get 2 alerts from 1 device if it were to go down.
  
 So can I get ping or snmp alerts if they go down individually and only one 
 alert if the device is down hard? What other services do you recommend 
 monitoring for up/down status besides ping?
  
 Or is ping sufficient enough in your opinion? I may configure text alerts 
 only on ping and maybe just email alerts for snmp, or no alerts for snmp. I 
 like seeing uptime in Nagios though, it makes it easy to see if any devices 
 have just rebooted after an event.
  
 I continue to research every day but I am interested in your thoughts and 
 opinions if you’d like to share.
  
 Oh, can I integrate Nagios with my Cacti? Sorry for all the questions but 
 will be very grateful for any responses.
  
 Thanks all very much,
  
 -Will
  
 From: Will Bashlor [mailto:wbash...@atcnetworks.net] 
 Sent: Saturday, October 20, 2012 11:23 AM
 To: Nagios Users List
 Subject: [Nagios-users] Monitor Cisco Uptime
  
 Hi list,
  
 I’ve searched to no avail, this is a basic question with hopefully a simple 
 answer.
  
 I’m a long time cacti user (windows), I know basic Linux knowledge, new to 
 Nagios. I have a fresh install of Debian stable (squeeze) with apt-get 
 installed Webmin, ssh, apache2, and Nagios 3.2.1, nagiosql, and whatever 
 dependencies. I am trying to setup monitoring of our core Cisco routers and 
 switches. I have configured 2 services, ping and uptime. Ping works

Re: [Nagios-users] [Mac OS X 10.6] Problem loading ndomod broker module

2010-07-26 Thread Fernando Feijo

Sergio,

Not quite what you asked, but did you try the Darwin ports path? 

http://nagios.darwinports.com/

Fernando


On Jul 26, 2010, at 8:28 AM, Sergio Loureiro wrote:

 Hi All,
 
 I've installed Nagios 3.2.1 from the sources on a Mac OS X 10.6 and I've 
 installed ndoutils 1.4b9. 
 
 I get the following error on the logs:
 Error: Could not load module '/usr/local/nagios/bin/ndomod.o' - file not 
 found
 
 But the file is there and the permissions are ok. Looking at the code I saw 
 that in the base/nebmods.c there is a copy of the library towards the temp
 directory that is then loaded and erased. On my temp directory i have the 
 temporary file that is a copy but never erased. 
 
 So, the error comes from the line (i'm using libtool):
 mod-module_handle=lt_dlopen(output_file);
 
 And i guess i'm getting a Mac OS X specific problem with dlopen because i've 
 been using nagios on linux for a long time without trouble.
 Any hints?
 
 Thanks
 Sergio
 
 
 
 Hotmail: Powerful Free email with security by Microsoft. Get it now. 
 --
 The Palm PDK Hot Apps Program offers developers who use the
 Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
 of $1 Million in cash or HP Products. Visit us here for more details:
 http://ad.doubleclick.net/clk;226879339;13503038;l?
 http://clk.atdmt.com/CRS/go/247765532/direct/01/___
 Nagios-users mailing list
 Nagios-users@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

--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/___
Nagios-users mailing list
Nagios-users@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