[Nagios-users-br] Duvida

2011-01-06 Thread marcio xavier
Pessoal,

Estou com probleminha chato, não estou conseguindo monitorar meu firewall,
ele é um Freebsd-(Pfsense) que roda o bsnmpd.
O problema é o seguinte, se eu rodar o /usr/lib/nagios/plugins/check_snmp
-H 192.168.0.1 -C public -o .1.3.6.1.2.1.1.5.0 manualmente ou somente o
snmpget consigo o retorno sem problemas, mas na página no Nágios está
apresentando a mensagem load problem - No data received from host.

Meu commands,cfg está assim:


# 'check_snmp' command definition
define command{
command_namecheck_snmp
command_line/usr/lib/nagios/plugins/check_snmp -H
'$HOSTADDRESS$' $USER7$  -w :'$ARG2$',:'$ARG3$',:'$ARG4$' -c
:'$ARG5$',:'$ARG6$',:'$ARG7$' -l load
}


E meu services.cfg:

define service {
host_name   teste
service_description Check Hostname
check_command   check_snmp!.1.3.6.1.2.1.1.5.0
max_check_attempts  1
check_interval  1
retry_interval  1
check_period24x7
notification_interval   60
notification_period 24x7
notification_optionsw,c,r
contact_groups  tecnicos
}


Muito Obrigado
--
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
-- 
Nagios-users-br@lists.sourceforge.net mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki


Re: [Nagios-users-br] Duvida

2011-01-06 Thread Jose Oliveira
Ola Marcio

Os parametros que voce passou no services.cfg estao diferentes dos que voce
passou na mao...

Nao me lembro da macro $USER7$ mas ela me parfece estar sobrando...

Eu criaria um command_line assim, pra refletir o que voce mandou na mão. Mas
não sei se os parametros do plugin estão OK...:
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -C public
-o $ARG1$

Verifique tambem as permissoes, isto é, se o usuario que está rodando o
nagios (geralmente o nagios) tem permissão de execucao no check_snmp...

[]s


2011/1/6 marcio xavier mrcxav...@gmail.com

 Pessoal,

 Estou com probleminha chato, não estou conseguindo monitorar meu firewall,
 ele é um Freebsd-(Pfsense) que roda o bsnmpd.
 O problema é o seguinte, se eu rodar o /usr/lib/nagios/plugins/check_snmp
 -H 192.168.0.1 -C public -o .1.3.6.1.2.1.1.5.0 manualmente ou somente o
 snmpget consigo o retorno sem problemas, mas na página no Nágios está
 apresentando a mensagem load problem - No data received from host.

 Meu commands,cfg está assim:


 # 'check_snmp' command definition
 define command{
command_namecheck_snmp
command_line/usr/lib/nagios/plugins/check_snmp -H
 '$HOSTADDRESS$' $USER7$  -w :'$ARG2$',:'$ARG3$',:'$ARG4$' -c
 :'$ARG5$',:'$ARG6$',:'$ARG7$' -l load
}


 E meu services.cfg:

 define service {
host_name   teste
service_description Check Hostname
check_command   check_snmp!.1.3.6.1.2.1.1.5.0
max_check_attempts  1
check_interval  1
retry_interval  1
check_period24x7
notification_interval   60
notification_period 24x7
notification_optionsw,c,r
contact_groups  tecnicos
}


 Muito Obrigado

 --
 Gaining the trust of online customers is vital for the success of any
 company
 that requires sensitive data to be transmitted over the Web.   Learn how to
 best implement a security strategy that keeps consumers' information secure
 and instills the confidence they need to proceed with transactions.
 http://p.sf.net/sfu/oracle-sfdevnl
 --
 Nagios-users-br@lists.sourceforge.net mailing list
 https://lists.sourceforge.net/lists/listinfo/nagios-users-br
 Wiki: http://nagios-br.sf.net/wiki




-- 
Abraços

José Geraldo de Oliveira
Linux user #492561
Certified LPIC-1
--
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
-- 
Nagios-users-br@lists.sourceforge.net mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki


Re: [Nagios-users] Check behavior during the notification event

2011-01-06 Thread Mike Lindsey
On 1/5/11 11:27 PM, Yu Watanabe wrote:
 Thank you for the reply.

 I understood that notification events will hang up the normal service check 
 events.

 I was bit curious about your comment.

 A lot of people end up writing external notification handlers to take the 
 load off of Nagios so the scheduled checks can continue whilst the external 
 app 
 queues and processes the notifications.

   If you could share your knowledge it would be helpful. 
   Does people create external application that scans the nagios.log without 
 using 
   any of Event Handlers or Notification Events of Nagios? Or perhaps event 
 broker?

What I ended up doing was having notification commands that drop a spool
file that contains the Nagios environment macros, into a directory. A
second daemon reads in the spool files for the notification event,
collects all the meta data (product dependencies, runbook links, ticket
links, etc), caches it for the subsequent contacts.

The spool file write is very quick, letting Nagios get back to dealing
with check submission handling, and the secondary daemon takes a serial,
blocking process, and does all the heavy lifting for notification
generation and email in a fairly parallel process. A notification for us
will include upwards of 20 contacts (some email lists, some individuals,
some ticketing and tracking systems, and some pagers).. At the height of
the bad times Nagios would block for 40 or so seconds, sending out
every single notification serially. Just dumping out a spool file for
each contact happens in a small fraction of a second. Pager contacts are
still straight Nagios to postfix, because simple is better for anything
where you're actually waking someone up at 3am.

-- 
Mike Lindsey


--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
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] How to Monitor VMware ESX Server and Storage Units

2011-01-06 Thread Marc Haber
On Wed, Jan 05, 2011 at 10:38:31AM -0500, Max Hetrick wrote:
 On 01/05/2011 10:28 AM, Marc Haber wrote:
  Are there other possibilities of connecting Nagios to ESX and MSA
  devices? I'd appreciate your input.
 
 Have a look at the check_esx.pl plugin. You can do quite a bit with it.

About the same that I can already monitor using SNMP. Judging from the
web page, it doesn't allow finding out whether we still have all power
supplies and all local disks.

Greetings
Marc

-- 
-
Marc Haber | I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things.Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 3221 2323190

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
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] How to Monitor VMware ESX Server and StorageUnits

2011-01-06 Thread Marc Haber
On Wed, Jan 05, 2011 at 11:02:46AM -0500, James Pratt wrote:
 hi, you mention you are using HP's management agents on ESX - if so,
 check out these SNMP plugins to replace check_snmp - 
 
 http://nagios.manubulon.com/

What do these plugins better than the stock snmp plugins?

 I'm not sure if you can get any SMART drive status from snmpd/HP, but
 you can check RAID status on local disks, and there are also ways to
 check ESX datastore free space usage too.

Power Supply Status?

Greetings
Marc

-- 
-
Marc Haber | I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things.Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 3221 2323190

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
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] Check behavior during the notification event

2011-01-06 Thread Yu Watanabe
Thank you for the reply.

So the length of Notfication depends on the command which you use...

some ticketing and tracking systems, and some pagers).. At the height of
the bad times Nagios would block for 40 or so seconds, sending out
every single notification serially. Just dumping out a spool file for

  Do you mean by 40 second per Notfication event or took 40 seconds to send 
  20 contacts?

Thanks,
Yu Watanabe

Mike Lindsey さんは書きました:
On 1/5/11 11:27 PM, Yu Watanabe wrote:
 Thank you for the reply.

 I understood that notification events will hang up the normal service check 
 events.

 I was bit curious about your comment.

 A lot of people end up writing external notification handlers to take the 
 load off of Nagios so the scheduled checks can continue whilst the external 
app 
 queues and processes the notifications.

   If you could share your knowledge it would be helpful. 
   Does people create external application that scans the nagios.log without 
 using 
   any of Event Handlers or Notification Events of Nagios? Or perhaps event 
 broker?

What I ended up doing was having notification commands that drop a spool
file that contains the Nagios environment macros, into a directory. A
second daemon reads in the spool files for the notification event,
collects all the meta data (product dependencies, runbook links, ticket
links, etc), caches it for the subsequent contacts.

The spool file write is very quick, letting Nagios get back to dealing
with check submission handling, and the secondary daemon takes a serial,
blocking process, and does all the heavy lifting for notification
generation and email in a fairly parallel process. A notification for us
will include upwards of 20 contacts (some email lists, some individuals,
some ticketing and tracking systems, and some pagers).. At the height of
the bad times Nagios would block for 40 or so seconds, sending out
every single notification serially. Just dumping out a spool file for
each contact happens in a small fraction of a second. Pager contacts are
still straight Nagios to postfix, because simple is better for anything
where you're actually waking someone up at 3am.

-- 
Mike Lindsey




--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
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] Check behavior during the notification event

2011-01-06 Thread Yu Watanabe
It would be a great help if you could help me out with my additional question.

I was trying to find how does nagios determine the interval time between the 
high priority events
in the source code but I couldn't find the part.

I found was the following line in the event.c 

958 /* handle high priority events */
959 if(event_list_high!=NULL  
(current_time=event_list_high-run_time)){
960
961 /* remove the first event from the timing loop 
*/
962 temp_event=event_list_high;
963 event_list_high=event_list_high-next;
964
965 /* handle the event */
966 handle_timed_event(temp_event);
967
968 /* reschedule the event if necessary */
969 if(temp_event-recurring==TRUE)
970 
reschedule_event(temp_event,event_list_high);
971
972 /* else free memory associated with the event */
973 else
974 free(temp_event);
975 }

Do you have any idea how does nagios determine the value 30 seconds,
between the high priority events?

Thank you for reading.

Thanks,
Yu

Stuart Browne さんは書きました:
 -Original Message-
 From: Yu Watanabe [mailto:yu.watan...@jp.fujitsu.com]
 Sent: Thursday, 6 January 2011 5:04 PM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Check behavior during the notification event
 
 Hello all.
 
 I would like to ask a question regarding to the behavior of check
 scheduling
 during the massive number of notification event is occuring.
 
 I have couple of notification group defeined in each service but when
 notification
 alerts occur consecutively among multiple services, it seems that nagios
 sequentially
 process the notification events, not simultaneously.
 
 [2010-12-19 15:08:26] SERVICE ALERT: host1;
 [2010-12-19 15:08:26] SERVICE NOTIFICATION:
 jdoe;proact1;ssh_proc_mem_Search;CRITICAL;notify-by-email;
 [2010-12-19 15:08:56] SERVICE NOTIFICATION:
 nagiosadmin;proact1;ssh_proc_mem_Search;CRITICAL;notify-by-email;
 [2010-12-19 15:09:26] SERVICE ALERT:
 host2;ssh_proc_alv_TrafficAgent_3;CRITICAL;HARD;3;
 [2010-12-19 15:09:26] SERVICE NOTIFICATION:
 jdoe;traffic01;ssh_proc_alv_TrafficAgent_3;CRITICAL;notify-by-email;
 [2010-12-19 15:09:56] SERVICE NOTIFICATION:
 nagiosadmin;traffic01;ssh_proc_alv_TrafficAgent_3;CRITICAL;notify-by-
 email;
 [2010-12-19 15:10:26] SERVICE ALERT:
 host3;ssh_proc_alv_EAM_GbE_MC_5;CRITICAL;HARD;3;
 [2010-12-19 15:10:26] SERVICE NOTIFICATION:
 jdoe;eam03;ssh_proc_alv_EAM_GbE_MC_5;CRITICAL;notify-by-email;
 [2010-12-19 15:10:56] SERVICE NOTIFICATION:
 nagiosadmin;eam03;ssh_proc_alv_EAM_GbE_MC_5;CRITICAL;notify-by-email;
 [2010-12-19 15:11:26] SERVICE ALERT:
 host4;ssh_proc_alv_EAM_CX2600_220_40;CRITICAL;HARD;3;
 [2010-12-19 15:11:26] SERVICE NOTIFICATION:
 jdoe;eam01;ssh_proc_alv_EAM_CX2600_220_40;CRITICAL;notify-by-email;
 [2010-12-19 15:11:56] SERVICE NOTIFICATION:
 nagiosadmin;eam01;ssh_proc_alv_EAM_CX2600_220_40;CRITICAL;notify-by-email;
 
 Is this a normal behavior with nagios ? (The version is 2.10)
 I found a chapter in Nagios manual describes about the check delay of high
 priority events but
 wasn't sure if the situation corresponds to the manual or not.
 
 Examples of high priority events include log file rotations, external
 command checks, and service reaper events. Additionally, host checks will
 slow down the execution
 and processing of service checks.
 
 Thanks,
 Yu Watanabe

This is normal behaviour.

A lot of people end up writing external notification handlers to take the load 
off of Nagios so the scheduled checks can continue whilst the external app 
queues and processes the notifications.

Generally an email notification should be quick (less than a second), but if 
you're trying to send 20 emails or you start sending SMS' directly etc., it 
can get bogged down. 

Stuart

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
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



--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database 

[Nagios-users] NagVis Apache Help

2011-01-06 Thread Andrew Fay
hi,

I have nagios3 and a copy of nagvis running on an ubuntu box.. when I
click on a host in Nagvis I get :

The requested URL /nagios/cgi-bin/status.cgi was not found on this
server.

http://server/nagios/cgi-bin/status.cgi?host=localhost

it should be

http://server/nagios3/cgi-bin/status.cgi?host=localhost

Basically The CGI's work for standard Nagios but not for NagVis, so how
can I tell NagVis where to look for the CGI's?

 

This is the apache cfg for nagvis :

# NagVis Apache2 sample configuration file
#
#

#
 
 
Alias /nagvis /etc/nagvis/share
 
Directory /etc/nagvis/share
  Options FollowSymLinks
  AllowOverride None
  Order allow,deny
  Allow from all
 
  # To enable Nagios basic auth on NagVis use the following options
  # Just uncomment it. Maybe you need to adjust the path to the
  # Auth user file.
  #
  # If you use the NagVis internal auth mechanism based on the web
  # for you won't need this.
  #
  #AuthName NagVis Access
  #AuthType Basic
  #AuthUserFile /etc/nagios3/etc/htpasswd.users
  #Require valid-user
 
  # With installed and enabled mod_rewrite there are several
redirections
  # available to fix deprecated and/or wrong urls. None of those rules
is
  # mandatory to get NagVis working.
  IfModule mod_rewrite.c
RewriteEngine On
RewriteBase /nagvis
 
# Use mod_rewrite for old url redirection even if there are php
files which
# redirect the queries itselfs. In some cases the mod_rewrite
redirect
# is better than the php redirect.
RewriteCond %{REQUEST_URI} ^/nagvis(/index\.php|/|)(\?.*|)$
RewriteRule ^(index\.php|)(\?.*|)$ /nagvis/frontend/nagvis-js/$1$2
[R=301,L]
RewriteCond %{REQUEST_URI} ^/nagvis/config\.php.*$
RewriteRule ^config\.php(.*) /nagvis/frontend/wui/$1 [R=301,L]
 
# Redirect old regular map links
RewriteCond %{REQUEST_URI} ^/nagvis/frontend/nagvis-js
RewriteCond %{QUERY_STRING} map=(.*)
RewriteRule ^(.*)$
/nagvis/frontend/nagvis-js/index.php?mod=Mapact=viewshow=%1 [R=301,L]
 
# Redirect old wui map links
RewriteCond %{REQUEST_URI} ^/nagvis/frontend/wui
RewriteCond %{QUERY_STRING} map=(.*)
RewriteRule ^(.*)$
/nagvis/frontend/wui/index.php?mod=Mapact=editshow=%1 [R=301,L]
 
# Redirect old rotation calls
RewriteCond %{REQUEST_URI} ^/nagvis/frontend/nagvis-js
RewriteCond %{QUERY_STRING} !mod
RewriteCond %{QUERY_STRING} rotation=(.*)
RewriteRule ^(.*)$
/nagvis/frontend/nagvis-js/index.php?mod=Rotationact=viewshow=%1
[R=301,L]
  /IfModule
/Directory

Nagios apache config :

# apache configuration for nagios 3.x
# note to users of nagios 1.x and 2.x:
#   throughout this file are commented out sections which preserve
#   backwards compatibility with bookmarks/config for older nagios
versios.
#   simply look for lines following nagios 1.x: and nagios 2.x
comments.
 
ScriptAlias /cgi-bin/nagios3 /usr/lib/cgi-bin/nagios3
ScriptAlias /nagios3/cgi-bin /usr/lib/cgi-bin/nagios3
# nagios 1.x:
#ScriptAlias /cgi-bin/nagios /usr/lib/cgi-bin/nagios3
#ScriptAlias /nagios/cgi-bin /usr/lib/cgi-bin/nagios3
# nagios 2.x: 
#ScriptAlias /cgi-bin/nagios2 /usr/lib/cgi-bin/nagios3
#ScriptAlias /nagios2/cgi-bin /usr/lib/cgi-bin/nagios3
 
# Where the stylesheets (config files) reside
Alias /nagios3/stylesheets /etc/nagios3/stylesheets
# nagios 1.x:
#Alias /nagios/stylesheets /etc/nagios3/stylesheets
# nagios 2.x:
#Alias /nagios2/stylesheets /etc/nagios3/stylesheets
 
# Where the HTML pages live
Alias /nagios3 /usr/share/nagios3/htdocs
# nagios 2.x: 
#Alias /nagios2 /usr/share/nagios3/htdocs
# nagios 1.x:
#Alias /nagios /usr/share/nagios3/htdocs
 
DirectoryMatch
(/usr/share/nagios3/htdocs|/usr/lib/cgi-bin/nagios3|/etc/nagios3/stylesh
eets)
Options FollowSymLinks
 
DirectoryIndex index.php
 
AllowOverride AuthConfig
Order Allow,Deny
Allow From All
 
AuthName Nagios Access
AuthType Basic
AuthUserFile /etc/nagios3/htpasswd.users
# nagios 1.x:
#AuthUserFile /etc/nagios/htpasswd.users
require valid-user
/DirectoryMatch
 
# Enable this ScriptAlias if you want to enable the grouplist patch.
# See http://apan.sourceforge.net/download.html for more info
# It allows you to see a clickable list of all hostgroups in the
# left pane of the Nagios web interface
# XXX This is not tested for nagios 2.x use at your own peril
#ScriptAlias /nagios3/side.html /usr/lib/cgi-bin/nagios3/grouplist.cgi
# nagios 1.x:
#ScriptAlias /nagios/side.html /usr/lib/cgi-bin/nagios3/grouplist.cgi

Thanks

 

 

---

 

Andrew 





 




Disclaimer statement by ABERDEEN JOURNALS LTD - 6/1/2011
The information or images contained within this e-mail are of a confidential 
nature. If you are
not the intended recipient please forward it to badm...@ajl.co.uk and delete 
the message 
from your system. 
Opinions, 

Re: [Nagios-users] NagVis Apache Help

2011-01-06 Thread Tony Yarusso
It's actually not an Apache setting at all, but a NagVis one.  In your 
nagvis.ini.php file, look for this section:

; absolute html NagVis cgi path
; htmlcgi=/nagios/cgi-bin

Uncomment the htmlcgi setting (remove the semicolon), and change the 
path to fit what you need.

-- 
Tony Yarusso
Technical Team
___
Nagios Enterprises, LLC
Email:  tyaru...@nagios.com
Web:www.nagios.com


--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
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] [SPAM] - Re: NagVis Apache Help - Email found in subject

2011-01-06 Thread Andrew Fay
Hi,

Thanks for the quick response, I found it a few minutes after emailing,

Cheers!

---

Andrew



-Original Message-
From: Tony Yarusso [mailto:tyaru...@nagios.com] 
Sent: 06 January 2011 15:20
To: nagios-users@lists.sourceforge.net
Subject: [SPAM] - Re: [Nagios-users] NagVis Apache Help - Email found in
subject

It's actually not an Apache setting at all, but a NagVis one.  In your 
nagvis.ini.php file, look for this section:

; absolute html NagVis cgi path
; htmlcgi=/nagios/cgi-bin

Uncomment the htmlcgi setting (remove the semicolon), and change the 
path to fit what you need.

-- 
Tony Yarusso
Technical Team
___
Nagios Enterprises, LLC
Email:  tyaru...@nagios.com
Web:www.nagios.com



--
Learn how Oracle Real Application Clusters (RAC) One Node allows
customers
to consolidate database storage, standardize their database environment,
and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
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

o--o
This Email has been scanned for viruses by Aberdeen
Journals' Inbound Email Security Systems.
o--o



Disclaimer statement by ABERDEEN JOURNALS LTD - 6/1/2011
The information or images contained within this e-mail are of a confidential 
nature. If you are
not the intended recipient please forward it to badm...@ajl.co.uk and delete 
the message 
from your system. 
Opinions, conclusions and other information in this message that do not relate 
to the official 
business of Aberdeen Journals Ltd shall be understood as neither given nor 
endorsed by it.

Aberdeen Journals Ltd, PO Box 43, Lang Stracht, Mastrick, Aberdeen. AB15 6DF.
Tel: +44 (0)1224 690222  | Fax +44 (0)1224 685753 | Registered No: 15256 
Scotland.

PLEASE CONSIDER THE ENVIRONMENT BEFORE PRINTING THIS EMAIL




o--o
This Email has been scanned for viruses by Aberdeen
Journals' Outbound Email Security Systems.
o--o

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
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] Check_load

2011-01-06 Thread Liz Cardona
Hello, I am wondering if someone had an idea regarding the question below?

Thanks,


On 1/5/11 10:07 AM, Liz Cardona lcard...@buzz-media.com wrote:

Hello,

Ive been using nagios for quite sometime now and would like to enhance the way 
I do check_load.
According to you documentation, when using the plugin check_load I can use a 
“-r” option and it will give me the load average based on processes/number of 
cpus core. I cannot find a documentation explaining how nagios is doing this? 
I.e how is it checking the number of cpus. I've turned on debugging mode with 
no succes.
I'm wondering if you can please put me in the correct direction or 
documentations of how to understand this in depth.

Thank you very much,
Liz Cardona
l...@buzz-media.com
323 459 2833

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl___
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] Check_load

2011-01-06 Thread James Pratt
You would have to know what OS you are on , and have a look at the
configure.in file for the plugins, as that is how the CPU info is
obtained ... (Just checked the source code, as I was curious about that
as well)... 

 

check_load.c ---

 

if (take_into_account_cpus == 1) {

if ((numcpus = GET_NUMBER_OF_CPUS()) 
0) {

la[0] = la[0] / numcpus;

la[1] = la[1] / numcpus;

la[2] = la[2] / numcpus;

}

}

 

 

 


--

 

common.h

 

/* GET_NUMBER_OF_CPUS is a macro to return 

   number of CPUs, if we can get that data.

   Use configure.in to test for various OS ways of

   getting that data

   Will return -1 if cannot get data

*/

#ifdef HAVE_SYSCONF__SC_NPROCESSORS_CONF 

#define GET_NUMBER_OF_CPUS() sysconf(_SC_NPROCESSORS_CONF)

#else

#define GET_NUMBER_OF_CPUS() -1

#endif

 


--

 

 

Cheers,

Jamie

 

From: Liz Cardona [mailto:lcard...@buzz-media.com] 
Sent: Thursday, January 06, 2011 1:54 PM
To: Nagios Users List
Subject: Re: [Nagios-users] Check_load

 

Hello, I am wondering if someone had an idea regarding the question
below?

Thanks,


On 1/5/11 10:07 AM, Liz Cardona lcard...@buzz-media.com wrote:

Hello,

Ive been using nagios for quite sometime now and would like to enhance
the way I do check_load.
According to you documentation, when using the plugin check_load I can
use a -r option and it will give me the load average based on
processes/number of cpus core. I cannot find a documentation explaining
how nagios is doing this? I.e how is it checking the number of cpus.
I've turned on debugging mode with no succes.
I'm wondering if you can please put me in the correct direction or
documentations of how to understand this in depth.

Thank you very much,
Liz Cardona
l...@buzz-media.com
323 459 2833

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl___
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] Backing up Nagios on Ubuntu 10.04

2011-01-06 Thread Andy Graybeal
On 01/05/2011 05:39 PM, Max Schubert wrote:
 While a live back up is definitely a good idea, if you start storing
 your configuration tree in a version control system off server - CVS,
 GIT, SVN, any other one you choose - then the back up issue on the
 live server only becomes one of backing up retention.dat, which has
 changes you / your users have made to the states of notifications,
 flapping, etc from the CGIs or via the named pipe.

 - Max


Max, thank you for this information.  I actually just learned of the 
version control technique for configuration files just recently.  I am 
sad that I didn't know of this technique before.

Thanks for your advice.

-Andy



--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
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] NagVis Apache Help

2011-01-06 Thread david ribeiro
You need to modify the file /etc:nagvis/nagvis.ini.php 

Put this : 

; path options 
[paths] 
; absolute physical NagVis path 
base=/usr/share/nagvis/ 
; absolute html NagVis path 
htmlbase=/nagios3/nagvis 
; absolute html NagVis cgi path 
htmlcgi=/nagios3/cgi-bin 














David Ribeiro 


De: Andrew Fay andrew@ajl.co.uk 
À: Nagios Users List nagios-users@lists.sourceforge.net 
Envoyé: Jeudi 6 Janvier 2011 15:53:31 
Objet: [Nagios-users] NagVis Apache Help 




hi, 

I have nagios3 and a copy of nagvis running on an ubuntu box.. when I click on 
a host in Nagvis I get : 

The requested URL /nagios/cgi-bin/status.cgi was not found on this server. 

http://server/nagios/cgi-bin/status.cgi?host=localhost 

it should be 

http://server/nagios3/cgi-bin/status.cgi?host=localhost 

Basically The CGI's work for standard Nagios but not for NagVis, so how can I 
tell NagVis where to look for the CGI's? 



This is the apache cfg for nagvis : # NagVis Apache2 sample configuration file 
# # 
# 
Alias /nagvis /etc/nagvis/share Directory /etc/nagvis/share Options 
FollowSymLinks AllowOverride None Order allow,deny Allow from all # To enable 
Nagios basic auth on NagVis use the following options # Just uncomment it. 
Maybe you need to adjust the path to the # Auth user file. # # If you use the 
NagVis internal auth mechanism based on the web # for you won't need this. # 
#AuthName NagVis Access #AuthType Basic #AuthUserFile 
/etc/nagios3/etc/htpasswd.users #Require valid-user # With installed and 
enabled mod_rewrite there are several redirections # available to fix 
deprecated and/or wrong urls. None of those rules is # mandatory to get NagVis 
working. IfModule mod_rewrite.c RewriteEngine On RewriteBase /nagvis # Use 
mod_rewrite for old url redirection even if there are php files which # 
redirect the queries itselfs. In some cases the mod_rewrite redirect # is 
better than the php redirect. RewriteCond %{REQUEST_URI} 
^/nagvis(/index\.php|/|)(\?.*|)$ RewriteRule ^(index\.php|)(\?.*|)$ 
/nagvis/frontend/nagvis-js/$1$2 [R=301,L] RewriteCond %{REQUEST_URI} 
^/nagvis/config\.php.*$ RewriteRule ^config\.php(.*) /nagvis/frontend/wui/$1 
[R=301,L] # Redirect old regular map links RewriteCond %{REQUEST_URI} 
^/nagvis/frontend/nagvis-js RewriteCond %{QUERY_STRING} map=(.*) RewriteRule 
^(.*)$ /nagvis/frontend/nagvis-js/index.php?mod=Mapact=viewshow=%1 [R=301,L] 
# Redirect old wui map links RewriteCond %{REQUEST_URI} ^/nagvis/frontend/wui 
RewriteCond %{QUERY_STRING} map=(.*) RewriteRule ^(.*)$ 
/nagvis/frontend/wui/index.php?mod=Mapact=editshow=%1 [R=301,L] # Redirect 
old rotation calls RewriteCond %{REQUEST_URI} ^/nagvis/frontend/nagvis-js 
RewriteCond %{QUERY_STRING} !mod RewriteCond %{QUERY_STRING} rotation=(.*) 
RewriteRule ^(.*)$ 
/nagvis/frontend/nagvis-js/index.php?mod=Rotationact=viewshow=%1 [R=301,L] 
/IfModule /Directory 

Nagios apache config : # apache configuration for nagios 3.x # note to users of 
nagios 1.x and 2.x: #   throughout this file are commented out sections which 
preserve #   backwards compatibility with bookmarks/config for older nagios 
versios. #   simply look for lines following nagios 1.x: and nagios 2.x 
comments. ScriptAlias /cgi-bin/nagios3 /usr/lib/cgi-bin/nagios3 ScriptAlias 
/nagios3/cgi-bin /usr/lib/cgi-bin/nagios3 # nagios 1.x: #ScriptAlias 
/cgi-bin/nagios /usr/lib/cgi-bin/nagios3 #ScriptAlias /nagios/cgi-bin 
/usr/lib/cgi-bin/nagios3 # nagios 2.x: #ScriptAlias /cgi-bin/nagios2 
/usr/lib/cgi-bin/nagios3 #ScriptAlias /nagios2/cgi-bin /usr/lib/cgi-bin/nagios3 
# Where the stylesheets (config files) reside Alias /nagios3/stylesheets 
/etc/nagios3/stylesheets # nagios 1.x: #Alias /nagios/stylesheets 
/etc/nagios3/stylesheets # nagios 2.x: #Alias /nagios2/stylesheets 
/etc/nagios3/stylesheets # Where the HTML pages live Alias /nagios3 
/usr/share/nagios3/htdocs # nagios 2.x: #Alias /nagios2 
/usr/share/nagios3/htdocs # nagios 1.x: #Alias /nagios 
/usr/share/nagios3/htdocs DirectoryMatch 
(/usr/share/nagios3/htdocs|/usr/lib/cgi-bin/nagios3|/etc/nagios3/stylesheets) 
Options FollowSymLinks DirectoryIndex index.php AllowOverride AuthConfig Order 
Allow,Deny Allow From All AuthName Nagios Access AuthType Basic AuthUserFile 
/etc/nagios3/htpasswd.users # nagios 1.x: #AuthUserFile 
/etc/nagios/htpasswd.users require valid-user /DirectoryMatch # Enable this 
ScriptAlias if you want to enable the grouplist patch. # See 
http://apan.sourceforge.net/download.html for more info # It allows you to see 
a clickable list of all hostgroups in the # left pane of the Nagios web 
interface # XXX This is not tested for nagios 2.x use at your own peril 
#ScriptAlias /nagios3/side.html /usr/lib/cgi-bin/nagios3/grouplist.cgi # nagios 
1.x: #ScriptAlias /nagios/side.html /usr/lib/cgi-bin/nagios3/grouplist.cgi 

Thanks 





--- 



Andrew 








Disclaimer statement by ABERDEEN JOURNALS LTD - 

Re: [Nagios-users] Backing up Nagios on Ubuntu 10.04

2011-01-06 Thread Max Hetrick
On 01/05/2011 05:39 PM, Max Schubert wrote:
 While a live back up is definitely a good idea, if you start storing
 your configuration tree in a version control system off server - CVS,
 GIT, SVN, any other one you choose - then the back up issue on the
 live server only becomes one of backing up retention.dat, which has
 changes you / your users have made to the states of notifications,
 flapping, etc from the CGIs or via the named pipe.

That's what we do at my employer, that is use SVN for the Nagios 
configuration files. I still backup all data off-site for backup 
purposes, though.

Where SVN comes into play for us is when every change has been made for 
Nagios, there is a comment on the commit. This allows us to easily 
navigate back knowing what changes were made, by whom, and what the date 
was when the change occurred to the configs.

I'd still opt for backup of all the system files off-site, however, and 
depending on your company, this may be policy for disaster recovery 
anyways. But SVN can also serve as backup too. You can never have too 
many, right. :)

Regards,
Max

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
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


[Nagios-users] Windows system events

2011-01-06 Thread Ihab Samara

Hi All,

What are the best plugin to monitor specific system event on a windows machine?
I prefer to use a plugin that doesnt require any installations on the windows 
machine.
Thank you 

Date: Thu, 6 Jan 2011 20:14:20 +0100
From: david.ribe...@altitudeinfra.fr
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] NagVis Apache Help



You need to modify the file /etc:nagvis/nagvis.ini.php

Put this : 

; path options
[paths]
; absolute physical NagVis path
base=/usr/share/nagvis/
; absolute html NagVis path
htmlbase=/nagios3/nagvis
; absolute html NagVis cgi path
htmlcgi=/nagios3/cgi-bin













David Ribeiro

De: Andrew Fay andrew@ajl.co.uk
À: Nagios Users List nagios-users@lists.sourceforge.net
Envoyé: Jeudi 6 Janvier 2011 15:53:31
Objet: [Nagios-users] NagVis Apache Help












hi,

I have nagios3 and a copy of nagvis running on an ubuntu box.. when I click
on a host in Nagvis I get :

The requested URL /nagios/cgi-bin/status.cgi was not found on this server.

http://server/nagios/cgi-bin/status.cgi?host=localhost

it should be

http://server/nagios3/cgi-bin/status.cgi?host=localhost

Basically The CGI's work for standard Nagios but not for NagVis, so how can
I tell NagVis where to look for the CGI's?

 

This is the apache cfg for nagvis :

# NagVis Apache2 sample configuration file## 
#  
Alias /nagvis /etc/nagvis/share Directory /etc/nagvis/share  Options 
FollowSymLinks  AllowOverride None  Order allow,deny  Allow from all   # To 
enable Nagios basic auth on NagVis use the following options  # Just uncomment 
it. Maybe you need to adjust the path to the  # Auth user file.  #  # If you 
use the NagVis internal auth mechanism based on the web  # for you won't need 
this.  #  #AuthName NagVis Access  #AuthType Basic  #AuthUserFile 
/etc/nagios3/etc/htpasswd.users  #Require valid-user   # With installed and 
enabled mod_rewrite there are several redirections  # available to fix 
deprecated and/or wrong urls. None of those rules is  # mandatory to get NagVis 
working.  IfModule mod_rewrite.cRewriteEngine OnRewriteBase /nagvis   
  # Use mod_rewrite for old url redirection even if there are php files which   
 # redirect the queries itselfs. In some cases the mod_rewrite redirect# is 
better than the php redirect.RewriteCond %{REQUEST_URI} 
^/nagvis(/index\.php|/|)(\?.*|)$RewriteRule ^(index\.php|)(\?.*|)$ 
/nagvis/frontend/nagvis-js/$1$2 [R=301,L]RewriteCond %{REQUEST_URI} 
^/nagvis/config\.php.*$RewriteRule ^config\.php(.*) /nagvis/frontend/wui/$1 
[R=301,L] # Redirect old regular map linksRewriteCond %{REQUEST_URI} 
^/nagvis/frontend/nagvis-jsRewriteCond %{QUERY_STRING} map=(.*)
RewriteRule ^(.*)$ 
/nagvis/frontend/nagvis-js/index.php?mod=Mapact=viewshow=%1 [R=301,L] # 
Redirect old wui map linksRewriteCond %{REQUEST_URI} ^/nagvis/frontend/wui  
  RewriteCond %{QUERY_STRING} map=(.*)RewriteRule ^(.*)$ 
/nagvis/frontend/wui/index.php?mod=Mapact=editshow=%1 [R=301,L] # 
Redirect old rotation callsRewriteCond %{REQUEST_URI} 
^/nagvis/frontend/nagvis-jsRewriteCond %{QUERY_STRING} !modRewriteCond 
%{QUERY_STRING} rotation=(.*)RewriteRule ^(.*)$ 
/nagvis/frontend/nagvis-js/index.php?mod=Rotationact=viewshow=%1 [R=301,L]  
/IfModule/Directory

Nagios apache config :

# apache configuration for nagios 3.x# note to users of nagios 1.x and 2.x:#   
throughout this file are commented out sections which preserve#   backwards 
compatibility with bookmarks/config for older nagios versios.#   simply look 
for lines following nagios 1.x: and nagios 2.x comments. ScriptAlias 
/cgi-bin/nagios3 /usr/lib/cgi-bin/nagios3ScriptAlias /nagios3/cgi-bin 
/usr/lib/cgi-bin/nagios3# nagios 1.x:#ScriptAlias /cgi-bin/nagios 
/usr/lib/cgi-bin/nagios3#ScriptAlias /nagios/cgi-bin /usr/lib/cgi-bin/nagios3# 
nagios 2.x: #ScriptAlias /cgi-bin/nagios2 /usr/lib/cgi-bin/nagios3#ScriptAlias 
/nagios2/cgi-bin /usr/lib/cgi-bin/nagios3 # Where the stylesheets (config 
files) resideAlias /nagios3/stylesheets /etc/nagios3/stylesheets# nagios 
1.x:#Alias /nagios/stylesheets /etc/nagios3/stylesheets# nagios 2.x:#Alias 
/nagios2/stylesheets /etc/nagios3/stylesheets # Where the HTML pages liveAlias 
/nagios3 /usr/share/nagios3/htdocs# nagios 2.x: #Alias /nagios2 
/usr/share/nagios3/htdocs# nagios 1.x:#Alias /nagios /usr/share/nagios3/htdocs 
DirectoryMatch 
(/usr/share/nagios3/htdocs|/usr/lib/cgi-bin/nagios3|/etc/nagios3/stylesheets)  
  Options FollowSymLinks DirectoryIndex index.php AllowOverride 
AuthConfigOrder Allow,DenyAllow From All AuthName Nagios Access   
 AuthType BasicAuthUserFile /etc/nagios3/htpasswd.users# nagios 1.x:
#AuthUserFile /etc/nagios/htpasswd.usersrequire valid-user/DirectoryMatch 
# Enable this ScriptAlias if you want to enable the grouplist patch.# See 
http://apan.sourceforge.net/download.html for more info# 

Re: [Nagios-users] Nagiosgraper

2011-01-06 Thread Clyde Jones

Rikard Dahlberg mailto:ej_...@hotmail.com wrote:
 Right, pnp4nagioS  seems slicker.
 
 However, after i've installed it, i got this error , did you
 get that also? If so, how did you work around it? : 
 
 
 PNP Error
 
 Please check the Kohana documentation for information about
 the following error.
 application/models/data.php [104]:
 perfdata directory /usr/local/pnp4nagios/var/perfdata/ is
 empty. Please check your Nagios config. Read FAQ online
 http://docs.pnp4nagios.org/faq/3 
 
 
 /Rik
 
 
Hi
Check to make sure process_perfdata.pl is finding your perfomance data. 
 I was getting that error until I manually ran process_perfdata.pl with
log level set to 2 (from etc/pnp/process_perfdata.cfg).  I saw that
process_perfdata.cfg was not looking in the right places for the process
data (I have nagios installed to /opt/nagios instead of
/usr/local/nagios). I symlinked /opt/nagios/var to /usr/local/nagios/var
(until I can figure out what is going on), and my data appeared.

Pnp4nagios is a *LOT* better than nagiosgrapher

-- 
Clyde Jones
RD Informatics
Senior Applications Engineer
cjo...@exelixis.com
Exelixis Inc
650 837 7085 Office
650 228 4699 Cell

This email (including any attachments) may contain material
that is confidential and privileged and is for the sole use of
the intended recipient. Any review, reliance or distribution by
others or forwarding without express permission is strictly
prohibited. If you are not the intended recipient, please
contact the sender and delete all copies.
Exelixis, Inc. reserves the right, to the extent and under
circumstances permitted by applicable law, to retain, monitor
and intercept e-mail messages to and from its systems.


--
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
___
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] Windows system events

2011-01-06 Thread Yueh-Hung Liu
you write your own, that should best suit for you and won't need any
installation.


On Fri, Jan 7, 2011 at 8:02 AM, Ihab Samara iha...@hotmail.com wrote:
 Hi All,

 What are the best plugin to monitor specific system event on a windows
 machine?
 I prefer to use a plugin that doesnt require any installations on the
 windows machine.
 Thank you

 
 Date: Thu, 6 Jan 2011 20:14:20 +0100
 From: david.ribe...@altitudeinfra.fr
 To: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] NagVis Apache Help

 You need to modify the file /etc:nagvis/nagvis.ini.php

 Put this :

 ; path options
 [paths]
 ; absolute physical NagVis path
 base=/usr/share/nagvis/
 ; absolute html NagVis path
 htmlbase=/nagios3/nagvis
 ; absolute html NagVis cgi path
 htmlcgi=/nagios3/cgi-bin

 David Ribeiro

 
 De: Andrew Fay andrew@ajl.co.uk
 À: Nagios Users List nagios-users@lists.sourceforge.net
 Envoyé: Jeudi 6 Janvier 2011 15:53:31
 Objet: [Nagios-users] NagVis Apache Help

 hi,
 I have nagios3 and a copy of nagvis running on an ubuntu box.. when I click
 on a host in Nagvis I get :
 The requested URL /nagios/cgi-bin/status.cgi was not found on this server.
 http://server/nagios/cgi-bin/status.cgi?host=localhost
 it should be
 http://server/nagios3/cgi-bin/status.cgi?host=localhost
 Basically The CGI's work for standard Nagios but not for NagVis, so how can
 I tell NagVis where to look for the CGI's?

 This is the apache cfg for nagvis :

 # NagVis Apache2 sample configuration file

 #

 #
 #





 Alias /nagvis /etc/nagvis/share



 Directory /etc/nagvis/share

   Options FollowSymLinks

   AllowOverride None

   Order allow,deny

   Allow from all



   # To enable Nagios basic auth on NagVis use the following options

   # Just uncomment it. Maybe you need to adjust the path to the

   # Auth user file.

   #

   # If you use the NagVis internal auth mechanism based on the web

   # for you won't need this.

   #

   #AuthName NagVis Access

   #AuthType Basic

   #AuthUserFile /etc/nagios3/etc/htpasswd.users

   #Require valid-user



   # With installed and enabled mod_rewrite there are several redirections

   # available to fix deprecated and/or wrong urls. None of those rules is

   # mandatory to get NagVis working.

   IfModule mod_rewrite.c

     RewriteEngine On

     RewriteBase /nagvis



     # Use mod_rewrite for old url redirection even if there are php files
 which

     # redirect the queries itselfs. In some cases the mod_rewrite redirect

     # is better than the php redirect.

     RewriteCond %{REQUEST_URI} ^/nagvis(/index\.php|/|)(\?.*|)$

     RewriteRule ^(index\.php|)(\?.*|)$ /nagvis/frontend/nagvis-js/$1$2
 [R=301,L]

     RewriteCond %{REQUEST_URI} ^/nagvis/config\.php.*$

     RewriteRule ^config\.php(.*) /nagvis/frontend/wui/$1 [R=301,L]



     # Redirect old regular map links

     RewriteCond %{REQUEST_URI} ^/nagvis/frontend/nagvis-js

     RewriteCond %{QUERY_STRING} map=(.*)

     RewriteRule ^(.*)$
 /nagvis/frontend/nagvis-js/index.php?mod=Mapact=viewshow=%1 [R=301,L]



     # Redirect old wui map links

     RewriteCond %{REQUEST_URI} ^/nagvis/frontend/wui

     RewriteCond %{QUERY_STRING} map=(.*)

     RewriteRule ^(.*)$
 /nagvis/frontend/wui/index.php?mod=Mapact=editshow=%1 [R=301,L]



     # Redirect old rotation calls

     RewriteCond %{REQUEST_URI} ^/nagvis/frontend/nagvis-js

     RewriteCond %{QUERY_STRING} !mod

     RewriteCond %{QUERY_STRING} rotation=(.*)

     RewriteRule ^(.*)$
 /nagvis/frontend/nagvis-js/index.php?mod=Rotationact=viewshow=%1 [R=301,L]

   /IfModule

 /Directory

 Nagios apache config :

 # apache configuration for nagios 3.x

 # note to users of nagios 1.x and 2.x:

 #   throughout this file are commented out sections which preserve

 #   backwards compatibility with bookmarks/config for older nagios versios.

 #   simply look for lines following nagios 1.x: and nagios 2.x comments.



 ScriptAlias /cgi-bin/nagios3 /usr/lib/cgi-bin/nagios3

 ScriptAlias /nagios3/cgi-bin /usr/lib/cgi-bin/nagios3

 # nagios 1.x:

 #ScriptAlias /cgi-bin/nagios /usr/lib/cgi-bin/nagios3

 #ScriptAlias /nagios/cgi-bin /usr/lib/cgi-bin/nagios3

 # nagios 2.x:

 #ScriptAlias /cgi-bin/nagios2 /usr/lib/cgi-bin/nagios3

 #ScriptAlias /nagios2/cgi-bin /usr/lib/cgi-bin/nagios3



 # Where the stylesheets (config files) reside

 Alias /nagios3/stylesheets /etc/nagios3/stylesheets

 # nagios 1.x:

 #Alias /nagios/stylesheets /etc/nagios3/stylesheets

 # nagios 2.x:

 #Alias /nagios2/stylesheets /etc/nagios3/stylesheets



 # Where the HTML pages live

 Alias /nagios3 /usr/share/nagios3/htdocs

 # nagios 2.x:

 #Alias /nagios2 /usr/share/nagios3/htdocs

 # nagios 1.x:

 #Alias /nagios /usr/share/nagios3/htdocs



 DirectoryMatch
 (/usr/share/nagios3/htdocs|/usr/lib/cgi-bin/nagios3|/etc/nagios3/stylesheets)

     Options FollowSymLinks



  

[Nagios-users] Plugins

2011-01-06 Thread Glenn Bilocca
Hi all Nagios users,

I've installed and configured the basic Nagios on a linux server and I'm
quite pleased by the monitoring functions it has. As you can see I'm quite a
newbie for such program but can you tell me if there any plugins or other
functions which I can add to safeguard and monitor more my networking
system?

 

Thanks and Regards

Glenn

 

--
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl ___
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