Re: [Nagios-users] Host checks not performed

2006-12-14 Thread Toto Capuccino

2006/12/14, Andreas Ericsson <[EMAIL PROTECTED]>:


Toto Capuccino wrote:
> Hi List fellows,
>
> I am trying to configure nagios 2.6 with the help of fruity. I have
created
> a few hosts which use the check-host-alive command provided in the
sample
> files. The check host alive command is part of my default host template
> which i use on all the hosts.
> Strangely only one host is appearing UP and all other remain in Pending
> State after 40 minutes.
>

Nagios only checks hosts after a service on them have returned non-OK.
If a service on the host returns OK without a hostcheck having been run,
the status of the host is set to UP and the host-check output is set to
"Services working, so host assumed to be up" (or something like that).

In short, if you have no services defined for your hosts, they will
never be checked (normally) and therefore never appear as UP or DOWN.

--
Andreas Ericsson   [EMAIL PROTECTED]
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231



For sure i havent read the doc as deep as you did, i thought
check-host-alive were performed anyways every once in a while. Thanks for
sharing that knowledge, it is a help.
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
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] Host checks not performed

2006-12-14 Thread Toto Capuccino

Hi List fellows,

I am trying to configure nagios 2.6 with the help of fruity. I have created
a few hosts which use the check-host-alive command provided in the sample
files. The check host alive command is part of my default host template
which i use on all the hosts.
Strangely only one host is appearing UP and all other remain in Pending
State after 40 minutes.




   nlamssv03
[image: View Service Details For This
Host]
PENDING N/A 0d 0h 41m 43s+ Host has not been checked yet

I think i have already seen that problem on the list so i thought you guys
could help me out.
Here is my nagios.cfg

cfg_file=/usr/local/nagios/etc/host_templates.cfg
cfg_file=/usr/local/nagios/etc/hosts.cfg
cfg_file=/usr/local/nagios/etc/commands.cfg
cfg_file=/usr/local/nagios/etc/timeperiods.cfg
cfg_file=/usr/local/nagios/etc/contactgroups.cfg
cfg_file=/usr/local/nagios/etc/contacts.cfg
cfg_file=/usr/local/nagios/etc/hostgroups.cfg
cfg_file=/usr/local/nagios/etc/service_templates.cfg
cfg_file=/usr/local/nagios/etc/services.cfg
cfg_file=/usr/local/nagios/etc/servicegroups.cfg
resource_file=/usr/local/nagios/etc/resources.cfg
cfg_file=/usr/local/nagios/etc/hostextinfo.cfg
cfg_file=/usr/local/nagios/etc/serviceextinfo.cfg
cfg_file=/usr/local/nagios/etc/dependencies.cfg
cfg_file=/usr/local/nagios/etc/escalations.cfg
enable_notifications=0
execute_service_checks=1
accept_passive_service_checks=1
enable_event_handlers=1
log_rotation_method=d
command_check_interval=-1

use_syslog=0
log_notifications=0
log_service_retries=0
log_host_retries=0
log_event_handlers=0
log_initial_states=0
log_external_commands=0
log_passive_checks=0
soft_state_dependencies=0
process_performance_data=0
check_for_orphaned_services=0
date_format=euro
execute_host_checks=1
accept_passive_host_checks=1
use_regexp_matching=0
use_true_regexp_matching=0
daemon_dumps_core=0
service_perfdata_command=0
host_perfdata_file_mode=a
service_perfdata_file_mode=a
host_perfdata_file_processing_interval=0
service_perfdata_file_processing_interval=0

Sincerely yours,
Toto
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
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] External commands not working anymore

2006-12-13 Thread Toto Capuccino

2006/12/13, Andreas Ericsson <[EMAIL PROTECTED]>:


Toto Capuccino wrote:
> Hi List members,
>
> I have reinstalled a backup version of Nagios 1.3 on my debian server.
> I went trough the documentation again to give proper rights to /var/rw
> directory and the proper membership. From the web console now when i try
to
> send external commands, i get
> Your command request was successfully submitted to Nagios for
processing.
>
> Note: It may take a while before the command is actually processed.
>
> But nothing comes up really, if i try to send a passive check it is
never
> performed, if i try to stop a service check, it doesn't stop
> Any ideas about what i should check?


The nagios log-file will tell you if Nagios reads the command. If it
doesn't, you should check your paths so that the nagios daemon reads
from the same place as the nagios cgi's write to. If it does, you've
encountered a hitherto undiscovered bug.

From the log i get

[1166014693] EXTERNAL COMMAND:
ENABLE_PASSIVE_SVC_CHECKS;remcorpsv02;Exchange MTA Stacks
but still it stays in the previous state, without passive check enabled. I
have restarted nagios, delete the nagios.cmd file without any luck.
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
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] External commands not working anymore

2006-12-13 Thread Toto Capuccino

Hi List members,

I have reinstalled a backup version of Nagios 1.3 on my debian server.
I went trough the documentation again to give proper rights to /var/rw
directory and the proper membership. From the web console now when i try to
send external commands, i get
Your command request was successfully submitted to Nagios for processing.

Note: It may take a while before the command is actually processed.

But nothing comes up really, if i try to send a passive check it is never
performed, if i try to stop a service check, it doesn't stop
Any ideas about what i should check?
Thanks.
--
Le bon sens est la chose du monde la mieux partagée.
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
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] Blackberry server monitoring

2006-11-14 Thread Toto Capuccino
Hi Guys,I have just installed the blackberry mibs in my nagios server, i was wondering if you would already know wich OIDs are relevant to monitor.Thanks.-- Le bon sens est la chose du monde la mieux partagée.
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
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 file size

2006-04-28 Thread Toto Capuccino
That was it Shawn : Try the old 8 char path names.
ie.d:\Progra~1\Exchsrvr\MDBDATA\priv1.stmNow it works in command line but in nagios web interface i  get no ouptut from NRPE ( CHECK_NRPE: No output returned from daemon) .checkcommands.cfg
 contains : define command {
    command_name check_exchangeDB
    command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5667 - c check_exchangeDB
  }and the NSC.ini file contains :check_exchangeDB=inject CheckFileSize MaxWarn=15G MaxCrit=16GFile=d:\Progra~1\Exchsrvr\MDBDATA\priv1.stm File=d:\Progra~1\Exchsrvr\MDBDATA\priv1.edb
Running in the command line it's ok :/usr/local/nagios/libexec/check_nrpe -H catorsv03 -p 5667 -c check_exchangeDBOK all file sizes are within bounds.|'d:\Progra~1\Exchsrvr\MDBDATA\priv1.stm'=4452261888;16106127360;17179869184; 'd:\Progra~1\Exchsrvr\MDBDATA\priv1.edb'=9100599296;16106127360;17179869184;
I dont have logs that could help me :( Nagios.log doesnt contain anything about command exchange_DB



[Nagios-users] Re: nsclient++ configuration, i am lost

2006-04-22 Thread Toto Capuccino
Hi Shawn,On the first hand i get errors related to ncsclient itself :The error on the monitored host is :Event Source:    NRPE_NTDescription:NRPE_NT:  Error: Request contained illegal metachars!
The error on NSC.log is 2006-04-22 12:35:59: error:../../include\Socket.h:443: bind failed: 10048When i look to netstat i get (i kept the most relevant lines):  TCP    0.0.0.0:5666
   0.0.0.0:0  LISTENING   6896 [NRPE_NT.exe]  TCP    0.0.0.0:12489  0.0.0.0:0  LISTENING   14168
  [NSClient++.exe]  TCP    0.0.0.0:1248   0.0.0.0:0  LISTENING   1052  [pNSClient.exe]So i have NRPE_NT and nsclient (not ++) installed, is there's a conflict with nsclient++ ?
On the second hand i get errors related to the check_command:The error on the monitored host is :
Event Source:    NRPE_NT
Description:
NRPE_NT:  Error: Request contained illegal metachars!When i try nsclient++ /test, the first error i notice is that it doesnt handle the space in the path of the files ( Program Files) --> File=d:\ProgramFiles\Exchsrvr\MDBDATA\priv1
.stm File=d:\ProgramFiles\Exchsrvr\MDBDATA\priv1.edbI tried both 'Program Files' and "Program Files" but it doesnt work.
From the command line on the nagios server i try like this : ../libexec/check_nrpe -H catorsv03 -c check_exchangeDB -a MaxWarn=15G MaxCrit=16G File=d:\'Program Files'\Exchsrvr\MDBDATA\priv1.stm File=d:\'Program Files'\Exchsrvr\MDBDATA\priv1.edb'
CHECK_NRPE: Received 0 bytes from daemon.  Check the remote server logs for error messages.Here is the NSC.ini file :[modules];# NSCLIENT++ MODULES;# A list with DLLs to load at startup.;  You will need to enable some of these for NSClient++ to work.
; ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !; *   *; * N O T I C E ! ! ! - Y O U   H A V E   T O   E D I T   T H I S *; *   *
; ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !FileLogger.dll;CheckSystem.dllCheckDisk.dllNSClientListener.dllNRPEListener.dll;SysTray.dll;CheckEventLog.dll;CheckHelpers.dll
;; CheckWMI IS AN EXTREM EARLY IDEA SO DONT USE FOR PRODUCTION ENVIROMNEMTS!;CheckWMI.dll;; RemoteConfiguration IS AN EXTREM EARLY IDEA SO DONT USE FOR PRODUCTION ENVIROMNEMTS!;RemoteConfiguration.dll
[Settings];# OBFUSCATED PASSWORD;  This is the same as the password option but here you can store the password in an obfuscated manner.;  *NOTICE* obfuscation is *NOT* the same as encryption, someone with access to this file can still figure out the 
;  password. Its just a bit harder to do it at first glance.;obfuscated_password=Jw0KAUUdXlAAUwASDAAB;;# PASSWORD;  This is the password (-s) that is required to access NSClient remotely. If you leave this blank everyone will be able to access the daemon remotly.
;password=martin;;# ALLOWED HOST ADDRESSES;  This is a comma-delimited list of IP address of hosts that are allowed to talk to the all daemons.;  If leave this blank anyone can access the deamon remotly (NSClient still requires a valid password).
allowed_hosts=10.1.1.13;;# USE THIS FILE;  Use the INI file as opposed to the registry if this is 0 and the use_reg in the registry is set to 1 ;  the registry will be used instead.
use_file=1[log];# LOG DEBUG;  Set to 1 if you want debug message printed in the log file (debug messages are always printed to stdout when run with -test)debug=1;;# LOG FILE;  The file to print log statements to
file=c:\nsclient-plus-plus\NSC.log;;# LOG DATE MASK;  The format to for the date/time part of the log entry written to file.;date_mask=%Y-%m-%d %H:%M:%S[NSClient];# ALLOWED HOST ADDRESSES
;  This is a comma-delimited list of IP address of hosts that are allowed to talk to NSClient deamon.;  If you leave this blank the global version will be used instead.allowed_hosts=
10.1.1.13;;# NSCLIENT PORT NUMBER;  This is the port the NSClientListener.dll will listen to.port=12489;;# BIND TO ADDRESS;  Allows you to bind server to a specific local address. This has to be a dotted ip adress not a hostname.
;  Leaving this blank will bind to all avalible IP adresses.;bind_to_address=[Check System];# CPU BUFFER SIZE;  Can be anything ranging from 1s (for 1 second) to 10w for 10 weeks. Notice that a larger buffer will waste memory 
;  so don't use a larger buffer then you need (ie. the longest check you do +1).;CPUBufferSize=1h;;# CHECK RESOLUTION;  The resolution to check values (currently only CPU).;  The value is entered in 1/10:th of a second and the default is 10 (which means ones every second)
;CheckResolution=10[NRPE];# NRPE PORT NUMBER;  This is the port the NRPEListener.dll will listen to.port=5666;;# COMMAND TIMEOUT;  This specifies the maximum number of seconds that the NRPE daemon will allow plug-ins to finish executing before killing them off.
;command_timeout=60;;# COMMAND ARGUMENT PROCESSING;  This option determines whether or not the NRPE daemon w

Re: [Nagios-users] Upgrading from 1.3 to 2.2

2006-04-20 Thread Toto Capuccino
well it was not true i get replies and finally was able to import old nagios-1.3 files imported into fruity2006/4/19, Gapy <[EMAIL PROTECTED]
>:Le mercredi 19 avril 2006 à 13:41 +0100, James Fidell a écrit :> Jim Perrin wrote:
> > On 4/19/06, ThomasC. <[EMAIL PROTECTED]> wrote:> >> >>Hi Guys,> >>> >>What is the most easy and enjoyable way to upgrade from nagios 
1.3 to> >>version 2.2 ?> >> >> > Enjoyable? Not overly sure about that one> > I stood up a second nagios system with notifications turned off and> > recreated everything. It gave me a chance to better template things.
> > The config file formats have been redone, so if you just move them> > over, you'll be bitten by a  bunch of little things.> >> > You might be able to import your configs into a tool like fruity, and
> > then export them as 2.x, but that might be more work than reward.>> I'm in the middle of doing just this at the moment and fully concur.> It's a reasonably large configuration I'm working with (a total of
> around 1500 checks over ~130 hosts), but I've found no useful short> cuts and had to slog through everything by hand.>> JamesIt is said in Fruity homepage, that it can take nagios-1.3
 conf files, iinstalled it but so far i can't get it import properly the oldnagios.cfg and cgi.cfg files, it displays no errors but import 0 host, 0service, 0...besides the mailing list there doesnt look so active.
-- Le bon sens est la chose du monde la mieux partagée.


Re: R: [Nagios-users] start a script automatically

2006-04-05 Thread Toto Capuccino
Just write sc4ripts in whenever languages you feel happy with and then use nrpe to execute them on the Win host.2006/4/5, Marco Borsani <[EMAIL PROTECTED]
>:Well, now it is working correclty!There was a network problem between the hosts.
I still have to know how to run a command with the Event Handler on aWindows 2003 server.Moreover, will I have any authentication problems?Any idea?Regards.Marco-}-Messaggio originale-
-}Da: [EMAIL PROTECTED]-}[mailto:[EMAIL PROTECTED]
] Per conto-}di Marco Borsani-}Inviato: mercoledì 5 aprile 2006 9.59-}A: 'Marc Powell'-}Cc: 'NAGIOS'-}Oggetto: R: [Nagios-users] start a script automatically-}-}-}-}Marc wrote:-}-}
-}-}Not without the rest of the error that you chopped off.-}-}What's the '' part? That's probably the most useful bit-}-}of information. You've been on the list long enough to know-}-}we need more information than that
-}-};)-}-}Complete message is:-}Warning: Attempting to execute the command-}"/usr/local/nagios/libexec/eventhandlers/restart-http-}$SERVICESTATE$ $STATETYPE$ $SERVICEATTEMPT$"-}-}I see restart-http script on the manual (in the "event
-}handlers" chapter) and copy it to test and understand how-}event handlers work.-}-}-}-}-}Can you run restart-http as the nagios user? Show us the-}-}command and service definition. Verify that you're using
-}full -}paths for commands used within restart-http. Detail-}what -}restart-http is doing specifically.-}-}-}-}# 'restart-http' command definition-}define command{-}command_namerestart-http
-}command_line-}/usr/local/nagios/libexec/eventhandlers/restart-http-}$SERVICESTATE$ $STATETYPE$ $SERVICEATTEMPT$-}}-}-}One problem could be "where" define restart-http command.
-}Yesterday I put it in the checkcommands.cfg file, today I am-}defined it in the misccommands.cfg.-}Another one is how to restart the httpd (in this case) like-}nagios user (the manual mentions this possibility, but no
-}ideas are given to solve it).-}Again, if I would run a command on a Windows 2003 server, how-}will I do ?-}-}Regards-}Marco-}-}-}-}---
-}This SF.Net email is sponsored by xPML, a groundbreaking-}scripting language that extends applications into web and-}mobile media. Attend the live webcast and join the prime-}developer group breaking into this new coding territory!
-}http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&-}dat=121642-}___
-}Nagios-users mailing list-}Nagios-[EMAIL PROTECTED]-}https://lists.sourceforge.net/lists/listinfo/nagios-users-}::: Please include Nagios version, plugin version (-v) and OS
-}when reporting any issue.-}::: Messages without supporting info will risk being sent to /dev/null-}---This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642___Nagios-users mailing listNagios-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-- Le bon sens est la chose du monde la mieux partagée.


Re: [Nagios-users] Event Handlers

2006-03-31 Thread Toto Capuccino
It really depends on what you are trying to resolve.I am using eventhandlers with nrpe when a windows' service is down so i can make it starts.That happens -not so often hopefully- with servers that are rebooting due to power failure : the Exchange Information Store service for instance is not always up automatically (strange but still...), so with a windows shell script i managed to get ride of users complains about not being able to get their emails.
You can write short scripts in perl, _vbscript_, shell bash, whatever. You have to know exactly how to react when problems arise and that the tricky part beyond handling Nagios configuration.I am newbie and would appreciate others feedback about how they use eventhandlers, cause that's nagios power to respond to problems...the so called 
proactive monitoring.2006/3/31, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
Hi James,I just came accross your message on the nagios mailing list, and i have
exactly the same request.I didn't see any answers on the list, so I was wondering if you have founda solution ?regards,Tom.---
Tom Van Overbeke - ABSI Service Delivery Coordinatoremail: [EMAIL PROTECTED]Tel: +32 2 333 40 00 - Fax: +32 2 332 34 69website: http://www.absi.be
---Dehnert James Sr <[EMAIL PROTECTED]>Sent by: 
[EMAIL PROTECTED]10/03/2006 23:29To: nagios-users@lists.sourceforge.netcc:Subject:[Nagios-users] Event Handlers
Most of all of the processes and such I monitor are not on the Nagiosserver.  I do want to be able to use event handlers to try andresolve things before I get paged though, so I am wondering if there
is a plug-in that can be used through NCSA or NRPE that will allow meto run an event handler script on a remote system.  Thanks, Zeke--mailto:[EMAIL PROTECTED]
   James "Zeke" DehnertPhone: 707 283 5042 Fax: 707 283 5001 -= Eschew Obfuscation =-"Life is racing, everything else is just waiting"Arrested Development  ==>>  
http://www.the-op.com---This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642___Nagios-users mailing list
Nagios-users@lists.sourceforge.nethttps://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-- Le bon sens est la chose du monde la mieux partagée.


Re: [Nagios-users] Plugin Directory

2006-03-14 Thread Toto Capuccino
The plugins are located in the libexec directory but they need to be defined to be used in nagios and it is done in the checkcommands.cfg file and also in the miscommands.cfg file. As you said those file are refernced in nagios.cfg
.So you should copy the source template checkcommands.cfg and miscommands.cfg file to nagios/etc/2006/3/14, Brunker, Jay <[EMAIL PROTECTED]
>:









Greetings:



YANNG ( Yet Another Nagios Newbie Question ).


OK, so my 'make install-commandmode' failed and I manually
created a '/usr/local/nagios/etc' filesystem. I copied from
source/sample-config to '/usr/local/nagios/etc'.


Downloaded and installed the plugins.


The thing is ... the plugins install message says to verify
that my nagios.cfg file ( hosts.cfg ) file is correct with regards
to my plugin directory.


OK, so ... I'm assuming that the 'nagios.cfg' file is referring
to the 'Plugins' section with: cfg_file=/usr/local/nagios/etc/checkcommands.cfg line.


I'm confused. I don't have a '/usr/local/nagios/etc/checkcommands.cfg file in my
'/usr/local/nagios/etc' directory. I do have the file in my 'source/template-object' directory
though.


Aren't the plugins in '/usr/local/nagios/libexec' ?


Some help/clarification would be most appreciated here.




Thanks,



JZB


Jay Brunker
Unix Systems Administrator
Texas Workforce Commission
101 E. 15th St.
512-475-2625    Desk Phone
512-849-4985    Pager





-- Le bon sens est la chose du monde la mieux partagée.


[Nagios-users] nrpe arguments

2006-03-09 Thread Toto Capuccino
Hi,I want to launch event hancler on a remote windows host. The active nagios checks are checking exchange IS, MTA and SA and i want services to be restarted if they stop.Event handlers are enabled.I see in eventlog [09-03-2006 10:43:28] SERVICE EVENT HANDLER: ussfrsv02;Exchange 
IS;CRITICAL;SOFT;3;restart_exchangeI put a service eventhandler in nagios 
services.cfg fileevent_handler   restart_exchangeand put a definition in miscommands.cfg fileEvent-Handlers#define command {    command_name restart_exchange


    command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c restart_exchange $SERVICESTATE$ $STATETYPE$ $SERVICEATTEMPT$    }I am wondering if the concept is ok. On the windows side the nrpe.cfg file got a definition for restart_exchange:
# Values: 0=do not allow arguments, 1=allow command argumentsdont_blame_nrpe=1command[restart_exchange]=C:\nrpe\bin\RestartExchangeServices.cmd $ARG1$ $ARG2$ $ARG3$
And my RestartExchangeServices.cmd file contains this and at least it works in command line@ECHO offIF %1 == 'HARD' GOTO :1 ELSE GOTO :999:1IF %2 == 'SOFT' GOTO :2 ELSE GOTO :999:2
IF %3 == '3' GOTO :3:3  net start MSExchangeISnet start MSExchangeMTAnet start MSExchangeSAECHO "Services Exchange IS, MTA ans SA have been started"REM EXIT exitCode 0GOTO :999
I commented the Exitcode because it dont see the need for eventhandler.Anyway it is not working at all :( I would greatly appreciate some thoughts, comments, help or solutions. -- Le bon sens est la chose du monde la mieux partagée.




[Nagios-users] notes_url

2006-03-08 Thread Toto Capuccino
Hi,I am using nagios 1.3 with 1.4 plugins version on debian sid server.I use a file hostextinfo.cfg to put some links on the nagios web interface that redirect to a particular URL It looks like this define hostextinfo{
                      hostname      server1                                                            notes_url       http://server1/index.html                             }
  It was working great but i have done the same for a new host and the link doesn't appear after a reload of nagios even after a restart.It should be working and i would appreciate your thoughts about what make this not to work properly.
Thanks in advance.-- Le bon sens est la chose du monde la mieux partagée.


[Nagios-users] event handlers

2006-03-07 Thread Toto Capuccino
Hi Nachos folks,I would like some of you please to give me advice on how and what could be be the better way to write a simple script to be run as an eventhandler inside nagios. I am currently checking that the Microsoft Exchange services Information Store, System Attendant are running and i would like to restart them once they stop.
I was thinking using nrep to run a simple script as a shell script or a perl script. Would that be smart or do you see some better ways ?-- Le bon sens est la chose du monde la mieux partagée.


Re: [Nagios-users] check disk_free on windows client

2006-03-04 Thread Toto Capuccino
Hi,You can use nrpe and plugins http://www.nagiosexchange.org/NRPE_Plugins.66.0.html check also  http://www.miwi-dv.com/nrpent/
 but there are other way to monitor windows hosts, as with nsclient http://www.nagiosexchange.org/Windows.49.0.html?&tx_netnagext_pi1[p_view]=65&tx_netnagext_pi1[page]=10%3A10
or WSC (you dont need to install anything then on Windows hosts) http://www.nagiosexchange.org/Windows.49.0.html?&tx_netnagext_pi1[p_view]=360&tx_netnagext_pi1[page]=10%3A10
2006/3/4, Mario Ohnewald <[EMAIL PROTECTED]>:
Hello List,whats the easiest way to check the disk free space on a windows box?All i can think of is via SNMP.Are there other possibilities? (except mounting the drive with smb andthen use the unix tool check_diskfree).
Thanks, Mario---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___Nagios-users mailing listNagios-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
-- Le bon sens est la chose du monde la mieux partagée.


Re: *****RE: [Nagios-users] host config - action_url - launch external program [wd-vc]

2006-03-02 Thread Toto Capuccino
For windows servers, you got the Terminal Services Web, you can have a url that links to http://yourserver/TSWeb and then open a remote desktop session through internet explorer.
2006/3/2, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
Hi Eli,
 I'm using a mixed environment with linux and windows workstations. And forefox on all.
That with the java ssh apps is a good idea. I will try it to see how it works. 
Thanks for your ideas!  Rainer
mit freundlichen Gruessen / with kind regardsRainer BrunoldTechnologie und Infrastruktur, Allianz Elementar Vers. AG
Hietzinger Kai 101-105, 1130 Vienna, AustriaDpt. IM/IV/TI, phn ++43/1/87807 ext. 60103   fax. ++43/1/87807/70103 od. 40246e-mail: 
[EMAIL PROTECTED]   web: http://www.allianz.at
-
[EMAIL PROTECTED] schrieb: -
An: <[EMAIL PROTECTED]>, <
nagios-users@lists.sourceforge.net>Von: "Eli Stair" <[EMAIL PROTECTED]>Gesendet von: 
[EMAIL PROTECTED]Datum: 02.03.2006 18:03Thema: *RE: [Nagios-users] host config - action_url - launch external program [wd-vc]
Well, if you're using IE* there are innumerable hacks you could exploit usefully in this scenario to do what you want :)  Other than that, there are some functional Java SSH clients that you can have the URL load in your browser, or alternately use some server-side scripting to generate whatever you want. 
You're looking along those lines? /eli -Original Message- From: 
[EMAIL PROTECTED] on behalf of [EMAIL PROTECTED] Sent: Thu 3/2/2006 4:34 AM 
To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] host config - action_url - launch external program [wd-vc] 
Hello nagios users ! I have a small question if anybody has configured a action_url for a host which launches a local program of the windows machine where you have your browser. I monitor several services of a host like http, https, ssh,cpu,  If one of them appears in the service problems I open the host details and have just to click on the "extra host action" link and a local program like putty with the hostname as the parameter is launched. So I would get automatically a ssh session to that server. 
Any advice would be great, thanks, Rainer  Dieses E-Mail und allfaellig daran angeschlossene Anhaenge enthalten Informationen, die vertraulich und 
ausschliesslich fuer den (die) bezeichneten Adressaten bestimmt sind. Wenn Sie nicht der genannte Adressat sind, darf dieses E-Mail samt allfaelliger Anhaenge von Ihnen weder anderen Personen zugaenglich gemacht, noch in anderer Weise 
verwertet werden. Wenn Sie nicht der beabsichtigte Empfaenger sind, bitten wir Sie, dieses E-Mail und saemtliche angeschlossenen Anhaenge zu loeschen.  
--- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! 
http://sel.as-us.falkag.net/sel?cmd=k&kid 0944&bid$1720&dat1642 ___ 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 



 
Dieses E-Mail und allfaellig daran angeschlossene Anhaenge 
enthalten Informationen, die vertraulich und 
ausschliesslich fuer den (die) bezeichneten Adressaten 
bestimmt sind. 
Wenn Sie nicht der genannte Adressat sind, darf dieses 
E-Mail samt allfaelliger Anhaenge von Ihnen weder anderen 
Personen zugaenglich gemacht, noch in anderer Weise 
verwertet werden.
Wenn Sie nicht der beabsichtigte Empfaenger sind, bitten
wir Sie, dieses E-Mail und saemtliche angeschlossenen
Anhaenge zu loeschen. 



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642

___
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
-- Le bon sens est la chose du monde la mieux partagée.


[Nagios-users] tac.cgi colors

2006-02-24 Thread Toto Capuccino
Hi,I'd like to have the tactical overview giving colors more meaningful as yellow for warning and orange for unknown. I have seen a tac.c file on Nagios Exchange but i failed to compile it. Is it compatible with nagios 
1.3 ?The compile time gives that :linuxserver:/usr/local/nagios/cgi# gcc -o tac.cgi2 tac.ctac.c:66: error: syntax error before '*' tokentac.c:66: warning: data definition has no type or storage classtac.c
:67: error: syntax error before '*' tokentac.c:67: warning: data definition has no type or storage classtac.c: In function 'main':tac.c:220: error: 'READ_ALL_STATUS_DATA' undeclared (first use in this function)
tac.c:220: error: (Each undeclared identifier is reported only oncetac.c:220: error: for each function it appears in.)tac.c: In function 'analyze_status_data':tac.c:393: error: 'servicestatus' undeclared (first use in this function)
tac.c:393: error: 'temp_servicestatus' undeclared (first use in this function)tac.c:395: error: 'hoststatus' undeclared (first use in this function)tac.c:395: error: 'temp_hoststatus' undeclared (first use in this function)
tac.c:437: error: 'SERVICE_OK' undeclared (first use in this function)tac.c:437: error: 'SERVICE_RECOVERY' undeclared (first use in this function)tac.c:445: error: 'SERVICE_WARNING' undeclared (first use in this function)
tac.c:447: error: 'HOST_DOWN' undeclared (first use in this function)tac.c:447: error: 'HOST_UNREACHABLE' undeclared (first use in this function)tac.c:468: error: 'SERVICE_UNKNOWN' undeclared (first use in this function)
tac.c:491: error: 'SERVICE_CRITICAL' undeclared (first use in this function)tac.c:514: error: 'SERVICE_PENDING' undeclared (first use in this function)tac.c:592: error: 'HOST_UP' undeclared (first use in this function)
tac.c:636: error: 'HOST_PENDING' undeclared (first use in this function)tac.c: In function 'find_hosts_causing_outages':tac.c:685: error: 'hoststatus' undeclared (first use in this function)tac.c:685: error: 'temp_hoststatus' undeclared (first use in this function)
tac.c:697: error: 'HOST_UP' undeclared (first use in this function)tac.c:697: error: 'HOST_PENDING' undeclared (first use in this function)tac.c: In function 'is_route_to_host_blocked':tac.c:800: error: 'hoststatus' undeclared (first use in this function)
tac.c:800: error: 'temp_hoststatus' undeclared (first use in this function)tac.c:816: error: 'HOST_UP' undeclared (first use in this function)tac.c:816: error: 'HOST_PENDING' undeclared (first use in this function)
tac.c: In function 'display_tac_overview':tac.c:1046: error: 'HOST_DOWN' undeclared (first use in this function)tac.c:1047: error: 'HOST_UNREACHABLE' undeclared (first use in this function)tac.c:1048: error: 'HOST_UP' undeclared (first use in this function)
tac.c:1049: error: 'HOST_PENDING' undeclared (first use in this function)tac.c:1186: error: 'SERVICE_CRITICAL' undeclared (first use in this function)tac.c:1187: error: 'SERVICE_WARNING' undeclared (first use in this function)
tac.c:1188: error: 'SERVICE_UNKNOWN' undeclared (first use in this function)tac.c:1189: error: 'SERVICE_OK' undeclared (first use in this function)tac.c:1190: error: 'SERVICE_PENDING' undeclared (first use in this function)
tac.c:1311: error: 'SERVICE_RECOVERY' undeclared (first use in this function)Thanks for support.-- Le bon sens est la chose du monde la mieux partagée.


Re: [Nagios-users] nrpe + solaris problems

2006-02-23 Thread Toto Capuccino
my 2 cents: check that the IP of the host in hosts.cfg is the good one.2006/2/23, Tom Healy <[EMAIL PROTECTED]>:
I can't seem to get nrpe to work correctly, the web interface reportsconnection refused, but if I run it via the command line it getsresults.  Example below:On remote solaris 9 box:# ./nrpe -n -c nrpe.cfg
  -d# ps -ef|grep nrp   nagios  1125 1  0 11:51:51 ?0:00 ./nrpe -n -c nrpe.cfg -d# ./check_nrpe -n -H 127.0.0.1 -c check_usersUSERS OK - 26 users currently logged in |users=26;75;100;0
On nagios server (solaris 9) as user nagios:---# ./check_nrpe -n -H xxx.foobar.com -c check_usersUSERS OK - 26 users currently logged in |users=26;75;100;0
On same nagios server, but the web interface:-check_users.process CRITICAL02-23-2006 11:52:31  0d 0h 59m1s   3/3 Connection refused by host
Config entry for this host:---define service{ host_name   xxx.foobar.com service_description check_users.process
 check_command   check_nrpe!check_users max_check_attempts3 normal_check_interval 5 retry_check_interval  1 check_period  24x7 notification_interval 5
 notification_period   24x7 notification_options  c,r contact_groupshealy}Check commands entry for the server:-# Check NRPE Daemon
define command{ command_namecheck_nrpe command_line/usr/local/nagios/libexec/check_nrpe -H$HOSTADDRESS$ -c $ARG1$ }nrpe 2.4 compiled from source, both boxes solaris 9.  Running nagios
Nagios 2.0b4 (upgrading soon).  Is this a bug in the 2.0b4 branch oram I just being dense & missing something obvious?-Tom---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642___
Nagios-users mailing listNagios-users@lists.sourceforge.nethttps://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-- 
Le bon sens est la chose du monde la mieux partagée.


Re: [Nagios-users] nagios not notifying by email

2006-02-23 Thread Toto Capuccino
Hi,Did you check the timeperiods.cfg file as you are using workhours notification for services, you wont receive notification out of this period.2006/2/23, Dave Stern <
[EMAIL PROTECTED]>:Continuing with the problem of nagios not sending email notifications,
miscommands.cfg uses the default commands for host/service-notify-by-emailand the paths to mail are correct. I tested the command, and it works.I replaced it with echo ... params>>/tmp/somefile but this is not being
activated so it must be one of the config params:contacts.cfg:# 'others' contact definitiondefine contact{ contact_nameothers alias   Undefined hosts
 service_notification_period workhours host_notification_periodworkhours service_notification_optionsw,u,c host_notification_options   d,u service_notification_commands   notify-by-email
 host_notification_commands  host-notify-by-email email   [EMAIL PROTECTED] }..hosts.cfg
:# Generic host definition template define host{ namegeneric-host notifications_enabled   1 event_handler_enabled   1 flap_detection_enabled  1 process_perf_data   1
 retain_status_information   1 retain_nonstatus_information1 register0 }# 'host1' host definitiondefine host{ use generic-host
 host_name   host1 alias   host1 address  10.8.122.129 check_command   check-host-alive
 max_check_attempts  10 notification_interval   1 notification_period 24x7 notification_period 24x7 notification_optionsd,u
 }...nagios.cfg includeslog_notifications=1notification_timeout=30enable_notifications=1services.cfg:# Generic service definition templatedefine service{
 namegeneric-service active_checks_enabled   1 passive_checks_enabled  1 parallelize_check   1 obsess_over_service 1 check_freshness 1
 notifications_enabled   1 event_handler_enabled   1 flap_detection_enabled  1 process_perf_data   1 retain_status_information   1 retain_nonstatus_information1
 register0 }# Service definitiondefine service{   use generic-service   host_name   host1   service_description AVAILABLE
   is_volatile 0   check_period24x7   max_check_attempts  3   normal_check_interval   10   retry_check_interval1   contact_groups   others
   notification_interval   11   notification_period 24x7   notification_optionsw,u,c  check_command   check-host-alive   }Can anyone see where notification by email may have been turned off
or have any other ideas on diagnosing?TIA  =-=-=-=-=-=-=-=-=-=-  generated by /dev/dave -=-=-=-=-=-=-=-=-=-=-=-=  David SternUniversity of MarylandInstitute for Advanced Computer Studies
---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___Nagios-users mailing listNagios-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
-- Le bon sens est la chose du monde la mieux partagée.


Re: [Nagios-users] Graph links on Nagios 2.0 web interface

2006-02-22 Thread Toto Capuccino
HiDid you put the location of your serviceextinfo.cfg file inside nagios.cfg ?The proper place is in cgi.cfg and the definition is:xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfgxedtemplate_config_file=/usr/local/nagios/etc/
serviceextinfo.cfg2006/2/22, Efe Ohimor <[EMAIL PROTECTED]>:













Message: 12

Date: Thu, 16 Feb 2006
20:20:51 +0100 (CET)

From: Hugo van der Kooij
<[EMAIL PROTECTED]>

Reply-To: Nagios Users
Mailinglist 

To: Nagios Users Mailinglist


Subject: Re: [Nagios-users]
Graph links on Nagios 2.0 web interface

 

On Thu, 16 Feb 2006, Efe
Ohimor wrote:

 

> I am currently running
Nagios version 2.0 with the plugin version 1.4. I try

> to create a link on my
nagios web interface. I have tried it before on

> version 1.2 and the
links were created but I guess version 2.0 has a

> different code. Or has
anyone done it on version 2.0 before.

> Because I have been to
the Apan site and most people there have used it for

> version 1.2 and someone
too complained about not being able to use it with

> version 2.0.

 

What is wrong with using
extended host/service info?

 

Like:

define hostextinfo{

   
host_name   aragorn

   
notes_url   /nagios/cgi-bin/rrd-graph.cgi?host=aragorn&service=all

   
icon_image  base/redhat.png

   
icon_image_alt  Fedora Core 4

   
vrml_image  base/redhat.png

   
statusmap_image base/redhat.gd2

   
}

 

Or:

define serviceextinfo{

    host_name  
aragorn

   
icon_image 
dot.gif' border="0">

   
service_description HTTP

   
notes_url  
/nagios/cgi-bin/graphs.cgi?host=aragorn&service=HTTP

}

 

Hugo.

 

Hello,

 

Thanks for your reply.

 

Here is my serviceextinfo.cfg
configuration

 

define serviceextinfo {

host_name  
excellence, Aremu, NS1, NS2, NS3,    service_description
Ping Latency

    notes_url  /nagiosgraph/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$


   
icon_image 
/usr/local/nagios/share/logos/graph.gif

   
icon_image_alt 
View graphs

}

 

In my httpd.conf the following lines were added

 

#

 

ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"



    AllowOverride AuthConfig

    Options ExecCGI

    Order allow,deny

    Allow from all



 

ScriptAlias /nagiosgraph /usr/local/nagios/nagiosgraph/

#

#    AllowOverride None

#    Options None

#    Order allow,deny

#    Allow from all

#

 

 

 

Alias /nagios "/usr/local/nagios/share"



    Options None

    AllowOverride AuthConfig

    Order allow,deny

    Allow from all



 

I use nagios graph for my
graphing.After the config I restart nagios and restarted my webserver but I
still cannot see the icon.

I still do not know what I
am doing wrong.

 

 







-- Le bon sens est la chose du monde la mieux partagée.


Re: [Nagios-users] Nagios web interface,frontend or GUI tools list

2006-02-21 Thread Toto Capuccino
you can find some here:http://www.nagiosexchange.org/Frontends.37.0.htmlhttp://www.nagiosexchange.org/Configuration.40.0.html
2006/2/21, Radhika <[EMAIL PROTECTED]>:
Hi Guys,     Here is the list of nagios GUI tools for allusers and admins wants to manage .     
http://www.debianhelp.co.uk/nagiosweb.htm     If any one knows any other tools they can post here so that it would help more users.     thanks
		 
Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.
-- Le bon sens est la chose du monde la mieux partagée.


Re: [Nagios-users] statusmap questions

2006-02-21 Thread Toto Capuccino
On the stausmap page you got a scrolling list called Layout method, it looks like the one you want is circular. If you want icons to be displayed you need to create a hostextinfo.cfg file you'll find in nagios doc how the cookie crumbles. Check also nagiosexchange to find nice icons, there's some reprsenting racks with flags for OS.
2006/2/21, Mike Linden <[EMAIL PROTECTED]>:
I am monitoring a large number (650) of linux systems in a cluster environment.  I would liketo have the statusmap display these systems as they are physically setup in their racks.I have currently got the statusmap working but I have 2 issues with the display
First, I get a green circle with cross hairs for each host which I would like to not see.  I only need the words up/down to display.Second, I would like to actually have pictures of the racks with system icons.  Has anyone seen
this type of map?ThanksMike-- 

-- Le bon sens est la chose du monde la mieux partagée.


[Nagios-users] mayday

2006-02-20 Thread Toto Capuccino
Hi,Does anyone tried the mayday addon for nagios. i have jsut tried to use it and it ruins my server. I think that it comes from the pm files in /usr/share/perl5.One is called Config.pm
 and must have overwritten an original name with the same name.Trying to run a dist-upgrade from my debian box iget :Global symbol "%Config" requires explicit package name at /usr/share/perl/5.8/File/Copy.pm line 83.
-- Le bon sens est la chose du monde la mieux partagée.


Re: [Nagios-users] Status Map icons issue

2006-02-16 Thread Toto Capuccino
It can be a permission issue, persosnnaly i use mostly .png icons or .gdBut i think you cant use .jpg nor .gif for statusmap2006/2/16, Network Administrator <
[EMAIL PROTECTED]>:After creating a hostextinfo.cfg file when I hover over hosts on the
status map, the manufacturer icons correctly display in the popup,however, I still see question mark icons on the status map for each host.If anyone knows why this is so and how to correct it I would be much
obliged.---This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___Nagios-users mailing listNagios-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
-- Le bon sens est la chose du monde la mieux partagée.


Re: [Nagios-users] check_snmp quoting issue

2006-02-16 Thread Toto Capuccino
did you try /check_snmp -t 3 -P 3 -H 192.168.16.11
 -w
1 -c 5 -L authPriv -U  -a MD5 -A  -X  -o
nsExtendResult.'"extt2"'  
2006/2/16, Kyle Tucker <[EMAIL PROTECTED]>:
Hi,I'm trying to use the new extend directivein Net-SNMP and the symbolic OIDs literally containa quote. I can't get check_snmp to be satisfied withthe quotes I need to pass. I need to be able to pass
nsExtendResult."extt2" to snmpd. Any suggestions?Thanks./usr/local/nagios/libexec/check_snmp -t 3 -P 3 -H 192.168.16.11 -w 1 -c 5 -L authPriv -U  -a MD5 -A  -X  -o nsExtendResult."extt2"
Could not open pipe: /usr/local/bin/snmpget -t 3 -r 5 -m ALL -v 3 -l authPriv -a MD5 -u  -A  -x DES -X   192.168.16.11:161  nsExtendResult."extt2"
/usr/local/nagios/libexec/check_snmp -t 3 -P 3 -H 192.168.16.11 -w 1 -c 5 -L authPriv -U  -a MD5 -A  -X  -o nsExtendResult.\"extt2\"Could not open pipe: /usr/local/bin/snmpget -t 3 -r 5 -m ALL -v 3 -l authPriv -a MD5 -u  -A  -x DES -X   
192.168.16.11:161  nsExtendResult.\"extt2\"--- Kyle-[EMAIL PROTECTED]
   http://www.panix.com/~kyletThis SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makessearching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642___Nagios-users mailing list
Nagios-users@lists.sourceforge.nethttps://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-- Le bon sens est la chose du monde la mieux partagée.


Re: [Nagios-users] install of nagios

2006-02-16 Thread Toto Capuccino
Which nagios package version are you trying to install ?Did you try to give configure options to see the difference ?
./configure --prefix=prefix --with-cgiurl=cgiurl --with-htmurl=htmurl --with-nagios-user=someuser --with-nagios-grp=somegroup2006/2/16, john matijevic <
[EMAIL PROTECTED]>:Hello Team,

Thanks again for all of your assistance, as it's been a while and I am not as experienced in Linux. Again the issue is after I go to run the configure command and the make all, make install and make install-config, according to the documentation I should see 5 different subdirectories, the directories I see are bin, sbin, share, and var and var/archives. The directories I am missing is VAR/RW and ETC. Thanks again for all of your help. When I did the installation I was logged in with root.

 
Sincerely,
John 
On 2/15/06, Marc Powell <[EMAIL PROTECTED]> wrote:

> -Original Message-> From: 

[EMAIL PROTECTED] [mailto:nagios-users-> 
[EMAIL PROTECTED]] On Behalf Of john matijevic> Sent: Wednesday, February 15, 2006 7:17 AM
> To: nagios-users@lists.sourceforge.net> Subject: [Nagios-users] install of nagios
>> Hello Team,> I am having trouble with installation of Nagios, I get to the point in
the> beginning after the install it is supposed to install 5 directories, Iam> only seeing 4 directories, I am installing as Root so its not apermission> issue. Please advise.Examine the install targets that are displayed after compile finishes
and use the one you're lacking. A totally arbitrary guess would be 'makeinstall-config'. As others have indicated, you need to provide specificinformation about your problem if you expect specific answers.

--Marc---This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642
___Nagios-users mailing listNagios-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
-- John Matijevic, CCIE #13254U.S. Installation Group Senior Network Engineer954-969-7160 ext. 1147 (office)305-321-6232 (cell) 

-- Le bon sens est la chose du monde la mieux partagée.


Re: [Nagios-users] Nagios and NRPE daemon for monitoring

2006-02-16 Thread Toto Capuccino
Hoi,yes you will need to install nrpe on the two other machines. If snmp service isnt a third part tool for you, you can already perform a number of checks with it. Also, you'd better search the list as a project is running for WMI stuff that would allow checks without any software installed on servers. But you should be patient as it started like two days ago.
2006/2/16, Naveen C Joshi <[EMAIL PROTECTED]>:







Hi,
I want to use Nagios to monitor public and private 
resources with given below network. Please provide me guidance to accomplish 
this task.
 
Centralise monitoring Nagios Host = 192.xxx.xxx.xx1 
(Nagios 2.x version Installed, NRPE plugin 2.5)
 
We have a pool of remote servers with following 
installation and ip.
 
client Remote server #1 = 10.xxx.xxx.xx1 (NRPE 
Daemon, Nagios)

client Remote server #2 = 
10.xxx.xxx.xx2

client Remote server #3 = 
10.xxx.xxx.xx3
 
Here I have confusion about Remote server#2 and 
3.  Do we need to install NRPE daemon for these two machines also?  Is 
there any method to monitor these 3 machine's private and public resources 
without any installation on remote server#2 and 3?
 
Please provide me help to monitor these all 
machines.
 
The main objective is that we do not want to 
install any nagios/third party tool on all the remote servers while we have 
installed in one of the remote server (Remote server#1), is it possible? if yes 
please let me know.
 
Thanks in advance.
Naveen
 

-- Le bon sens est la chose du monde la mieux partagée.


Re: [Nagios-users] monitor directory size?

2006-02-15 Thread Toto Capuccino
Not sure, did you check firewall from both side.Is nsclient installed as a service, take a look also at windows logs to see errors.2006/2/15, HP Geeza <
[EMAIL PROTECTED]>:HI Toto,I've even tried what you suggested.but when i run: ./check_nrpe -H
 -c check_cmdi get a connection refused :-(i'm even running the nsclient++ on the remote windows server as a localadmin!here's a sample of the important bits out of my NSC.ini file:
FileLogger.dll;CheckSystem.dllCheckDisk.dllNSClientListener.dllNRPEListener.dll;SysTray.dll;CheckEventLog.dll;CheckHelpers.dll;# ALLOWED HOST ADDRESSESallowed_hosts=
[NSClient];# NSCLIENT PORT NUMBER;  This is the port the NSClientListener.dll will listen to.port=12489[NRPE];# NRPE PORT NUMBER;  This is the port the NRPEListener.dll will listen to.
port=5666[NRPE Handlers]command[check_cmd]=D:\hello.cmdany suggestions on what im doing wrong???>From: Toto Capuccino <[EMAIL PROTECTED]>
>To: HP Geeza <[EMAIL PROTECTED]>>CC: nagios-users@lists.sourceforge.net, 
[EMAIL PROTECTED]>Subject: Re: [Nagios-users] monitor directory size?>Date: Wed, 15 Feb 2006 13:54:21 +0100>>Hi>>Everything is so well documented in nsclient++ doc that i wonder why you
>prefer asking here. Anyway you should have first the check_nrpe plugin.>Then>you just have to define command in checkcommands using ./check_nrpe -H>hostname -c check_cmd>>define command {
>> command_name Hello>> command_line check_nrpe -H $HOSTADDRESS$ -c check_cmd>>}>Please run check_nrpe -h to get the help of the plugin.>>cheers>2006/2/15, HP Geeza <
[EMAIL PROTECTED]>:> >> > Hi All,> >> > I am having some difficulty with using nclient++ and was wondering if> > somebody could help??
> >> > I have download nslicnet++ (from> > http://nscplus.medin.name/index.php/Main_Page) and installed it on a> > remote
> > windows server.  I then modified the NSC.ini file and added a line:> >> > command[check_cmd]=D:\hello.cmd> >> > I then created a simple .cmd file called hello.cmd which contained the
> > following:> >> > @echo off> > echo hello world> > exit 1> >> > MY QUESTION IS:> > what do i need to do/run on the nagios server inorder to run a check
> > against> > hello.cmd for example?> >> >> > >From: Bill Jacqmein <[EMAIL PROTECTED]>> > >To: HP Geeza <
[EMAIL PROTECTED]>> > >Subject: Re: [Nagios-users] monitor directory size?> > >Date: Tue, 14 Feb 2006 11:30:52 -0500> > >> > >in 
NSC.ini> > >> > >in the NRPE handlers section> > >> > >mycheck=c:\somecheck.bat> > >> > >> > >For coding the batch file> > >useful - 
http://nagiosplug.sourceforge.net/developer-guidelines.html> > >The main part is the return codes> > >> > >Numeric Value
> > >> > >Service Status> > >> > >Status Description> > >> > >0> > >> > >OK> > >> > >The plugin was able to check the service and it appeared to be
> > functioning> > >properly> > >> > >1> > >> > >Warning> > >> > >The plugin was able to check the service, but it appeared to be above
> > some> > >"warning" threshold or did not appear to be working properly> > >> > >2> > >> > >Critical> > >> > >The plugin detected that either the service was not running or it was
> > above> > >some "critical" threshold> > >> > >3> > >> > >Unknown> > >> > >Invalid command line arguments were supplied to the plugin or low-level
> > >failures internal to the plugin (such as unable to fork, or open a tcp> > >socket) that prevent it from performing the specified operation.> > >Higher-level errors (such as name resolution errors, socket timeouts,
> > etc)> > >are outside of the control of plugins and should generally NOT be> > reported> > >as UNKNOWN states.> > >> > >Hopeful this was enough get you closer to a solution. If not I have to
> > >write> > >one in the near future so I will send how I went about creating the> > check.> > >> > >Thanks,> > >> > >   Bill
> > >> > >On 2/14/06, HP Geeza <[EMAIL PROTECTED]> wrote:> > > >> > > > Hi Bill,> > > >> > > > Im affraid im having some trouble with nsclient++ and running a
>batch> > > > files> > > > via check_nrep.  Could y

Re: [Nagios-users] install of nagios

2006-02-15 Thread Toto Capuccino
would be too much asking to let us now wich directories you got or which one you should ?2006/2/15, john matijevic <[EMAIL PROTECTED]
>:Hello Team,
I am having trouble with installation of Nagios, I get to the point in the beginning after the install it is supposed to install 5 directories, I am only seeing 4 directories, I am installing as Root so its not a permission issue. Please advise.

 
Sincerely,
John-- John Matijevic, CCIE #13254U.S. Installation Group Senior Network Engineer954-969-7160 ext. 1147 (office)305-321-6232 (cell) 

-- Le bon sens est la chose du monde la mieux partagée.


Re: [Nagios-users] monitor directory size?

2006-02-15 Thread Toto Capuccino
HiEverything is so well documented in nsclient++ doc that i wonder why you prefer asking here. Anyway you should have first the check_nrpe plugin. Then you just have to define command in checkcommands using ./check_nrpe -H hostname -c check_cmd
define command { 
    command_name Hello 
    command_line check_nrpe -H $HOSTADDRESS$ -c check_cmd 
}Please run check_nrpe -h to get the help of the plugin.cheers2006/2/15, HP Geeza <[EMAIL PROTECTED]>:
Hi All,I am having some difficulty with using nclient++ and was wondering ifsomebody could help??
I have download nslicnet++ (fromhttp://nscplus.medin.name/index.php/Main_Page) and installed it on a remotewindows server.  I then modified the NSC.ini
 file and added a line:command[check_cmd]=D:\hello.cmdI then created a simple .cmd file called hello.cmd which contained thefollowing:@echo offecho hello worldexit 1MY QUESTION IS:
what do i need to do/run on the nagios server inorder to run a check againsthello.cmd for example?>From: Bill Jacqmein <[EMAIL PROTECTED]>>To: HP Geeza <
[EMAIL PROTECTED]>>Subject: Re: [Nagios-users] monitor directory size?>Date: Tue, 14 Feb 2006 11:30:52 -0500>>in NSC.ini>>in the NRPE handlers section
>>mycheck=c:\somecheck.bat>>>For coding the batch file>useful - http://nagiosplug.sourceforge.net/developer-guidelines.html
>The main part is the return codes>>Numeric Value>>Service Status>>Status Description>>0>>OK>>The plugin was able to check the service and it appeared to be functioning
>properly>>1>>Warning>>The plugin was able to check the service, but it appeared to be above some>"warning" threshold or did not appear to be working properly
>>2>>Critical>>The plugin detected that either the service was not running or it was above>some "critical" threshold>>3>>Unknown>
>Invalid command line arguments were supplied to the plugin or low-level>failures internal to the plugin (such as unable to fork, or open a tcp>socket) that prevent it from performing the specified operation.
>Higher-level errors (such as name resolution errors, socket timeouts, etc)>are outside of the control of plugins and should generally NOT be reported>as UNKNOWN states.>>Hopeful this was enough get you closer to a solution. If not I have to
>write>one in the near future so I will send how I went about creating the check.>>Thanks,>>   Bill>>On 2/14/06, HP Geeza <
[EMAIL PROTECTED]> wrote:> >> > Hi Bill,> >> > Im affraid im having some trouble with nsclient++ and running a batch> > files> > via check_nrep.  Could you please help me with the syntax that i need to
> > use> > to setup the check on both the nagios server and remote windows server.> >> > any help would be great!> >> >> > >From: Bill Jacqmein <
[EMAIL PROTECTED]>> > >To: HP Geeza <[EMAIL PROTECTED]>> > >Subject: Re: [Nagios-users] monitor directory size?
> > >Date: Mon, 13 Feb 2006 14:44:40 -0500> > >> > >nsclient++ has the ability to run batch files via check_nrep. Might be>an> > >option to do a dir and parse the filesize out of that.
> > >> > >On 2/13/06, HP Geeza <[EMAIL PROTECTED]> wrote:> > > >> > > > From what i can tell though check_snmp_storage.pl only allows you to
> > >check> > > > for particular kinds of storage settingswhat i need to do is> > monitor> > > > the> > > > size of a directory on a remote windows server for example, d:\data
> > > >> > > > i am using nsclient at the moment but can't monitor directory size> > (only> > > > disk space).  Is there a way to monitor a directories size via
> > snmp> > > >> > > >> > > > >From: Hendrik Baecker <[EMAIL PROTECTED]>> > > > >To: 
nagios-users@lists.sourceforge.net> > > > >Subject: Re: [Nagios-users] monitor directory size?> > > > >Date: Mon, 13 Feb 2006 12:44:00 +0100> > > > >> > > > >Google for: "check_snmp_storage.pl"
> > > > >> > > > >> > > > >HP Geeza schrieb:> > > > >> > > > >>Hi All,> > > > >>> > > > >>I was wondering whether it is possible to monitor the size of a
> > > > directory> > > > >>(eg find out how big it is in in MB or GBs) and then send an alert> > >when> > > > >>the size goes over a certain threshold?
> > > > >>> > > > >>Any help would be great!> > > > >>> > > > >>_
> > > > >>The new MSN Search Toolbar now includes Desktop search!> > > > >>http://toolbar.msn.co.uk/> > > > >>> > > > >>
> > > > >>> > > > >>---> > > > >>This SF.net email is sponsored by: Splunk Inc. Do you grep through
> > log> > > > >>files> > > > >>for problems?  Stop!  Download the new AJAX search engine that>makes> > > > >>searching your log files as easy as surfing the  web.  DOWNLOAD
> > >SPLUNK!> > > >> > > >>> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> > > > >>___> > > > >>Nagios-users mailing list> > > > >>
Nagios-users@lists.sourceforge.net> > > > >>https://lists.sourceforge.net/lists/listinfo/nagios-users> > > > >>::: Please include Nagios ver

Re: [Nagios-users] number of notifications?

2006-02-15 Thread Toto Capuccino
Hello,the period is defined by  
notification_interval   
960, you can try to put 0 if you want to be alert only one time.I used to not get notifications for Warning so i have notification_options    u,c,r

instead of notification_options    
w,u,c,r2006/2/15, [EMAIL PROTECTED] <
[EMAIL PROTECTED]>:





Hi 
all    
 
Where do i set the 
number of email-notifications when a service is critical? I keep getting one 
email every second minute!?
 
Heres some of my 
config!
 
minimal.cfg
 
define 
host{    
name    
generic-host    ; The name of this host 
template    
notifications_enabled   
1   ; Host notifications are 
enabled    
event_handler_enabled   
1   ; Host event handler is 
enabled    
flap_detection_enabled  
1   ; Flap detection is 
enabled    
failure_prediction_enabled  
1   ; Failure prediction is 
enabled    
process_perf_data   
1   ; Process performance 
data    
retain_status_information   
1   ; Retain status information across program 
restarts    
retain_nonstatus_information    
1   ; Retain non-status information across 
program restarts    
register    
0   ; DONT REGISTER THIS DEFINITION - ITS NOT 
A REAL HOST, JUST A TEMPLATE!    
}
 
 
define 
service{    
name    
generic-service ; The 'name' of this service 
template    
active_checks_enabled   
1   ; Active service checks are 
enabled    
passive_checks_enabled  
1   ; Passive service checks are 
enabled/accepted    
parallelize_check   
1   ; Active service checks should be 
parallelized (disabling this can lead to major performance 
problems)    
obsess_over_service 
1   ; We should obsess over this service (if 
necessary)    
check_freshness 
1   ; Default is to NOT check service 
'freshness'    
notifications_enabled   
1   ; Service notifications are 
enabled    
event_handler_enabled   
1   ; Service event handler is 
enabled    
flap_detection_enabled  
1   ; Flap detection is 
enabled    
failure_prediction_enabled  
1   ; Failure prediction is 
enabled    
process_perf_data   
1   ; Process performance 
data    
retain_status_information   
1   ; Retain status information across program 
restarts    
retain_nonstatus_information    
1   ; Retain non-status information across 
program restarts    
register    
0   ; DONT REGISTER THIS DEFINITION - ITS NOT 
A REAL SERVICE, JUST A TEMPLATE!    
}
 
define 
host{    
use 
generic-host    ; 
Name of host template to use    
host_name   
arnwin0136    
alias   
arnwin0136    
address 
192.168.103.10    
check_command   
check-host-alive    
max_check_attempts  
10    
notification_interval   
960    
notification_period 
24x7    
notification_options    
d,u,r,    
notifications_enabled  1    
contact_groups  
admins    
}
 
 
define  service 
{use 
generic-service    ; 
check_disk_smb    
host_name   
arnwin0136    
service_description 
C-Disk    
is_volatile 
1    
max_check_attempts  
5    
normal_check_interval   
2    
retry_check_interval    
1    
active_checks_enabled   
1    
passive_checks_enabled  
1    
check_period    
24x7    
parallelize_check   
1    
obsess_over_service 
1    
check_freshness 
1    
freshness_threshold 
420    
event_handler_enabled   
1    
low_flap_threshold  
0    
high_flap_threshold 
0    
flap_detection_enabled  
1    
process_perf_data   
1    
retain_status_information   
1    
retain_nonstatus_information    
0    
contact_groups  
admins,jour    
notification_interval   
960    
notification_period 
24x7    
notification_options    
w,u,c,r    
notifications_enabled   
1    
register    
1    
check_command   check_disk_smb!nagios!$USER10$!$USER11$    
} 
 
Thanks
 
Lennart
 
** 

Lennart 
Kvam Softronic 
AB, Ringv�gen 100, 118 60 Stockholm Tel: 
0708-813279  Vx:08-51909000 

[EMAIL PROTECTED] **

 

-- Le bon sens est la chose du monde la mieux partagée.


[Nagios-users] pop up windows in status map

2006-02-15 Thread Toto Capuccino
Hi,I found it easy to get ip addresses of my hosts looking in the statusmap inside the popups. But my map get kind of busy and when i move the mouse upon it, it sorts of flaps, blink,so quickly that i can't read anything. Would it possible to arrange map display ?
-- Le bon sens est la chose du monde la mieux partagée.


Re: [Nagios-users] Subdirectories in Nagios installation dir.

2006-02-13 Thread Toto Capuccino
2006/2/14, Jong-Geun Park <[EMAIL PROTECTED]>:
Hi,Hi It depends on how you run ./configure.What options do you put ? Do you compile with make all & makeinstall?


Re: [Nagios-users] Nagios with SSL

2006-02-13 Thread Toto Capuccino
Hi Jim, thanks very much for the tip but it doesnt work. I enable the mod_rewrite thing : a2enmod rewrite then restarted apache2 but the connections still happened in http. I have no useful logs to afford in apache's.
2006/2/13, Jim Perrin <[EMAIL PROTECTED]>:
> I am searching for howto about forcing ssl connection to nagios web> interface, so it is a bit off topic but if you'd know an howto about how
> setting up a SSL virtual for nagios, or any like, i would greatly> appreciate.Apache's mod_rewrite is your friend.RewriteEngine OnRewriteCond %{SERVER_PORT} ^80$RewriteRule  ^/nagios(.*)  https://%{SERVER_NAME}/nagios$1 [R]
--"They that can give up essential liberty to obtain a little temporarysafety deserve neither liberty nor safety''Benjamin Franklin 1775-- 

Le bon sens est la chose du monde la mieux partagée.



[Nagios-users] Nagios with SSL

2006-02-13 Thread Toto Capuccino
Hi,I am searching for howto about forcing ssl connection to nagios web interface, so it is a bit off topic but if you'd know an howto about how setting up a SSL virtual for nagios, or any like, i would greatly appreciate.
Thanks-- Le bon sens est la chose du monde la mieux partagée.


Re: [Nagios-users] Additional Info in email notification

2006-02-10 Thread Toto Capuccino
i never say you didnt 2006/2/10, Deborah Martin <[EMAIL PROTECTED]>:







i 
never said it didn't! 

  -Original Message-From: Toto Capuccino 
  [mailto:[EMAIL PROTECTED]]Sent: 10 February 2006 
  15:09To: Deborah MartinCc: [EMAIL PROTECTED]; 
  nagios-users@lists.sourceforge.netSubject: Re: [Nagios-users] 
  Additional Info in email notification$OUTPUT$ works for 
  nagios 1.3 actually.
  2006/2/10, Deborah Martin <[EMAIL PROTECTED]>:

  try 
the following : essentially instead of using $OUTPUT$, replace 
with$SERVICEOUTPUT$This works fine for me.define 
command{command_namenotify-by-emailcommand_line/usr/bin/printf 
"%b" "* Nagios *\n\nNotification Type: 
$NOTIFICATIONTYPE$\n\nService:$SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: 
$HOSTADDRESS$\nState:$SERVICESTATE$\n\nDate/Time: 
$LONGDATETIME$\n\nAdditionalInfo:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s 
"** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is 
$SERVICESTATE$ **" 
$CONTACTEMAIL$}regards,deborah-Original 
Message-From: [EMAIL PROTECTED] 
[mailto: [EMAIL PROTECTED]]Sent: 10 
February 2006 14:43To: nagios-users@lists.sourceforge.netSubject: 
[Nagios-users] Additional Info in email notificationI have 
already tried this but I don't to receive Additional Info.What can I 
do now?Ths>Hi,>try to put something like this in 
your miscommands.cfg file that should>contact the email notification 
command : >define 
command{>command_namehost-notify-by-email>command_line/usr/bin/printf 
"%b" "* Nagios>*\n\nNotification Type: 
$NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: >$HOSTSTATE$\nAddress: 
$HOSTADDRESS$\nAdditional 
Info:$OUTPUT$\n\nDate/Time:>$DATETIME$\n" | /usr/bin/sendmail 
"Host $HOSTSTATE$ alert for 
$HOSTNAME$!">$CONTACTEMAIL$>} 
>>10 Feb 2006 10:44:26 -, [EMAIL PROTECTED] <
[EMAIL PROTECTED]>: 
> 
Sei stanco di girare a vuoto?Con il nuovo motore di ricerca 
Interfree trovi di tutto.Vieni a trovarci: http://search.interfree.it/Lo 
Staff di 
Interfree 
---This 
SF.net email is sponsored by: Splunk Inc. Do you grep through log 
filesfor problems?  Stop!  Download the new AJAX 
search engine that makes searching your log files as easy as surfing 
the  web.  DOWNLOAD SPLUNK!http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 
___Nagios-users 
mailing listNagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users::: 
Please include Nagios version, plugin version (-v) and OS when 
reportingany issue.::: Messages without supporting info will risk 
being sent to /dev/null 
This 
email and any files transmitted with it are confidential andintended 
solely for the use of the individual or entity to whom they are 
addressed. Any unauthorised distribution or copying is 
strictlyprohibited.Whilst Kognitio Limited takes steps to 
prevent the transmission ofviruses via e-mail, we can not guarantee that 
any email or attachment is free from computer viruses and you are 
stronglyadvised to undertake your own anti-virus 
precautions.Kognitio grants no warranties regarding 
performance,use or quality of any e-mail or attachment and undertakes no 
liability for loss or damage, howsoever 
caused.***---This 
SF.net email is sponsored by: Splunk Inc. Do you grep through log files 
for problems?  Stop!  Download the new AJAX search 
engine that makessearching your log files as easy as surfing 
the  web.  DOWNLOAD SPLUNK!http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___Nagios-users 
mailing listNagios-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-- Le bon sens est 
  la chose du monde la mieux partagée. 

-- Le bon sens est la chose du monde la mieux partagée.


Re: [Nagios-users] Additional Info in email notification

2006-02-10 Thread Toto Capuccino
no i mean i never say you did say it didntoh  nevermind2006/2/10, Toto Capuccino <[EMAIL PROTECTED]>:
i never say you didnt 2006/2/10, Deborah Martin <
[EMAIL PROTECTED]>:







i 
never said it didn't! 

  -Original Message-From: Toto Capuccino 
  [mailto:[EMAIL PROTECTED]]Sent: 10 February 2006 
  15:09To: Deborah MartinCc: [EMAIL PROTECTED]; 
  nagios-users@lists.sourceforge.netSubject: Re: [Nagios-users] 
  Additional Info in email notification$OUTPUT$ works for 
  nagios 1.3 actually.
  2006/2/10, Deborah Martin <[EMAIL PROTECTED]>:


  try 
the following : essentially instead of using $OUTPUT$, replace 
with$SERVICEOUTPUT$This works fine for me.define 
command{command_namenotify-by-emailcommand_line/usr/bin/printf 
"%b" "* Nagios *\n\nNotification Type: 
$NOTIFICATIONTYPE$\n\nService:$SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: 
$HOSTADDRESS$\nState:$SERVICESTATE$\n\nDate/Time: 
$LONGDATETIME$\n\nAdditionalInfo:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s 
"** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is 
$SERVICESTATE$ **" 
$CONTACTEMAIL$}regards,deborah-Original 
Message-From: [EMAIL PROTECTED] 
[mailto: [EMAIL PROTECTED]]Sent: 10 
February 2006 14:43To: nagios-users@lists.sourceforge.netSubject: 
[Nagios-users] Additional Info in email notificationI have 
already tried this but I don't to receive Additional Info.What can I 
do now?Ths>Hi,>try to put something like this in 
your miscommands.cfg file that should>contact the email notification 
command : >define 
command{>command_namehost-notify-by-email>command_line/usr/bin/printf 
"%b" "* Nagios>*\n\nNotification Type: 
$NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: >$HOSTSTATE$\nAddress: 
$HOSTADDRESS$\nAdditional 
Info:$OUTPUT$\n\nDate/Time:>$DATETIME$\n" | /usr/bin/sendmail 
"Host $HOSTSTATE$ alert for 
$HOSTNAME$!">$CONTACTEMAIL$>} 
>>10 Feb 2006 10:44:26 -, [EMAIL PROTECTED] <

[EMAIL PROTECTED]>: 
> 
Sei stanco di girare a vuoto?Con il nuovo motore di ricerca 
Interfree trovi di tutto.Vieni a trovarci: http://search.interfree.it/Lo 
Staff di 
Interfree 
---This 
SF.net email is sponsored by: Splunk Inc. Do you grep through log 
filesfor problems?  Stop!  Download the new AJAX 
search engine that makes searching your log files as easy as surfing 
the  web.  DOWNLOAD SPLUNK!http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 
___Nagios-users 
mailing listNagios-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/nagios-users::: 
Please include Nagios version, plugin version (-v) and OS when 
reportingany issue.::: Messages without supporting info will risk 
being sent to /dev/null 
This 
email and any files transmitted with it are confidential andintended 
solely for the use of the individual or entity to whom they are 
addressed. Any unauthorised distribution or copying is 
strictlyprohibited.Whilst Kognitio Limited takes steps to 
prevent the transmission ofviruses via e-mail, we can not guarantee that 
any email or attachment is free from computer viruses and you are 
stronglyadvised to undertake your own anti-virus 
precautions.Kognitio grants no warranties regarding 
performance,use or quality of any e-mail or attachment and undertakes no 
liability for loss or damage, howsoever 
caused.***---This 
SF.net email is sponsored by: Splunk Inc. Do you grep through log files 
for problems?  Stop!  Download the new AJAX search 
engine that makessearching your log files as easy as surfing 
the  web.  DOWNLOAD SPLUNK!http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___Nagios-users 
mailing listNagios-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-- Le bon sens est 
  la chose du monde la mieux partagée. 

-- Le bon sens est la chose du monde la mieux partagée.

-- Le bon sens est la chose du monde la mieux partagée.


Re: [Nagios-users] Additional Info in email notification

2006-02-10 Thread Toto Capuccino
$OUTPUT$ works for nagios 1.3 actually.2006/2/10, Deborah Martin <[EMAIL PROTECTED]>:
try the following : essentially instead of using $OUTPUT$, replace with$SERVICEOUTPUT$This works fine for me.define command{command_namenotify-by-emailcommand_line/usr/bin/printf "%b" "* Nagios
*\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:$SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:$SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditionalInfo:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert -
$HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$}regards,deborah-Original Message-From: [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED]]Sent: 10 February 2006 14:43To: nagios-users@lists.sourceforge.netSubject: [Nagios-users] Additional Info in email notification
I have already tried this but I don't to receive Additional Info.What can I do now?Ths>Hi,>try to put something like this in your miscommands.cfg file that should>contact the email notification command :
>define command{>command_namehost-notify-by-email>command_line/usr/bin/printf "%b" "* Nagios>*\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState:
>$HOSTSTATE$\nAddress: $HOSTADDRESS$\nAdditional Info:$OUTPUT$\n\nDate/Time:>$DATETIME$\n" | /usr/bin/sendmail "Host $HOSTSTATE$ alert for $HOSTNAME$!">$CONTACTEMAIL$>}
>>10 Feb 2006 10:44:26 -, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: >
Sei stanco di girare a vuoto?Con il nuovo motore di ricerca Interfree trovi di tutto.Vieni a trovarci: http://search.interfree.it/Lo Staff di Interfree
---This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___Nagios-users mailing listNagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users::: Please include Nagios version, plugin version (-v) and OS when reportingany issue.::: Messages without supporting info will risk being sent to /dev/null
This email and any files transmitted with it are confidential andintended solely for the use of the individual or entity to whom they
are addressed. Any unauthorised distribution or copying is strictlyprohibited.Whilst Kognitio Limited takes steps to prevent the transmission ofviruses via e-mail, we can not guarantee that any email or
attachment is free from computer viruses and you are stronglyadvised to undertake your own anti-virus precautions.Kognitio grants no warranties regarding performance,use or quality of any e-mail or attachment and undertakes no
liability for loss or damage, howsoever caused.***---This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makessearching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642___Nagios-users mailing list
Nagios-users@lists.sourceforge.nethttps://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-- Le bon sens est la chose du monde la mieux partagée.


Re: [Nagios-users] Additional Info in email notification

2006-02-10 Thread Toto Capuccino
Hi,try to put something like this in your miscommands.cfg file that should contact the email notification command :define command{    command_name    host-notify-by-email    command_line    /usr/bin/printf "%b" "* Nagios  *\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\n
Additional Info: $OUTPUT$\n\nDate/Time: $DATETIME$\n" | /usr/bin/sendmail "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$    }
10 Feb 2006 10:44:26 -, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
Hi, thereI would to include additional info into email notification!What can I do?This is the email that nagios sends me.
 Nagios  *Notification Type: PROBLEMService: PingHost: myhostAddress: IPState: CRITICALDate/Time: Fri Feb 10 11:14:20 CET 2006Additional Info:$
ThsSei stanco di girare a vuoto?Con il nuovo motore di ricerca Interfree trovi di tutto.Vieni a trovarci: 
http://search.interfree.it/Lo Staff di Interfree---This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makessearching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642___Nagios-users mailing list
Nagios-users@lists.sourceforge.nethttps://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-- Le bon sens est la chose du monde la mieux partagée.


Re: [Nagios-users] nrpe issue

2006-02-09 Thread Toto Capuccino
well, the strange thing is that on that host i monitor the memory and some processes already with nsclient and it works fine it just fails for the check_disk and more surprising it fails also with nrpe. So i dont think that changing the port will help in anyway.
Thanks2006/2/9, Kai Reese <[EMAIL PROTECTED]>:
You might want to check the port nrpe (or nsclient for that matter) use.For nsclient, it's set in the registry, I seem to rememberHKLM->Software->nsclientI solved my connection issues by setting that to 5666 instead of the
default whatever it was.KaiOn 2/9/06, Toto Capuccino <[EMAIL PROTECTED]> wrote:> Hi all,>> i have installed nrpe service on remote host a win2003 server, the service
> just runs fine and i want to start monitorinfg free space on servers.> I have downloaded chec_disk on nagiosexchange and defined the services in> nrpe.cfg as follows:>> command[check_disk_c]=
cscript.exe //NoLogo //T:10 c:\nrpe\bin\check_disk.wsf> /drive:"c:\" /w:300 /c:100> command[check_disk_d]=cscript.exe //NoLogo //T:10 c:\nrpe\bin\check_disk.wsf> /drive:"d:\" /w:300 /c:100
>> when i run the check_nrpe on the nagios server from command line all is good> :>> ../libexec/check_nrpe -H 10.8.1.3 -c check_disk_c> Drive C:\  - Total: 
11.72 GB - Free: 3.94 GB (34%) - Used: 7.78 GB (66%)>>  ../libexec/check_nrpe -H 10.8.1.3 -c check_disk_d> Drive D:\ Data - Total: 56.08 GB - Free: 25.25 GB (45%) - Used: 
30.83 GB> (55%)>> I did define nrpe in checkcommands.cfg as follows:> define command{> command_namecheck_nrpe> command_line   $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
> }>> and run it this way in services.cfg> check_command   check_nrpe!check_disk_c>> but when i run it from Nagios, all i get is a CRITICAL state with ouput
> 'Connection refused by host'. Actually i started working with nrpe because i> had the same problem with nsclient. Besides the log are empty concerning> this critical state. All checks on disks are refused.
>> Any ideas.>> Cheers> --> Le bon sens est la chose du monde la mieux partagée.---This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makessearching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642___Nagios-users mailing listNagios-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-- Le bon sens est la chose du monde la mieux partagée.


[Nagios-users] nrpe issue

2006-02-09 Thread Toto Capuccino
Hi all,i have installed nrpe service on remote host a win2003 server, the service just runs fine and i want to start monitorinfg free space on servers.I have downloaded chec_disk on nagiosexchange and defined the services in 
nrpe.cfg as follows:command[check_disk_c]=cscript.exe //NoLogo //T:10 c:\nrpe\bin\check_disk.wsf /drive:"c:\" /w:300 /c:100command[check_disk_d]=cscript.exe //NoLogo //T:10 c:\nrpe\bin\check_disk.wsf /drive:"d:\" /w:300 /c:100
when i run the check_nrpe on the nagios server from command line all is good :../libexec/check_nrpe -H 10.8.1.3 -c check_disk_cDrive C:\  - Total: 11.72 GB - Free: 3.94 GB (34%) - Used: 
7.78 GB (66%) ../libexec/check_nrpe -H 10.8.1.3 -c check_disk_dDrive D:\ Data - Total: 56.08 GB - Free: 25.25 GB (45%) - Used: 30.83 GB (55%)I did define nrpe in checkcommands.cfg
 as follows:define command{    command_name    check_nrpe    command_line   $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$    }and run it this way in services.cfg
check_command   check_nrpe!check_disk_cbut when i run it from Nagios, all i get is a CRITICAL state with ouput 'Connection refused by host'. Actually i started working with nrpe because i had the same problem with nsclient. Besides the log are empty concerning this critical state. All checks on disks are refused.
Any ideas.Cheers-- Le bon sens est la chose du monde la mieux partagée.


Re: [Nagios-users] Icons showing up everywhere but in the status map

2006-02-08 Thread Toto Capuccino
Hi,Did you check permissions ? Did you make your owm gd2 picture ?2006/2/8, Matteo Corti <[EMAIL PROTECTED]>:
Hi,I configured nagios (2.0) to read the hostextinfo.cfg file where Iconfigured some hosts with icons. Example:define hostextinfo{host_name   router.example.com
statusmap_image router.gd2icon_image  router.pngicon_image_alt  Routervrml_image  router.png}I can see the icons in the host list but not in the status map where I
simply see squares (in the popup the icon is OK). Looking on the web Isaw that it should be possible to have the icons in the map itself but Iam obviously missing something.Many thanks,Matteo
--Matteo CortiETH ZurichInformatikdienste / Basisdienste[EMAIL PROTECTED]+41 44 6327944---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?  Stop!  Download the new AJAX search engine that makessearching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642___
Nagios-users mailing listNagios-users@lists.sourceforge.nethttps://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-- 
Le bon sens est la chose du monde la mieux partagée.


Re: [Nagios-users] Need pointer

2006-02-08 Thread Toto Capuccino
I have tried this#!/bin/sh $output=`/usr/local/nagios/libexec/check_snmp -H $1 -o $2`if [ $output = 0 ]echo "low paper"if [ $output = 1 ]echo "no Paper"
if [ $output = 2 ]echo "low Toner"...exit ($value)i get this errors :../libexec/check_Xerox_Status: line 3: =SNMP: command not found../libexec/check_Xerox_Status: line 65: syntax error near unexpected token `$value'
../libexec/check_Xerox_Status: line 65: `exit ($value)'I am totally walking blind there as i could say it is my first script, can you give a hand?Thanksand i get this error 
2006/2/8, Sumit Malhotra <[EMAIL PROTECTED]>:
  _From: [EMAIL PROTECTED][mailto:[EMAIL PROTECTED]
] On Behalf Of TotoCapuccinoSent: Wednesday, February 08, 2006 2:52 PMTo: NagiosSubject: [Nagios-users] Need pointerHi,I need a pointer to  do the following :i am checking the staus of printers with check_snmp -H 
x.x.x.x -o OIDthe snmp check returns a value between 0 and 14 that corresponds to a state Condition Bit # lowPaper  0 noPaper   1 lowToner  2
 noToner   3 doorOpen  4 jammed5 offline   6 serviceRequested  7 inputTrayMissing  8 outputTrayMissing 9
 markerSupplyMissing  10 outputNearFull   11 outputFull   12 inputTrayEmpty   13 overduePreventMaint  14What i want to do is to make appear the value in the output of the check.
How can i do that ?Write a wrapper script which instead of returning OID in output returns theState instead of NUMBERIC value.The script could be like#!/bin/shoutput= `/usr/bin/local/Nagios/check_snmp -H $1 -o $2`
if [ $output = 0 ]echo "lowpaper"exit ($value)-- Le bon sens est la chose du monde la mieux partagée.


[Nagios-users] Need pointer

2006-02-08 Thread Toto Capuccino
Hi,I need a pointer to  do the following :i am checking the staus of printers with check_snmp -H x.x.x.x -o OIDthe snmp check returns a value between 0 and 14 that corresponds to a state Condition Bit #
 lowPaper  0 noPaper   1 lowToner  2 noToner   3 doorOpen  4 jammed    5 offline   6
 serviceRequested  7 inputTrayMissing  8 outputTrayMissing 9 markerSupplyMissing  10 outputNearFull   11 outputFull   12 inputTrayEmpty   13
 overduePreventMaint  14What i want to do is to make appear the value in the output of the check. How can i do that ?Thanks.-- Le bon sens est la chose du monde la mieux partagée.


[Nagios-users] Logs, alerts and notifications not on the "same page"

2006-02-07 Thread Toto Capuccino
Hello,


I have a problem after a server restart. I am checking the used space
disk with check_net plugins that comes to work with pnsclient.
Pnsclient is installed on server and running fine (restarted it btw).
When i launch the service by hand i get this :
../libexec/check_nt -H 10.8.1.3 -p 1248 -v USEDDISKSPACE -w 80 -c 90
Connection refused
could not fetch information from server
and strange thing is that log is empty but notifications are sent

i have another check that uses nsclient for memuse and there's also a
strange behaviour :
 ../libexec/check_nt -H 10.8.1.3 -p 1248 -v MEMUSE -w 80 -c 90
Connection refused
could not fetch information from server

and the log gives [07-02-2006 10:30:21] SERVICE ALERT:
frparsv03;Memory usage;OK;HARD;1;Memory usage: total:3113.55 Mb -
used: 1052.43 Mb (34%) - free: 2061.12 Mb (66%)
Memory usage
but in the web interface the service is in OK state
OK  07-02-2006 10:50:13 6d 15h 0m 11s   1/4 Memory usage:
total:3113.55 Mb - used: 1052.62 Mb (34%) - free: 2060.93 Mb (66%)

I am right now a bit confused, any highlights would greatly be appreciated.

Cheers. Thanks and regards

Nagios 1.3
plugs 1.4
-
Le bon sens est la chose du monde la mieux partagée.


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
___
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] Data protector plugs

2006-02-06 Thread Toto Capuccino
Hi list,I wonder if anyone is aware of plugins that could perform checks on HP Data Protector backup software. I would like to receive a notification if backups have been performed with errors.If no ones exist, i'd like to discuss with initiates developpers the possibility for me to start writing my first plugin, as i seek to learn programming at least one language.
Thanks. -- Le bon sens est la chose du monde la mieux partagée.


Re: [Nagios-users] Critical state for several hosts after a server restart

2006-02-05 Thread Toto Capuccino
Nobody?2006/2/3, Toto Capuccino <[EMAIL PROTECTED]>:
I am running nagios version 1.3 with plugins 1.4.2My setup is quiet basic i monitor windows servers on which i installed pNSClient. I am monitoring about a hundred servers. The one that i restarted yedterday was inside a LAN (where Nagios is running) where 30 hosts are too. The other servers are located in distant sites with MPLS connection. I also monitor the routers used for those connections.
After restarting the servers about 65 services went 
CRITICAL - Socket timeout after 10 seconds> The services in Critical state seems to be the same type all checks that use Nsclient for disk space (on all sites on every single server) strange...

2006/2/3, Hugo van der Kooij <[EMAIL PROTECTED]>:

On Thu, 2 Feb 2006, Toto Capuccino wrote:> I just restarted a server that i monitor and a lot of other services went> red CRITICAL on all the other hosts i monitor. There is no dependency> relationship between the servers and the one i restarted that would cause
> such behaviour so i wonder why all went wrong this way.This is a question that is impossible to answer. You give us no clues whatyour setup looks like. (config files) You give us no clueas what sort of
service went critical and what they did report.We know nothing apart from what you tell us on this mailinglist so if youexpect any help you need to provide enough details to fully understand theissue. I suggest you pay attention to the remark added to each message on
the mailinglist as well.Hugo.--I hate duplicates. Just reply to the relevant mailinglist.
[EMAIL PROTECTED]
http://hvdkooij.xs4all.nl/Don't meddle in the affairs of magicians,for they are subtle and quick to anger.---

This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?  Stop!  Download the new AJAX search engine that makessearching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Nagios-users mailing listNagios-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

-- Le bon sens est la chose du monde la mieux partagée.


Re: [Nagios-users] Critical state for several hosts after a server restart

2006-02-02 Thread Toto Capuccino
I am running nagios version 1.3 with plugins 1.4.2My setup is quiet basic i monitor windows servers on which i installed pNSClient. I am monitoring about a hundred servers. The one that i restarted yedterday was inside a LAN (where Nagios is running) where 30 hosts are too. The other servers are located in distant sites with MPLS connection. I also monitor the routers used for those connections.
After restarting the servers about 65 services went 
CRITICAL - Socket timeout after 10 seconds> The services in Critical state seems to be the same type all checks that use Nsclient for disk space (on all sites on every single server) strange...
2006/2/3, Hugo van der Kooij <[EMAIL PROTECTED]>:
On Thu, 2 Feb 2006, Toto Capuccino wrote:> I just restarted a server that i monitor and a lot of other services went> red CRITICAL on all the other hosts i monitor. There is no dependency> relationship between the servers and the one i restarted that would cause
> such behaviour so i wonder why all went wrong this way.This is a question that is impossible to answer. You give us no clues whatyour setup looks like. (config files) You give us no clueas what sort of
service went critical and what they did report.We know nothing apart from what you tell us on this mailinglist so if youexpect any help you need to provide enough details to fully understand theissue. I suggest you pay attention to the remark added to each message on
the mailinglist as well.Hugo.--I hate duplicates. Just reply to the relevant mailinglist.[EMAIL PROTECTED]
http://hvdkooij.xs4all.nl/Don't meddle in the affairs of magicians,for they are subtle and quick to anger.---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?  Stop!  Download the new AJAX search engine that makessearching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642___
Nagios-users mailing listNagios-users@lists.sourceforge.nethttps://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] Critical state for several hosts after a server restart

2006-02-02 Thread Toto Capuccino
Hi,I just restarted a server that i monitor and a lot of other services went red CRITICAL on all the other hosts i monitor. There is no dependency relationship between the servers and the one i restarted that would cause such behaviour so i wonder why all went wrong this way.
Cheers.


Re: [Nagios-users] Statusmap Images

2006-02-02 Thread Toto Capuccino
put png or gd2 images for statusmap and also check permissions2006/2/2, Patrick M. Rutkowski <[EMAIL PROTECTED]>:
I've set xedtemplate_config_file=/etc/nagios/hostextinfo.cfg incgi.cfg, and then put one entry into hostextinfo.cfg:define hostextinfo{host_name   flashicon_image  logo.gificon_image_alt  
logo.gifstatusmap_image logo.gif}I made little 40x40 gif in the gimp, uploaded to the server and put itinto /usr/share/nagios/htdocs/images/logos, and restarted nagios. Thegif doesn't appear in the status map like i expected it too; instead
all I get is the question mark gifs that I saw even before i made anychages. What should I do?---This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makessearching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642___Nagios-users mailing listNagios-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] host info web page

2006-02-02 Thread Toto Capuccino
Hi,Is there's a way to get ride of the text "There are additional notes for this host" that is displayed  on the host information ?Thank you 


Re: [Nagios-users] RE: You don't have permission to access /nagios/cgi-bin/ on this server

2006-02-02 Thread Toto Capuccino
maybe the problem comes from the configuration of Apache, did you put the ScriptAlias and Alias as mentionned in the doc, did you mouve the nagios web directory?2006/2/1, Bob DeBolt <
[EMAIL PROTECTED]>:Hi MikeThanks for the response
> This appears to be a permissions problem. It sounds as if you have nagios> as a member of the apache group,Actually apache is running in the nagios group> but are you running nagios as "nagios"
Yes> Is Apache running as "apache".Yes> You may also want to check the directories/files to ensure they are a part> of correct group/ownership.Some of the files in the /usr/lib/nagios/cgi directory
-rwxrwxr-x 1 nagios nagios 135496 Jan 31 11:45 histogram.cgi-rwxrwxr-x 1 nagios nagios 115176 Jan 31 11:45 history.cgi-rwxr--r-- 1 nagios nagios 99 Jan 31 16:11 .htaccessBob---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?  Stop!  Download the new AJAX search engine that makessearching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642___
Nagios-users mailing listNagios-users@lists.sourceforge.nethttps://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] popup

2006-02-01 Thread Toto Capuccino
Hey Frederik, thanks for the tips i'll have a look.2006/2/2, Frederik Vanhee <[EMAIL PROTECTED]>:
Hello Toto,jabber is really easy to set up. I followed these instructions :http://linuxgazette.net/112/tomar.htmlThe jabber server was running within an hour.
I use the notification script of David Cox, that I found on Nagiosexchange.On the PC-side, I use GAIM to read the messages.My end-users are very happy with that solution.FrederikToto Capuccino wrote:
> i wanted to avoid the winpopup too, not very user-friendly. Is Jabber> solution easy to implement ?>> 2006/2/1, Frederik Vanhee <[EMAIL PROTECTED]
> [EMAIL PROTECTED]>>:>> Toto Capuccino wrote:>> > Hi all,> >> > Does anybody got popup notifications working ?
>>> Works like a charm ! use this as your notify-command, or tune to your> needs> However I switched to jabber-notification (instant messaging)> because of
> the rather 'aggressive' popups.>> # 'notify-by-smbclient' command definition> define command{> command_namenotify-by-smbclient> command_line/usr/bin/printf "%b" "* NAGIOS  *
> automatically generated POP-UP \n\n Notification Type:> $NOTIFICATIONTYPE$\n\nHost: $HOSTNAME$ ($HOSTALIAS$) \nAddress:> $HOSTADDRESS$\nService: $SERVICEDESC$\nState:> $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional
> Info:\n\n$SERVICEOUTPUT$" | /usr/bin/smbclient -M $CONTACTADDRESS1$ -I> $CONTACTADDRESS2$> }>> where CONTACTADDRESS1 = the pc name> and CONTACTADDRESS2 = the pc's ip-address
>> Good luck !>> Frederik>>


Re: [Nagios-users] Nagios global stylesheet ??

2006-02-01 Thread Toto Capuccino
you can have a look there and get inspired http://www.nagiosexchange.org/Image_Packs.75.0.html?&tx_netnagext_pi1[p_view]=252
2006/2/1, Alberto <[EMAIL PROTECTED]>:
Is there anyway to modify stylesheet colors, font, etc... globally not
for each section on each file, why is this so complex in Nagios? Will
this be improved in future releases?




Re: [Nagios-users] Monitoring a mail server

2006-02-01 Thread Toto Capuccino
I use nullmailer but it cant run on the same box as the one that runs amvisd2006/2/1, Robert Fitzpatrick <[EMAIL PROTECTED]>:
On Tue, 2006-01-31 at 21:38 -0600, C. Bensend wrote:> His mailserver is on the Nagios host.  It uses amavisd.>> He can monitor it via check_tcp, but if amavisd is not functional,> _he's not going to get the email alert._  Because his email isn't
> going to work.>> So I think what he's asking, is how to get the alert to him, if his> email system is not fully functional.>> If this is correct, he could look at using a modem to page, or
> an email alert sent directly to a remote SMTP gateway, or any> number of things.>> Robert, is this the problem you're trying to get across?>Yes, you got it, but how do I send an email alert sent directly to a
remote SMTP gateway?--Robert--Robert---This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___Nagios-users mailing listNagios-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] popup

2006-02-01 Thread Toto Capuccino
i wanted to avoid the winpopup too, not very user-friendly. Is Jabber solution easy to implement ?2006/2/1, Frederik Vanhee <[EMAIL PROTECTED]
>:Toto Capuccino wrote:> Hi all,>> Does anybody got popup notifications working ?
Works like a charm ! use this as your notify-command, or tune to yourneedsHowever I switched to jabber-notification (instant messaging) because ofthe rather 'aggressive' popups.# 'notify-by-smbclient' command definition
define command{command_namenotify-by-smbclientcommand_line/usr/bin/printf "%b" "* NAGIOS  *automatically generated POP-UP \n\n Notification Type:$NOTIFICATIONTYPE$\n\nHost: $HOSTNAME$ ($HOSTALIAS$) \nAddress:
$HOSTADDRESS$\nService: $SERVICEDESC$\nState:$SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditionalInfo:\n\n$SERVICEOUTPUT$" | /usr/bin/smbclient -M $CONTACTADDRESS1$ -I$CONTACTADDRESS2$}
where CONTACTADDRESS1 = the pc nameand CONTACTADDRESS2 = the pc's ip-addressGood luck !Frederik


Re: [Nagios-users] Active Directory Monitoring

2006-02-01 Thread Toto Capuccino
you got the check plgins working with nrpe on nagios exchange thet check replication. More info there http://www.hannes-schulz.de/?doc=proj&proj=nagios
Personnally i just had a quick look so i can t say much.2006/2/1, Kyle Tucker <[EMAIL PROTECTED]>:
>> I'm currently searching for a way to monitor an active directory using> nagios. The mainproblem I have is that I my active directory knowledge> tends to zero. I'm currently searching for docs where I can find atleast
> the ports which I have to monitor, but until now without success. I had> the idea to define all ports which I have to monitor (when I know which> ports are involved), and then I want to put them into a servicegroup
> called active directory. Is there anybody out there who has done> something like that in the past, or has a config snippet which could> lead me into the correct direction. A pointer to a document which
> describes or lists the ports I need would be enough. Thanks in advance!If I were to do this, I'd ask your AD admin for an account and someinfo from the schema that should always be there and write a plugin
script using the 'ldapsearch' command and checking to make sure youget back what's expected and exit the script accordingly. Here's asample command line query I used against AD at my last company toget people's names, email addresses, phone numbers and job title.
/bin/ldapsearch -h adhost.foo.bar -D [EMAIL PROTECTED] -w password -b \ou=BaseOU,dc=ds,dc=dom cn="*${1}*" cn mail telephonenumber title--- Kyle-
[EMAIL PROTECTED]   http://www.panix.com/~kylet Kyle-
[EMAIL PROTECTED]   http://www.panix.com/~kylet
This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?  Stop!  Download the new AJAX search engine that makessearching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642___
Nagios-users mailing listNagios-users@lists.sourceforge.nethttps://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] Considering nagmin

2006-02-01 Thread Toto Capuccino
Cheers,So the project may be stopped...well i was looking for an exciting tool to help configure and expand nagios functionnality.2006/2/1, Toby Kraft <
[EMAIL PROTECTED]>:Nagmin supports the config file format for nagios 1.x - I have used it
with nagios 1.2 with no problem.   You might check to see if 1.3introduced any new configuration settings but I doubt it.Nagmin uses MySql to store the nagios configuration that it uses to createthe various nagios config files.  Nagios does not need to be compiled or
run with mysql support.Going forward though, Nagmin does not support the Nagios 2.x format and isno longer being maintained last time I checked.Toby
[EMAIL PROTECTED] wrote on 02/01/2006 05:14:26 AM:> Hi all,>> I am interesting in Nagmin installation upon Nagios 1.3> Official doc talks about nagios v1.1, does anyone got nagmin working
> fine with nagios1.3 ?> Besides i am not using mysql support in nagios right now. Will i> loose a lot of nagmin's features ? Is it obviously possible to> recompile my nagios install to enable mysql support and integration ?
>> Thanks for your lights> .---This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___Nagios-users mailing listNagios-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] Considering nagmin

2006-02-01 Thread Toto Capuccino
Hi all,I am interesting in Nagmin installation upon Nagios 1.3Official doc talks about nagios v1.1, does anyone got nagmin working fine with nagios1.3 ?Besides i am not using mysql support in nagios right now. Will i loose a lot of nagmin's features ? Is it obviously possible to recompile my nagios install to enable mysql support and integration ?
Thanks for your lights.


Re: [Nagios-users] snmp read community

2006-01-31 Thread Toto Capuccino
Hi Mark,ok it works, resources.cfg was owned by apache...my mistake.BTW can you give security advice about ownership and permissions from /nagios dir to /etc and /cgi dir ?If yes i thank you very much.
Regards.2006/1/31, Marc Powell <[EMAIL PROTECTED]>:
> -Original Message-> From: [EMAIL PROTECTED] [mailto:nagios-users-> 
[EMAIL PROTECTED]] On Behalf Of Toto Capuccino> Sent: Tuesday, January 31, 2006 10:11 AM> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] snmp read community>> Hi all,>> concerned by security, i tried to insert the snmp community name forread> access inside resources.cfg (with permissions 600 on it) in macro
> [EMAIL PROTECTED]> It didn't work at all, now all nagios is RED sending alerts. Although,It> is said in resource.cfg that USER3 is for storing some usernames and> passwords (hidden from the CGIs)
> (hidden from the CGIs) maybe that's where the issue began>> But it's a nightmare everything's RED even the check_ping,> check_host_alive. Can you help please !!That should work. What's the status information (error) that you're
seeing? The $USER3$ line in resource.cfg isn't commented out, is it? Isresource.cfg owned by the user nagios runs as? Did you include it as aresource_file in nagios.cfg?--Marc---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?  Stop!  Download the new AJAX search engine that makessearching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642___
Nagios-users mailing listNagios-users@lists.sourceforge.nethttps://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] snmp read community

2006-01-31 Thread Toto Capuccino
Hi all,concerned by security, i tried to insert the snmp community name for read access inside resources.cfg (with permissions 600 on it) in macro [EMAIL PROTECTED]It didn't work at all, now all nagios is RED sending alerts. Although, It is said in 
resource.cfg that USER3 is for storing some usernames and passwords (hidden from the CGIs)(hidden from the CGIs) maybe that's where the issue began
Actually what i did is to use this macro inside my checks as follows :In checkcommands.cfg  :# 'check_printerstatus' command definitondefine command{    command_name    check_printerstatus
    command_line    $USER1$/check_snmp -H $ARG1$ -o $ARG2$ -s $ARG3$ -C $USER3$    }-C stands for Community-H hostname-o snmp OID-s string
In services.cfg :check_command   check_printerstatus!10.2.20.20!iso.3.6.1.2.1.43.16.5.1.2.1.1!'"Ready - Select Features to scan your job."'
But it's a nightmare everything's RED even the check_ping, check_host_alive. Can you help please !!


[Nagios-users] popup

2006-01-31 Thread Toto Capuccino
Hi all,Does anybody got popup notifications working ? 


Re: [Nagios-users] Graphing values from nagios

2006-01-31 Thread Toto Capuccino
Hi Steve,Do u know where i can get some info on how to use mrtg-pnsclient ?2006/1/30, Steve Shipway <
[EMAIL PROTECTED]>:






We 
use MRTG to graph everything (completely separately from Nagios, although 
there are weblinks between each object pages).  You can use the 
mrtg-pnsclient and mrtg-nrpe utilities to query the pnsclient and nrpe agents 
and extract numbers in MRTG format.
 
Steve





Re: [Nagios-users] Graphing values from nagios

2006-01-29 Thread Toto Capuccino
On Nagios 1.3Well, i put the  right location of nagiosgraph.conf both in show.cgi and insert.pl.My hosts.cfg has  proceess_perf_data 1nagios.cfg has
 process_performance_data=1 and service_perfdata_command=process-service-perfdata
I have searched for a perfdata.log file but i dont have one.
I put debug mode to 5 and when i simply run insert.pl i dont get any ouptut.Here's my map file :# Service type: ping#   output:PING OK - Packet loss = 0%, RTA = 0.00 m/output:PING.*?(\d+)%.+?([.\d]+)\sms/
and push @s, [ ping,   [ losspct, GAUGE, $1  ],   [ rta, GAUGE, $2/1000 ] ];# Service type: unix-disk#   ouput:DISK OK - free space: / 12372 mB (77% inode=96%): /raid 882442 mB (88% inode=91%):
#   perfdata: /=12372mB;14417;15698;96;16019 /raid=882441mB;999780;999780;91;999780/output:DISK/ and do {  my @_pct = /: (\/.*?) .*?(\d+)% inode=(\d+)%/g;  while ( my($_d,$_b,$_i) = splice @_pct,0,3 ) {
    my @_s;    /perfdata:.*$_d=(\d+)\w*?;(\d+);(\d+);(\d+);(\d+)/;    push @s, [ $_d,   [ free, GAUGE, $1*1024**2  ],   [ user, GAUGE, $2*1024**2  ],   [ root, GAUGE, $3*1024**2  ],
   [ max,  GAUGE, $5*1024**2  ],   [ blockpct, GAUGE, $_b ],   [ inodepct, GAUGE, $_i ] ];  }};# Service type: unix-dns#   output:DNS OK - 0.008 seconds response time (
test.test.1M IN A192.169.0.47)#   perfdata:time=8260us;;;0/output:DNS.*?([.0-9]+) sec/and push @s, [ dns,   [ response,  GAUGE, $1 ] ];# Service type: unix-load#   output: OK - load average: 
0.66, 0.70, 0.73#   perfdata:load1=0;15;30;0 load5=0;10;25;0 load15=0;5;20;0/output:CPU Load ([.0-9]+) (10 min average) ([.0-9]+) (60 min average) ([.0-9]+) (1440 min average) /and push @s, [ load,   [ avg1min,  GAUGE, $1 ],
   [ avg10min,  GAUGE, $2 ],   [ avg60min, GAUGE, $3 ] ];# Service type: unix-smtp#   output:SMTP OK - 0.187 sec. response time/output:SMTP.*?([-.0-9]+) sec/and push @s, [ smtp,
   [ response, GAUGE, $1 ] ];and here is the output in nagios web interface for ping--> 
PING OK - Packet loss = 0%, RTA = 1.09 ms for dns --> DNS OK: 0.240 seconds response time www.yahoo.com returns
68.142.226.46,68.142.226.50,68.142.226.54,68.142.226.55,
68.142.226.34,68.142.226.37,68.142.226.42,68.142.226.43for CPU-Load-->  CPU Load 0% (10 min average) 0% (60 min average) 1% (1440 min average)  
nagiosgraph.log gives Sun Jan 29 18:47:21 2006 INSERT debug: Config logfile:/usr/local/nagios/nagiosgraph/nagiosgraph.logSun Jan 29 18:47:21 2006 INSERT debug: Config rrddir:/usr/local/nagios/nagiosgraph/rrd
Sun Jan 29 18:47:21 2006 INSERT debug: Config mapfile:/usr/local/nagios/nagiosgraph/mapSun Jan 29 18:47:21 2006 INSERT debug: Config rrdtool:/usr/bin/rrdtoolSun Jan 29 18:47:21 2006 INSERT debug: perfdata: 1138556838\tnlamssv01\tCpu-load\tCPU Load 0% (10 min average) 0% (60 min average) 0% (1440 min average)\t   10 min avg Load=0%;80;95;0;100 60 min avg Load=0%;80;95;0;100 1440 min avg Load=0%;80;95;0;100
Sun Jan 29 18:47:21 2006 INSERT info: Input lastcheck:1138556838\tnlamssv01\tCpu-load\tCPU Load 0% (10 min average) 0% (60 min average) 0% (1440 min average)\t   10 min avg Load=0%;80;95;0;100 60 min avg Load=0%;80;95;0;100 1440 min avg Load=0%;80;95;0;100
Sun Jan 29 18:47:21 2006 INSERT info: Input hostname:Sun Jan 29 18:47:21 2006 INSERT info: Input perfdata:Sun Jan 29 18:47:21 2006 INSERT info: Input servicedescr:Sun Jan 29 18:47:21 2006 INSERT info: Input output:
Sun Jan 29 18:47:21 2006 INSERT debug: Config logfile:/usr/local/nagios/nagiosgraph/nagiosgraph.logSun Jan 29 18:47:21 2006 INSERT debug: Config rrddir:/usr/local/nagios/nagiosgraph/rrdSun Jan 29 18:47:21 2006 INSERT debug: Config mapfile:/usr/local/nagios/nagiosgraph/map
Sun Jan 29 18:47:21 2006 INSERT debug: Config rrdtool:/usr/bin/rrdtoolSun Jan 29 18:47:21 2006 INSERT debug: perfdata: 1138556834\tfrparsv03\tPING\tPING OK - Packet loss = 0%, RTA = 166.40 ms\tSun Jan 29 18:47:21 2006 INSERT info: Input lastcheck:1138556834\tfrparsv03\tPING\tPING OK - Packet loss = 0%, RTA = 
166.40 ms\tSun Jan 29 18:47:21 2006 INSERT info: Input hostname:Sun Jan 29 18:47:21 2006 INSERT info: Input perfdata:Sun Jan 29 18:47:21 2006 INSERT info: Input servicedescr:Sun Jan 29 18:47:21 2006 INSERT info: Input output:
Sun Jan 29 18:47:21 2006 INSERT debug: Config logfile:/usr/local/nagios/nagiosgraph/nagiosgraph.logSun Jan 29 18:47:21 2006 INSERT debug: Config rrddir:/usr/local/nagios/nagiosgraph/rrdSun Jan 29 18:47:21 2006 INSERT debug: Config mapfile:/usr/local/nagios/nagiosgraph/map
Sun Jan 29 18:47:21 2006 INSERT debug: Config rrdtool:/usr/bin/rrdtoolSun Jan 29 18:47:21 2006 INSERT debug: perfdata: 1138556840\tnlamssv01\tFREE SPACE D\tD:\ - total: 123.24 Gb - used: 80.73 Gb (66%) - free 42.51
 Gb (34%)\t D:\ Used Space=80.73Gb;110.92;117.08;0.00;123.24Sun Jan 29 18:47:21 2006 INSERT info: Input lastcheck:1138556840\tnlamssv01\tFREE SPACE D\tD:\ - total: 123.24 Gb - used: 80.73 G

Re: [Nagios-users] Graphing values from nagios

2006-01-28 Thread Toto Capuccino
I try to graph the ping command :the nagiosgraph.log gives:Sat Jan 28 14:48:37 2006 CGI debug: Config rrdtool:/usr/bin/rrdtoolSat Jan 28 14:48:37 2006 CGI debug: @db=Sat Jan 28 14:48:37 2006 CGI info: Listing frparsv03_PING db files in /usr/local/nagios/nagiosgraph/rrd:
Sat Jan 28 14:48:37 2006 CGI info: System /usr/bin/rrdtool graph - -a PNG --start -3456the map file contains :# Service type: ping#   output:PING OK - Packet loss = 0%, RTA = 0.00 
m/output:PING.*?(\d+)%.+?([.\d]+)\sms/and push @s, [ ping,   [ losspct, GAUGE, $1  ],   [ rta, GAUGE, $2/1000 ] ];and the ouput of the check_ping gives :
check_ping -H 10.1.1.5 -w 3000.0,80% -c 5000.0,100% -p 1PING OK - Packet loss = 0%, RTA = 0.42 msi see that the rrdtool get no values, so there should be at least an erro in the map file, but i am not a perl coder. The service  type uses RTA = 
0.00 m and my ouput uses  ms instead of just m ...maybe it is one of the reason i get broken links in the http page and no rrd files created.Can you give a hand, anyone ? Thank you. 
2006/1/28, Toto Capuccino <[EMAIL PROTECTED]>:
i had a look and it fits to install from nagios 2 at leat but i am running version 1.3. Anyone got nagiosgraph running under nagios1.3?2006/1/27, Todd Barbera <


[EMAIL PROTECTED]>:


















http://cvs.sourceforge.net/viewcvs.py/*checkout*/nagiosgraph/nagiosgraph/INSTALL

 

Check out this install link. I believe you
are missing some entries in nagios.cfg (assuming you are using nagiosgraph and
not Nagiosgrapher). 

 

Todd

 



-Original Message-
From: [EMAIL PROTECTED]

[mailto:[EMAIL PROTECTED]] On Behalf Of 
Toto Capuccino
Sent: Friday, January
 27, 2006 12:01 PM



To:
nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users]
Graphing values from nagios

 

i didnt get nagiosgraph working, maybe you can help.
I followed the INSTALL paper.


 I got nagiosgraph.conf, map, insert.pl and
 show.cgi in /usr/local/nagios/nagiosgraph/



 In nagios.cfg
 i set:


 process_performance_data=1
 service_perfdata_command=process-service-perfdata


 In misccommands.cfg:
 
  define command {
    command_name 
 process-service-perfdata 
    command_line 
 /usr/local/nagios/nagiosgraph/insert.pl
 "$LASTCHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$OUTPUT$\t$PERFDATA$"
  }



 an icon in .../share/images/logos/
 in /usr/local/nagios/etc/serviceextinfo.cfg 
 
    Most services can be graphed with no particular configuration
 like this:
 
  define serviceextinfo {
    service_description 
 serviceblabla
    host_name  
 server01,server02
   
 notes_url  
 /nagiosgraph/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$ 
   
 icon_image  graph.gif
    icon_image_alt  View graphs
  }



 ScriptAlias
 /nagiosgraph/ /usr/local/nagios/nagiosgraph/ in apache2.conf. The result i
 get is simply nothing. What did i forgot ? What do i have to put in
 nagios.cfg to link to serviceextinfo.cfg ? I put
 cfg_file=/usr/local/nagios/etc/serviceextinfo.cfg without success. Do i
 have to put something in services.cfg? Thanks











Have you installed a graphing add-on? nagiosgraph works fairly
well. You can pretty much graph anything so long as you have a grasp of Perl. 

 

Todd



 



-Original
Message-
From: [EMAIL PROTECTED]

[mailto:[EMAIL PROTECTED]]
On Behalf Of Toto Capuccino
Sent: Friday, January
 27, 2006 10:56 AM



To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Graphing
values from nagios

 

Hi,

Can someone show me the way to success ? I want to graph the values i get from
nsclient check-nt -v USEDDISKSPACE on servers.  

Is that possible ? How can i retrieve values monitored ?

Thanks for thoughts, help, lessons. 











 















Re: [Nagios-users] Graphing values from nagios

2006-01-27 Thread Toto Capuccino
i had a look and it fits to install from nagios 2 at leat but i am running version 1.3. Anyone got nagiosgraph running under nagios1.3?2006/1/27, Todd Barbera <

[EMAIL PROTECTED]>:

















http://cvs.sourceforge.net/viewcvs.py/*checkout*/nagiosgraph/nagiosgraph/INSTALL

 

Check out this install link. I believe you
are missing some entries in nagios.cfg (assuming you are using nagiosgraph and
not Nagiosgrapher). 

 

Todd

 



-Original Message-
From: [EMAIL PROTECTED]

[mailto:[EMAIL PROTECTED]] On Behalf Of 
Toto Capuccino
Sent: Friday, January
 27, 2006 12:01 PM


To:
nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users]
Graphing values from nagios

 

i didnt get nagiosgraph working, maybe you can help.
I followed the INSTALL paper.


 I got nagiosgraph.conf, map, insert.pl and
 show.cgi in /usr/local/nagios/nagiosgraph/



 In nagios.cfg
 i set:


 process_performance_data=1
 service_perfdata_command=process-service-perfdata


 In misccommands.cfg:
 
  define command {
    command_name 
 process-service-perfdata 
    command_line 
 /usr/local/nagios/nagiosgraph/insert.pl
 "$LASTCHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$OUTPUT$\t$PERFDATA$"
  }



 an icon in .../share/images/logos/
 in /usr/local/nagios/etc/serviceextinfo.cfg 
 
    Most services can be graphed with no particular configuration
 like this:
 
  define serviceextinfo {
    service_description 
 serviceblabla
    host_name  
 server01,server02
   
 notes_url  
 /nagiosgraph/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$ 
   
 icon_image  graph.gif
    icon_image_alt  View graphs
  }



 ScriptAlias
 /nagiosgraph/ /usr/local/nagios/nagiosgraph/ in apache2.conf. The result i
 get is simply nothing. What did i forgot ? What do i have to put in
 nagios.cfg to link to serviceextinfo.cfg ? I put
 cfg_file=/usr/local/nagios/etc/serviceextinfo.cfg without success. Do i
 have to put something in services.cfg? Thanks










Have you installed a graphing add-on? nagiosgraph works fairly
well. You can pretty much graph anything so long as you have a grasp of Perl. 

 

Todd



 



-Original
Message-
From: [EMAIL PROTECTED]

[mailto:[EMAIL PROTECTED]]
On Behalf Of Toto Capuccino
Sent: Friday, January
 27, 2006 10:56 AM


To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Graphing
values from nagios

 

Hi,

Can someone show me the way to success ? I want to graph the values i get from
nsclient check-nt -v USEDDISKSPACE on servers.  

Is that possible ? How can i retrieve values monitored ?

Thanks for thoughts, help, lessons. 











 













Re: [Nagios-users] Graphing values from nagios

2006-01-27 Thread Toto Capuccino
yes i have :linuxserver:/usr/local/nagios/etc# whereis rrdtoolrrdtool: /usr/bin/rrdtool /usr/local/rrdtool /usr/share/rrdtool /usr/share/man/man1/rrdtool.1.gzmy nagiosgraph.conf contains :# Location of debug log file
logfile = /var/log/nagiosgraph.log# Directory to store rrd database filesrrddir =  /usr/local/nagios/nagiosgraph/rrd# File containing regular expressions to identify service and perf datamapfile = /usr/local/nagios/nagiosgraph/map
# Path to rrdtool binaryrrdtool = /usr/bin/rrdtoolLog file -->  ls -ail /var/log/nagiosgraph.log917658 -rwxrwxrwx  1 root root 0 2006-01-27 17:22 /var/log/nagiosgraph.log
Rrd directory -->  ls -ail /usr/local/nagios/nagiosgraph/rrd/total 81327137 drwxrwxrwx  2 root root 4096 2006-01-27 17:20 .1327116 drwxr-xr-x  3 root root 4096 2006-01-27 18:15 ..
2006/1/27, Todd Barbera <[EMAIL PROTECTED]>:
















Did you install RRD? 

 



-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of 
Toto Capuccino
Sent: Friday, January
 27, 2006 12:01 PM

To:
nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users]
Graphing values from nagios

 

i didnt get nagiosgraph working, maybe you can help.
I followed the INSTALL paper.


 I got nagiosgraph.conf, map, insert.pl and
 show.cgi in /usr/local/nagios/nagiosgraph/



 In nagios.cfg
 i set:


 process_performance_data=1
 service_perfdata_command=process-service-perfdata


 In misccommands.cfg:
 
  define command {
    command_name 
 process-service-perfdata 
    command_line 
 /usr/local/nagios/nagiosgraph/insert.pl
 "$LASTCHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$OUTPUT$\t$PERFDATA$"
  }



 an icon in .../share/images/logos/
 in /usr/local/nagios/etc/serviceextinfo.cfg 
 
    Most services can be graphed with no particular configuration
 like this:
 
  define serviceextinfo {
    service_description 
 serviceblabla
    host_name  
 server01,server02
   
 notes_url  
 /nagiosgraph/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$ 
   
 icon_image  graph.gif
    icon_image_alt  View graphs
  }



 ScriptAlias
 /nagiosgraph/ /usr/local/nagios/nagiosgraph/ in apache2.conf. The result i
 get is simply nothing. What did i forgot ? What do i have to put in
 nagios.cfg to link to serviceextinfo.cfg ? I put
 cfg_file=/usr/local/nagios/etc/serviceextinfo.cfg without success. Do i
 have to put something in services.cfg? Thanks









Have you installed a graphing add-on? nagiosgraph works fairly
well. You can pretty much graph anything so long as you have a grasp of Perl. 

 

Todd



 



-Original
Message-
From: [EMAIL PROTECTED]

[mailto:[EMAIL PROTECTED]]
On Behalf Of Toto Capuccino
Sent: Friday, January
 27, 2006 10:56 AM

To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Graphing
values from nagios

 

Hi,

Can someone show me the way to success ? I want to graph the values i get from
nsclient check-nt -v USEDDISKSPACE on servers.  

Is that possible ? How can i retrieve values monitored ?

Thanks for thoughts, help, lessons. 











 












Re: [Nagios-users] How to define a service for a host_group?

2006-01-27 Thread Toto Capuccino
but that's another story mate ;)2006/1/27, Don Lewis <[EMAIL PROTECTED]>:
Of course then if you wanted a certain host not to have that servicemonitored you would have to remove it from the group which in turn wouldremove it from anything else that is being monitored on it..;)-Don
On Fri, 2006-01-27 at 11:33 +0100, Toto Capuccino wrote:> yes there is you create a houstgroup in hostgroups.cfg and then put> the hostgroup name in services.cfg>> define service{> 
> hostgroup_name   v240_servers> ..> }>>> 2006/1/27, Alberto <[EMAIL PROTECTED]>:> Is there any way to define services for a hostgroup something
> like...>> define service{> > host_name   v240_servers> ..> }>> and not having to specify all hosts everytime I define a new
> service>> define service{> host_name   node1,node2,node4,...> }>>


Re: [Nagios-users] Graphing values from nagios

2006-01-27 Thread Toto Capuccino
i didnt get nagiosgraph working, maybe you can help.I followed the INSTALL paper.I got nagiosgraph.conf, map, insert.pl and show.cgi in /usr/local/nagios/nagiosgraph/In 

nagios.cfg i set: process_performance_data=1 service_perfdata_command=process-service-perfdataIn misccommands.cfg: define command {   command_name  process-service-perfdata
   command_line  /usr/local/nagios/nagiosgraph/insert.pl "$LASTCHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$OUTPUT$\t$PERFDATA$" }an icon in .../share/images/logos/in /usr/local/nagios/etc/serviceextinfo.cfg
   Most services can be graphed with no particular configuration like this: define serviceextinfo {   service_description  serviceblabla   host_name   server01,server02   notes_url   /nagiosgraph/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$
   icon_image  graph.gif   icon_image_alt  View graphs }ScriptAlias /nagiosgraph/ /usr/local/nagios/nagiosgraph/ in apache2.conf. The result i get is simply nothing. What did i forgot ? What do i have to put in 
nagios.cfg to link to serviceextinfo.cfg ? I put cfg_file=/usr/local/nagios/etc/serviceextinfo.cfg without success. Do i have to put something in services.cfg? Thanks

















Have you installed a graphing add-on? nagiosgraph
works fairly well. You can pretty much graph anything so long as you have a
grasp of Perl. 

 

Todd

 



-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of 
Toto Capuccino
Sent: Friday, January 27, 2006
10:56 AM
To:
nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Graphing
values from nagios

 

Hi,

Can someone show me the way to success ? I want to graph the values i get from
nsclient check-nt -v USEDDISKSPACE on servers.  

Is that possible ? How can i retrieve values monitored ?

Thanks for thoughts, help, lessons. 














[Nagios-users] Graphing values from nagios

2006-01-27 Thread Toto Capuccino
Hi,Can someone show me the way to success ? I want to graph the values i get from nsclient check-nt -v USEDDISKSPACE on servers.  Is that possible ? How can i retrieve values monitored ?Thanks for thoughts, help, lessons.



Re: R: R: [Nagios-users] email notification problem

2006-01-27 Thread Toto Capuccino
You should use the variables to get more info :# 'host-notify-by-email' command definitiondefine command{    command_name    host-notify-by-email    command_line    /usr/bin/printf "%b" "* Nagios  *\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $OUTPUT$\n\nDate/Time: $DATETIME$\n" | /usr/bin/mail -s 
"Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$    }2006/1/27, Nicola Agnelli <
[EMAIL PROTECTED]>:Thank you for answer,so the correct command should be:
define command{> command_namenotify-by-email> command_line/usr/bin/printf "%b" "* Nagios> *\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
> $SERVICEDESC$\nHost: $HOSTALIAS$\nAdd$ | mail -s Notification> }Anddefine command{> command_namehost-notify-by-email> command_line/usr/bin/printf "%b" "* Nagios
> *\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState:> $HOSTSTATE$\nAddress: $$ | mail -s Notification> }?Sorry for my questions but I'm new to nagios ..
Nicola-Messaggio originale-Da: [EMAIL PROTECTED][mailto:
[EMAIL PROTECTED]] Per conto di Arno LehmannInviato: venerdì 27 gennaio 2006 10.50A: nagios-users@lists.sourceforge.netOggetto: Re: R: [Nagios-users] email notification problem
Hello,On 1/27/2006 10:23 AM, Nicola Agnelli wrote:> Hello all,> i've the same problem, i've installed nagios 2.0 and all works good, butthe> email notifications can't be send..
The first step could be to modify your command_line to actually send amessage. Usually, you use printf to create and format the output ANDTHEN pipe that output to your mail program.Like 'printf "somethning" | mail -s Notification ...
Arno> my command is the default command:>> define command{> command_namenotify-by-email> command_line/usr/bin/printf "%b" "* Nagios
> *\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:> $SERVICEDESC$\nHost: $HOSTALIAS$\nAdd$> }> And:> define command{> command_namehost-notify-by-email
> command_line/usr/bin/printf "%b" "* Nagios> *\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState:> $HOSTSTATE$\nAddress: $$> }>
> But I can't receive notifications mails..> Here are the nagios.log:>> > [1138352948] HOST ALERT: w2k3-server;DOWN;SOFT;9;CRITICAL - HostUnreachable> (
10.0.0.222)> [1138352951] HOST ALERT: w2k3-server;DOWN;HARD;10;CRITICAL - Host> Unreachable (10.0.0.222)> [1138352951] HOST NOTIFICATION:> nagios-admin;w2k3-server;DOWN;host-notify-by-email;CRITICAL - Host
> Unreachable (10.0.0.222)> >> How can I resolve ?>> Tnx all>> nicola>>> -Messaggio originale-> Da: 
[EMAIL PROTECTED]> [mailto:[EMAIL PROTECTED]
] Per conto di ArnoLehmann> Inviato: venerdì 27 gennaio 2006 10.02> A: nagios-users@lists.sourceforge.net> Oggetto: Re: [Nagios-users] email notification problem
>> Hello,>> On 1/27/2006 3:44 AM, test 123king wrote:>>>I have set up nagios nagios-1.3-14.fc4 in my FC4 server, the only>>problem now is the email notification can't be send out.
>>The original notify-by-email in misccommands.cfg file is like below:>># 'notify-by-email' command definition>>define command{>>command_name notify-by-email>>command_line /usr/bin/printf "%b" "* Nagios *nnNotification
>>Type: $NOTIFICATIONTYPE$nnService: $SERVIC>>EDESC$nHost: $HOSTALIAS$nAddress: $HOSTADDRESS$nState:>>$SERVICESTATE$nnDate/Time: $DATETIME$nnAdditional Info:n>>n$OUTPUT$" | -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$
>>is $SERVICESTATE$ **" $CONTACTEMAIL$>>}I changed it to :>># 'notify-by-email' command definition>>define command{>>command_name notify-by-email
>>command_line /bin/mail "%b" "* Nagios *nnNotification Type:>>$NOTIFICATIONTYPE$nnService: $SERVIC>>EDESC$nHost: $HOSTALIAS$nAddress: $HOSTADDRESS$nState:>>$SERVICESTATE$nnDate/Time: $DATETIME$nnAddi tional Info:n
>>n$OUTPUT$" | -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$>>is $SERVICESTATE$ **" $CONTACTEMAIL$>>}Basically I replaced /usr/bin/printf with /bin/mail.
>>> And you don't have a valid command line left: after the pipe, there> should be a program to read the output from mail. And your invocation of> mail looks a little... non-standard to me.
In the /var/log/messages log I see the following error:>>Warning: Attempting to execute the command "/bin/mail "%b" "* Nagios>>*nnNotification Type: RECOVERYnHost: Server-1nState: UPnAddress:
>>10.100.1.79nInfo: PING OK - Packet loss = 0%, RTA = 0.76 msnnDate/Time:>>Thu Jan 26 17:48:21 EST 2006n" | -s "Host UP alert for Server-OTM!">>
[EMAIL PROTECTED] [EMAIL PROTECTED]>" resulted in a return code of>>127. Make sure the scri//pt or binary you are trying to execute actually>>exists...
>>> It's all there: the output from mail is piped to '-s' which, most> probably, is not installed on your system as an executable program in> the path.Any kin

Re: R: R: R: [Nagios-users] email notification problem

2006-01-27 Thread Toto Capuccino
that's it if your mail program is /usr/bin/mail2006/1/27, Nicola Agnelli <[EMAIL PROTECTED]>:















Thank you very mach,

so for "notify-by-email"
I sould add

 

|  /usr/bin/mail -s
"Service $HOSTALIAS$ alert for $SERVICEDESC$!" $CONTACTEMAIL$

 

Right ?

 

Tnx

 

 









Da: Toto Capuccino
[mailto:[EMAIL PROTECTED]] 
Inviato: venerdì 27 gennaio 2006
11.23
A: Nicola Agnelli
Cc: Arno Lehmann; nagios-users@lists.sourceforge.net

Oggetto: Re: R: R: [Nagios-users]
email notification problem



 

You should use the
variables to get more info :
# 'host-notify-by-email' command definition
define command{
    command_name   
host-notify-by-email
    command_line   
/usr/bin/printf "%b" "* Nagios  *\n\nNotification
Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress:
$HOSTADDRESS$\nInfo: $OUTPUT$\n\nDate/Time: $DATETIME$\n" | /usr/bin/mail
-s "Host $HOSTSTATE$ alert for
$HOSTNAME$!" $CONTACTEMAIL$
    }





2006/1/27, Nicola Agnelli <
 [EMAIL PROTECTED]>:

Thank you for answer,
so the correct command should be: 

define command{
>
command_namenotify-by-email
>
command_line/usr/bin/printf "%b" "*
Nagios
> *\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
> $SERVICEDESC$\nHost: $HOSTALIAS$\nAdd$ | mail -s Notification
> }

And

define command{
>
command_namehost-notify-by-email
>
command_line/usr/bin/printf "%b" "*
Nagios 
> *\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState:
> $HOSTSTATE$\nAddress: $$ | mail -s Notification
> }


?

Sorry for my questions but I'm new to nagios .. 

Nicola


-Messaggio originale-
Da: [EMAIL PROTECTED]
[mailto:
[EMAIL PROTECTED]] Per conto di Arno Lehmann
Inviato: venerdì 27 gennaio 2006 10.50
A: nagios-users@lists.sourceforge.net
Oggetto: Re: R: [Nagios-users] email notification problem 

Hello,

On 1/27/2006 10:23 AM, Nicola
 Agnelli wrote:
> Hello all,
> i've the same problem, i've installed nagios 2.0 and all works good, but
the
> email notifications can't be send..

The first step could be to modify your command_line to actually send a
message. Usually, you use printf to create and format the output AND
THEN pipe that output to your mail program.

Like 'printf "somethning" | mail -s Notification ... 

Arno

> my command is the default command:
>
> define command{
>
command_namenotify-by-email
>
command_line/usr/bin/printf "%b" "*
Nagios 
> *\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
> $SERVICEDESC$\nHost: $HOSTALIAS$\nAdd$
> }
> And:
> define command{
>
command_namehost-notify-by-email 
>
command_line/usr/bin/printf "%b" "*
Nagios
> *\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState:
> $HOSTSTATE$\nAddress: $$
> }
> 
> But I can't receive notifications mails..
> Here are the nagios.log:
>
> 
> [1138352948] HOST ALERT: w2k3-server;DOWN;SOFT;9;CRITICAL - Host
Unreachable
> ( 10.0.0.222)
> [1138352951] HOST ALERT: w2k3-server;DOWN;HARD;10;CRITICAL - Host
> Unreachable (10.0.0.222)
> [1138352951] HOST NOTIFICATION:
> nagios-admin;w2k3-server;DOWN;host-notify-by-email;CRITICAL - Host 
> Unreachable (10.0.0.222)
> 
>
> How can I resolve ?
>
> Tnx all
>
> nicola
>
>
> -Messaggio originale-
> Da: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
] Per conto di Arno
Lehmann
> Inviato: venerdì 27 gennaio 2006 10.02
> A: nagios-users@lists.sourceforge.net
> Oggetto: Re: [Nagios-users] email notification problem 
>
> Hello,
>
> On 1/27/2006 3:44 AM, test 123king wrote:
>
>>I have set up nagios nagios-1.3-14.fc4 in my FC4 server, the only
>>problem now is the email notification can't be send out. 
>>The original notify-by-email in misccommands.cfg file is like below:
>># 'notify-by-email' command definition
>>define command{
>>command_name notify-by-email
>>command_line /usr/bin/printf "%b" "* Nagios
*nnNotification 
>>Type: $NOTIFICATIONTYPE$nnService: $SERVIC
>>EDESC$nHost: $HOSTALIAS$nAddress: $HOSTADDRESS$nState:
>>$SERVICESTATE$nnDate/Time: $DATETIME$nnAdditional Info:n
>>n$OUTPUT$" | -s "** $NOTIFICATIONTYPE$ alert -
$HOSTALIAS$/$SERVICEDESC$ 
>>is $SERVICESTATE$ **" $CONTACTEMAIL$
>>}
>>
>>I changed it to :
>># 'notify-by-email' command definition
>>define command{
>>command_name notify-by-email 
>>command_line /bin/mail "%b" "* Nagios
*nnNotification Ty

Re: [Nagios-users] How to define a service for a host_group?

2006-01-27 Thread Toto Capuccino
yes there is you create a houstgroup in hostgroups.cfg and then put the hostgroup name in services.cfg
define service{

hostgroup_name   v240_servers
..
}
2006/1/27, Alberto <[EMAIL PROTECTED]>:
Is there any way to define services for a hostgroup something like...

define service{

host_name   v240_servers
..
}

and not having to specify all hosts everytime I define a new service

define service{
host_name   node1,node2,node4,...
}





Re: [Nagios-users] Nagios home page

2006-01-26 Thread Toto Capuccino
thanks works great2006/1/26, Arno Lehmann <[EMAIL PROTECTED]>:
Hello,On 1/26/2006 6:33 PM, Don Lewis wrote:> You could do this a few different ways, either use a HTML redirect or> put in a rewrite rule definition into the webserver conf.>> -Don
>> On Thu, 2006-01-26 at 18:18 +0100, Toto Capuccino wrote:>>>Hi,>>Can you tell me how to do when browsing http://server/nagios to>>display directly the tactical overview instead of the page where you
>>read :>>>>New Installations:...etc. pp.The simplest solution would be to modify Nagios' index.html file - theone with the frameset - to load tac.cgi as the default, initial,
starting or whatever you call it frame in the main frame.What now looks like this:> > 
> > > would then have tac.cgi
 instead of mani.html.Arno>>>>>>If you have just installed Nagios®, read the documentation for>>instructions on getting everything up and running.>>>>Click here for a brief overview of new features that have been added
>>in this release.>>>>For More Information:>>>>>>>>Visit the Nagios homepage at http://www.nagios.org for information on
>>bug fixes, upgrades, support, etc.>>>>>>>>Thank you>>>>>>>>>>> ---
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files> for problems?  Stop!  Download the new AJAX search engine that makes> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642> ___
> 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>--IT-Service Lehmann
[EMAIL PROTECTED]Arno Lehmann  http://www.its-lehmann.de---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?  Stop!  Download the new AJAX search engine that makessearching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642___
Nagios-users mailing listNagios-users@lists.sourceforge.nethttps://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] Nagios home page

2006-01-26 Thread Toto Capuccino
The solution given by Mark works well. Thank you for the tip!FRAME SRC="" NAME="main">2006/1/26, Marc Powell <
[EMAIL PROTECTED]>:> -Original Message-> From: 
[EMAIL PROTECTED] [mailto:nagios-users-> [EMAIL PROTECTED]] On Behalf Of Toto Capuccino> Sent: Thursday, January 26, 2006 11:18 AM
> To: nagios-users@lists.sourceforge.net> Subject: [Nagios-users] Nagios home page {Disarmed} {Fraud?}>> Hi,> Can you tell me how to do when browsing 
http://server/nagios todisplay> directly the tactical overview instead of the page where you read :Edit share/index.html. Change
To[maybesomethinghere] depends on how you set up the web interface. Itmost likely is '/nagios/' but not necessarily.
--Marc---This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642
___Nagios-users mailing listNagios-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] Notification script problems.. How do I debug

2006-01-26 Thread Toto Capuccino
What do your services.cfg file conrtain about enabling sms messages ?2006/1/26, Chad Osmond <[EMAIL PROTECTED]>:
Hi,I'm updating my notification to send SMS messages across the CanadianRogers network. I've found a WWW to SMS gateway that lets me sendmessages, but I need to find why my script is failing.My Notification script is as follows:
# 'notify-by-sms' command definitiondefine command{command_namenotify-by-smscommand_line/usr/lib/nagios/plugins/sms-msg.pl -m "Host'$HOSTALIAS$' is $HOSTSTATE$\nInfo: $OUTPUT$\nTime: $DATETIME$"
-p $CONTACTPAGER$}My Script:  /usr/lib/nagios/plugins/sms-msg.pl expects -m "message" -p901212  and then feeds that into a system(curl ); command. Icouldn't get LWP to work, so I used a system (curl); command.
If I copy the command line and fill in the values, it works fine. But ifI make a service go critical I don't receive notification, although mye-mail notification works..Any suggestions, or ideas?
---This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?  Stop!  Download the new AJAX search engine that makessearching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642___
Nagios-users mailing listNagios-users@lists.sourceforge.nethttps://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] Nagios home page

2006-01-26 Thread Toto Capuccino
Hi,Can you tell me how to do when browsing http://server/nagios to display directly the tactical overview
 instead of the page where you read :New Installations:

If you have just installed Nagios®, read the documentation for instructions on getting everything up and running.


Click here for a brief overview of new features that have been added in this release.






For More Information:

Visit the Nagios homepage at http://www.nagios.org for information on bug fixes, upgrades, support, etc.Thank you



Re: [Nagios-users] Nagios Grapher

2006-01-26 Thread Toto Capuccino
Plus i was talking about Nagios Grapher (from netways i think) not Nagiosgraph ;)2006/1/26, Toto Capuccino <[EMAIL PROTECTED]>:
Cheers, did you try it ? The install file told to put variables that are refused by nagios :service_perfdata_file=/var/spool/nagios/perfdata.logservice_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$
service_perfdata_file_mode=aservice_perfdata_file_processing_interval=30service_perfdata_file_processing_command=process-service-perfdata2006/1/26, Don Lewis <

[EMAIL PROTECTED]>:

http://nagiosgraph.sourceforge.net/On Thu, 2006-01-26 at 15:23 +0100, Toto Capuccino wrote:> Hi,>> where can i get Nagios Grapher ? The link in nagios exchange is empty> and i can't get it with google...
>> Thanks




Re: [Nagios-users] Nagios Grapher

2006-01-26 Thread Toto Capuccino
Cheers, did you try it ? The install file told to put variables that are refused by nagios :service_perfdata_file=/var/spool/nagios/perfdata.logservice_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$
service_perfdata_file_mode=aservice_perfdata_file_processing_interval=30service_perfdata_file_processing_command=process-service-perfdata2006/1/26, Don Lewis <
[EMAIL PROTECTED]>:
http://nagiosgraph.sourceforge.net/On Thu, 2006-01-26 at 15:23 +0100, Toto Capuccino wrote:> Hi,>> where can i get Nagios Grapher ? The link in nagios exchange is empty> and i can't get it with google...
>> Thanks


[Nagios-users] Nagios Grapher

2006-01-26 Thread Toto Capuccino
Hi,where can i get Nagios Grapher ? The link in nagios exchange is empty and i can't get it with google...Thanks


Re: [Nagios-users] Service detail

2006-01-25 Thread Toto Capuccino
oh yes for all this time i never had the idea to click on the arrows...It could be intersting to have host sorted per group in the Service detail page. Thanks2006/1/25, Marc Powell <
[EMAIL PROTECTED]>:> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-> 
[EMAIL PROTECTED]] On Behalf Of Toto Capuccino> Sent: Wednesday, January 25, 2006 8:28 AM> To: nagios-users@lists.sourceforge.net> Subject: [Nagios-users] Service detail
>> Hi,>> The hosts displayed on service detail page seem to be orderedrandomly. Is> there's a way to see them odered by group ?By default they're alphabetical by host name. You can click on the sort
arrows at the top of each column to sort them differently. To see themgrouped by hostgroup, use one of the Hostgroup links on the main menu(probably Hostgroup Grid).--Marc---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?  Stop!  Download the new AJAX search engine that makessearching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642___
Nagios-users mailing listNagios-users@lists.sourceforge.nethttps://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] Service detail

2006-01-25 Thread Toto Capuccino
Hi,The hosts displayed on service detail page seem to be ordered randomly. Is there's a way to see them odered by group ?thanks


Re: [Nagios-users] NSClient configuration

2006-01-25 Thread Toto Capuccino
Hi i use Nsclient to monitor disk space on hosts. I never had to install nothing else than the nsclient service.2006/1/25, Yogesh Hasabnis <[EMAIL PROTECTED]
>:Hi All,

I am trying to configure nagios for monitoring a few Win2000 servers.
As per the nagios faqs I was planning to use NSClient addon to achieve
this. The system requirements for NSClient as per the readme file
include a tool/package called SvCom components. But after searching on
the net I find that it is a commercial tool/package. So how can I
manage to use NSClient for monitoring of Windows servers ?   Or do
I have to compulsarily use SNMP option for this purpose ?

Kindly give suggestions.

Thanks In Advance

Yogesh






Re: [Nagios-users] check_dhcp not working

2006-01-24 Thread Toto Capuccino
When i write a remote server i mean a server that is not the nagios server. When i say that it is on the same subnet i made certainly a mistake as actually the nagios server get an address 
10.1.1.13 and the dhcp server i am trying to ping is 10.2.1.1. I think that the packets are sent through a cisco switch/router that routes the packets from net 
10.1.0.0 to 10.2.0.0 so that must be the reason of my problem. If dhcp works with broadcasting messages, the switch is not relaying those dhcp packets. I am right ? Is there's a way to bypass that ?
2006/1/24, Hugo van der Kooij <[EMAIL PROTECTED]>:
On Tue, 24 Jan 2006, Toto Capuccino wrote:> I want to run a check_dhcp on a remote server inside the same subnet but> never get a reply :This can not be true. Either the DHCP server is remote or in the same
subnet. But it can not be both. (Unless you got a L2 bridge in there.)Perhaps you ment to say something differently which I did not understand?> I also want to check dhcp on other subnets separed with cisco routers, is
> that possible?Sounds like a perfect place for DHCP relaying. But your nagios server mustbe in the same network as the other clients if you want a meaningfullresult.If it is not in the same network you may get a lease from the server while
the stations on the other network may not get one because your pool forthat network is exhausted.This is not a plugin limitation but actually how DHCP works.Hugo.--I hate duplicates. Just reply to the relevant mailinglist.
[EMAIL PROTECTED]http://hvdkooij.xs4all.nl/Don't meddle in the affairs of magicians,
for they are subtle and quick to anger.---This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___Nagios-users mailing listNagios-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



Fwd: [Nagios-users] check_dhcp not working

2006-01-24 Thread Toto Capuccino
-- Forwarded message --From: Toto Capuccino <[EMAIL PROTECTED]>Date: 24 janv. 2006 17:17
Subject: Re: [Nagios-users] check_dhcp not workingTo: "Sloane, Robert Raymond" <[EMAIL PROTECTED]>yep make is betterlinuxserver:/usr/local/nagios-1.3
/libexec/OssOp5/plugins.op5# ./plugins/check_dhcp -s 10.2.1.1DHCP problem: No DHCPOFFERs were received.

2006/1/24, Sloane, Robert Raymond <[EMAIL PROTECTED]>:

Did you run the ./configure script in the distribution?  Perhaps youshould use the make command rather than trying to compile the sourcedirectly.  That should set up the compiler options correctly.--Bob Sloane, University of Kansas Computer Center, Lawrence, KS, 66045
Email:[EMAIL PROTECTED] 
http://www.ku.edu/home/sloane Phone:(785)864-0444



Re: [Nagios-users] check_dhcp not working

2006-01-24 Thread Toto Capuccino
Hi I tried to compile the plugin check_ dhcp from op5 but unsuccesfully:linuxserver:/usr/local/nagios-1.3/libexec/OssOp5/plugins.op5/plugins# gcc -o check_dhcp check_dhcp.cIn file included from check_dhcp.c:40:
common.h:69:21: config.h: No such file or directorycommon.h:225:21: gettext.h: No such file or directoryIn file included from check_dhcp.c:41:netutils.h:38:20: config.h: No such file or directoryIn file included from 
netutils.h:39, from check_dhcp.c:41:utils.h:26: error: redefinition of `struct timeval'utils.h:39: error: syntax error before "timeout_alarm_handler"utils.h:39: warning: data definition has no type or storage class
utils.h:65: warning: `struct timezone' declared inside parameter listutils.h:65: warning: its scope is only this definition or declaration, which is probably not what you wantIn file included from check_dhcp.c:41:
netutils.h:43: error: syntax error before "socket_timeout_alarm_handler"netutils.h:43: warning: data definition has no type or storage classIn file included from check_dhcp.c:58:/usr/include/sys/time.h:73: error: conflicting types for `gettimeofday'
utils.h:65: error: previous declaration of `gettimeofday'In file included from check_dhcp.c:64:/usr/include/netdb.h:539: error: redefinition of `struct addrinfo'check_dhcp.c: In function `main':check_dhcp.c:250: error: `LC_ALL' undeclared (first use in this function)
check_dhcp.c:250: error: (Each undeclared identifier is reported only oncecheck_dhcp.c:250: error: for each function it appears in.)check_dhcp.c:251: error: `PACKAGE' undeclared (first use in this function)
check_dhcp.c:251: error: `LOCALEDIR' undeclared (first use in this function)check_dhcp.c:255: warning: passing arg 1 of `usage' makes pointer from integer without a castcheck_dhcp.c: In function `get_hardware_address':
check_dhcp.c:298: warning: passing arg 1 of `printf' makes pointer from integer without a castcheck_dhcp.c:307: warning: passing arg 1 of `printf' makes pointer from integer without a castcheck_dhcp.c:409: warning: passing arg 1 of `printf' makes pointer from integer without a cast
check_dhcp.c: In function `send_dhcp_discover':check_dhcp.c:494: warning: passing arg 1 of `printf' makes pointer from integer without a castcheck_dhcp.c: In function `get_dhcp_offer':check_dhcp.c:544: warning: passing arg 1 of `printf' makes pointer from integer without a cast
check_dhcp.c:548: warning: passing arg 1 of `printf' makes pointer from integer without a castcheck_dhcp.c:553: warning: passing arg 1 of `printf' makes pointer from integer without a castcheck_dhcp.c:562: warning: passing arg 1 of `printf' makes pointer from integer without a cast
check_dhcp.c:579: warning: passing arg 1 of `printf' makes pointer from integer without a castcheck_dhcp.c:596: warning: passing arg 1 of `printf' makes pointer from integer without a castcheck_dhcp.c:597: warning: passing arg 1 of `printf' makes pointer from integer without a cast
check_dhcp.c: In function `send_dhcp_packet':check_dhcp.c:613: warning: passing arg 1 of `printf' makes pointer from integer without a castcheck_dhcp.c: In function `receive_dhcp_packet':check_dhcp.c:646: warning: passing arg 1 of `printf' makes pointer from integer without a cast
check_dhcp.c:670: warning: passing arg 1 of `printf' makes pointer from integer without a castcheck_dhcp.c:672: warning: passing arg 1 of `printf' makes pointer from integer without a castcheck_dhcp.c: In function `create_dhcp_socket':
check_dhcp.c:701: warning: passing arg 1 of `printf' makes pointer from integer without a castcheck_dhcp.c:708: warning: passing arg 1 of `printf' makes pointer from integer without a castcheck_dhcp.c:714: warning: passing arg 1 of `printf' makes pointer from integer without a cast
check_dhcp.c:725: warning: passing arg 1 of `printf' makes pointer from integer without a castcheck_dhcp.c:736: warning: passing arg 1 of `printf' makes pointer from integer without a castcheck_dhcp.c: In function `add_requested_server':
check_dhcp.c:763: warning: passing arg 1 of `printf' makes pointer from integer without a castcheck_dhcp.c: In function `add_dhcp_offer':check_dhcp.c:822: warning: passing arg 1 of `printf' makes pointer from integer without a cast
check_dhcp.c:824: warning: passing arg 1 of `printf' makes pointer from integer without a castcheck_dhcp.c:826: warning: passing arg 1 of `printf' makes pointer from integer without a castcheck_dhcp.c:829: warning: passing arg 1 of `printf' makes pointer from integer without a cast
check_dhcp.c:831: warning: passing arg 1 of `printf' makes pointer from integer without a castcheck_dhcp.c:833: warning: passing arg 1 of `printf' makes pointer from integer without a castcheck_dhcp.c:849: warning: passing arg 1 of `printf' makes pointer from integer without a cast
check_dhcp.c:850: warning: passing arg 1 of `printf' makes pointer from integer without a castcheck_dhcp.c: In function `get_results':check_dhcp.c:931: warning: passing arg 1 of `printf' makes pointer from integer wi

[Nagios-users] check_dhcp not working

2006-01-24 Thread Toto Capuccino
Hello,I want to run a check_dhcp on a remote server inside the same subnet but never get a reply :/usr/local/nagios/libexec# ./check_dhcp -s 10.2.1.1DHCP problem: No DHCPOFFERs were received.
/usr/local/nagios/libexec#  ./check_dhcp -s 10.2.1.1 -r 10.2.10.98 -vDHCP socket: 3Hardware address: 000f20320a77DHCPDISCOVER to 
255.255.255.255 port 67DHCPDISCOVER XID: 845057729 (0x325E8EC1)DHCDISCOVER ciaddr:  0.0.0.0DHCDISCOVER yiaddr:  0.0.0.0DHCDISCOVER siaddr:  
0.0.0.0DHCDISCOVER giaddr:  0.0.0.0send_dhcp_packet result: 548No (more) data receivedResult=ERRORTotal responses seen on the wire: 0Valid responses for this machine: 0
DHCP problem: No DHCPOFFERs were received.I also want to check dhcp on other subnets separed with cisco routers, is that possible?Thank  you.


[Nagios-users] check_cluster missing

2006-01-23 Thread Toto Capuccino
Hi,I use /nagios-plugins-1.4.2 with nagios 1.3. i have compiled plugins and i can't find check_cluster(2)Thanks


Re: [Nagios-users] check_snmp

2006-01-23 Thread Toto Capuccino
no more lucklinuxserver:/usr/local/nagios/etc# ../libexec/check_snmp -H 10.2.20.20 -C public -o iso.3.6.1.2.1.43.16.5.1.2.1.1SNMP OK - "Ready - Select Features to scan your job." | Printer-MIB::
prtConsoleDisplayBufferText.1.1="Ready - Select Features to scan your job."linuxserver:/usr/local/nagios/etc# ../libexec/check_snmp -H 10.2.20.20 -C public -o iso.3.6.1.2.1.43.16.5.1.2.1.1
 -s \"Ready\ -\ Select\ Features\ to \ scan\ your\ job.\"SNMP CRITICAL - *"Ready - Select Features to scan your job."* | Printer-MIB::prtConsoleDisplayBufferText.1.1="Ready - Select Features to scan your job."
2006/1/23, Michael Schwartzkopff <[EMAIL PROTECTED]>:
Am Montag, 23. Januar 2006 15:25 schrieb Toto Capuccino:> Hi all,>> I run a check_snmp on an OID that displays the status of a printer.> snmpwalk gives :> iso.3.6.1.2.1.43.16.5.1.2.1.1 = STRING: "Ready - Select Features to scan
> your job.">  when i run a check_snmp -H 10.2.20.20 -C public -o> iso.3.6.1.2.1.43.16.5.1.2.1.1  -s "Ready - Select Features to scan your> job."
> i get always a warning.>> What i'd like is to have a warning when something's different from string> "Ready - Select Features to scan your job.">> Thanks.hi,
try ... --string\"Ready\ -\ Select\ Features\ to \ scan\ your\ job.\"or escape "\ " and \" otherwise.--Dr. Michael SchwartzkopffMultiNET Services GmbHBretonischer Ring 7
85630 GrasbrunnTel: (+49 89) 456 911 - 0Fax: (+49 89) 456 911 - 21mob: (+49 174) 343 28 75PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979BSkype: misch42



[Nagios-users] check_snmp

2006-01-23 Thread Toto Capuccino
Hi all,I run a check_snmp on an OID that displays the status of a printer.snmpwalk gives :iso.3.6.1.2.1.43.16.5.1.2.1.1 = STRING: "Ready - Select Features to scan your job." when i run a check_snmp -H 
10.2.20.20 -C public -o iso.3.6.1.2.1.43.16.5.1.2.1.1  -s  "Ready - Select Features to scan your job."i get always a warning.What i'd like is to have a warning when something's different from string   "Ready - Select Features to scan your job."
Thanks.


[Nagios-users] NRPE compile kerberos

2006-01-20 Thread Toto Capuccino
Hi,When i ./configure nrpe i receive the following warning :checking for Kerberos include files... could not find include filesi try to install debian packages libkadm55 and libkrb5-dev but still same warning.
Any ideas ?Thank you!


Re: [Nagios-users] Check_http returns 400 Bad request

2006-01-20 Thread Toto Capuccino
Thanks! I got it working now.2006/1/19, Hugo van der Kooij <[EMAIL PROTECTED]>:
On Thu, 19 Jan 2006, Toto Capuccino wrote:> I try to check that our Outlook Web Access server is up and running so i> defined my commands check_http like this:> # 'check_http' command definition
> define command{> command_namecheck_http> command_line$USER1$/check_http -H $HOSTNAME$ -u $ARG1$> }> and services this way :> check_command  check_http!rcorpsv04!http://www.rmkmail.com
>> i get in return [1137662549] SERVICE ALERT:> rcorpsv04;HTTP;WARNING;HARD;3;HTTP WARNING: HTTP/1.1 400 Bad Request>> It looks like it's missing a host header field, how can i solve this ?
You use an incorrect URL. The manual said: -u, --url="">   URL to GET or POST (default: /)What is more I am puzzled why it did not complain about the fact that yousend 2 variables and handle only the first.
It should be more like:define command{command_namecheck_http_urlcommand_line$USER1$/check_http -H $ARG1$ -u $ARG2$}check_http_url!aragorn!/icons/powered_by_fedora.png
This will resul in 'aragorn' being used for the host headerHugo.--I hate duplicates. Just reply to the relevant mailinglist.[EMAIL PROTECTED]
http://hvdkooij.xs4all.nl/Don't meddle in the affairs of magicians,for they are subtle and quick to anger.---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?  Stop!  Download the new AJAX search engine that makessearching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642___
Nagios-users mailing listNagios-users@lists.sourceforge.nethttps://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] Check_http returns 400 Bad request

2006-01-19 Thread Toto Capuccino
Hi,I try to check that our Outlook Web Access server is up and running so i defined my commands check_http like this:# 'check_http' command definitiondefine command{    command_name    check_http
    command_line    $USER1$/check_http -H $HOSTNAME$ -u $ARG1$    }and services this way :check_command  check_http!rcorpsv04!http://www.rmkmail.comi get in return [1137662549] SERVICE ALERT: rcorpsv04;HTTP;WARNING;HARD;3;HTTP WARNING: HTTP/1.1 400 Bad Request
It looks like it's missing a host header field, how can i solve this ?Thanks in advance for helping.Regards