Re: [Nagios-users] Nagios + Postfix

2009-02-19 Thread Sumit Malhotra
Change the name  in /etc/mailname.

- Sumit 

-Original Message-
From: Martyn [mailto:mar...@chetnet.co.uk] 
Sent: Thursday, February 19, 2009 2:13 PM
To: 'Marc Powell'; 'Nagios Users'
Subject: Re: [Nagios-users] Nagios + Postfix

I have tried for the last few hours buy I can not resolve it, where have
I
gone wrong, below is my config



#
# See /usr/share/postfix/main.cf.dist for a commented, more complete
version


# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate delayed mail warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package
for
# information on enabling SSL in the smtp client.

myhostname = chetnet.co.uk
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mailbox_size_limit = 0
recipient_delimiter = +
smtpd_recipient_restrictions = permit_mynetworks permit_inet_interfaces

Thanks



### 

-Original Message-
From: Marc Powell [mailto:m...@ena.com] 
Sent: 19 February 2009 16:41
To: Nagios Users
Subject: Re: [Nagios-users] Nagios + Postfix


On Feb 19, 2009, at 10:11 AM, Martyn wrote:

 Proweb is not under my control

 I'm not to sure what you mean with regards to the rest of you reply, I

 have not set up postfix to masquerade anything, would not know how to 
 do that

Google does though. Search for 'postfix domain change'. You're probably
going to be most interested in mydomain, myhostname and perhaps
myorigin.

 I'm sending the mail from the Nagios Server from address 
 nag...@cna.localhost to not...@proweb.co.uk

Yup, I'd reject that too. cna.localhost isn't a valid hostname or
domain.

 I have not configured postfix in anyway, the install guide just 
 implied that I did the following and it would work out of the box so 
 to speak

Yes, the install guide has to assume that the MTA packages and
configuration
for whatever system you are using are sane. It's your responsibility to
make
sure they are. Doing that is beyond the scope of nagios.

--
Marc



--
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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] No Information Returned From Host Check

2006-08-24 Thread Sumit Malhotra








I keep on getting No Information Returned from Host Check for one my host. (for
rest everything seems perfect)



Does that mean my
Server is unable to process the Simple PING command? Or the MONITORED Server is
denying response to PING occasionally???



Is it could be the
ISP? Do you think that using Passive Host check would be of Help in that case?





Thanks

Sumit Malhotra

Sr. Network Engineer

Data Armor, India

www.dataarmor.net










-
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=lnkkid=120709bid=263057dat=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

[Nagios-users] Nagios - Nsca - OCSP command Timedout

2006-07-18 Thread Sumit malhotra
Hello,

I  am using Nagios in a distributed environment where
many systems report to a central nagios server via
NSCA.

Many a times  the nsca command(ocsp and oshp command)
times out due to low response time from remote nsca.

As the results submiteed by remote client are not
received, it causes an alert to be generated. 
(I am using nsca -server in inetd mode.)


I have few questions:

1. Is it possible to set up NSCA -server so that it
doesn't time out ? What's the deterministic parameter?
is it RAM ? CPU? or NETWORK CHOKING.

In Normal scenarios I have  90% RAM as free
Average System Load is  1.5
Network of 10MB is available. with only 100 odd hosts
to report to ( It's not getting choked either)

2. Is it possbile to retry sending  in 15 seconds if
the ochp/ocsp command has timed out ?

Thanks
Sumit



-
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.phpp=sourceforgeCID=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] Nagios - Nsca - OCSP command Timedout

2006-07-18 Thread Sumit malhotra


--- Marc Powell [EMAIL PROTECTED] wrote:
Hello Marc,

 
 
  -Original Message-
  From: [EMAIL PROTECTED]
 [mailto:nagios-users-
  [EMAIL PROTECTED] On Behalf Of Sumit
 malhotra
  Sent: Tuesday, July 18, 2006 12:26 PM
  To: nagios-users@lists.sourceforge.net
  Subject: [Nagios-users] Nagios - Nsca - OCSP
 command Timedout
  
  Hello,
  
  I  am using Nagios in a distributed environment
 where
  many systems report to a central nagios server via
  NSCA.
  
  Many a times  the nsca command(ocsp and oshp
 command)
  times out due to low response time from remote
 nsca.
  
  As the results submiteed by remote client are not
  received, it causes an alert to be generated.
  (I am using nsca -server in inetd mode.)
  
  
  I have few questions:
  
  1. Is it possible to set up NSCA -server so that
 it
  doesn't time out ? What's the deterministic
 parameter?
  is it RAM ? CPU? or NETWORK CHOKING.
 
 I'd check your inetd config. Are you allowing
 sufficient connections and
 rate limits for your environment?
Here is the xinetd configurations
service nsca
{
flags   = REUSE
socket_type = stream
wait= no
user= nagios
group   = nagios
server  = /usr/sbin/nsca
server_args = -c /etc/nsca.cfg --inetd
log_on_failure  += USERID
instances   = 200
disable = no
}

Also, sometimes nsca goes in adefunct state. I have no
clue why ?


 3054 ?Rs 0:01 /usr/sbin/xinetd -pidfile
/var/run/xinetd.pid -stayalive
21552 ?Zs 0:00  \_ [nsca] defunct
21553 ?Zs 0:00  \_ [nsca] defunct
21554 ?Zs 0:00  \_ [nsca] defunct
21555 ?Ss 0:00  \_ nsca -c /etc/nsca.cfg
--inetd
21556 ?Ss 0:00  \_ nsca -c /etc/nsca.cfg
--inetd

nsca.cfg 
-
server_port=5667
server_address=x.x.x.x
nsca_user=nagios
nsca_group=nagios
debug=0
command_file=/var/lib/nagios2/rw/nagios.cmd
aggregate_writes=0
append_to_file=0
max_packet_age=30
password=x
decryption_method=1




  
  In Normal scenarios I have  90% RAM as free
  Average System Load is  1.5
  Network of 10MB is available. with only 100 odd
 hosts
  to report to ( It's not getting choked either)
  
  2. Is it possbile to retry sending  in 15 seconds
 if
  the ochp/ocsp command has timed out ?
 
 Yes, you could always modify your
 submit_check_result script to take
 that into account. Nagios doesn't have that
 capability itself. The
 proper fix however is to determine why the timeouts
 are occurring. I'm
 able to process 3648 passive checks via NSCA every 5
 minutes running
 NSCA as a standalone daemon. That's why I believe
 you may need to look
 at your (x)inetd.conf.
 
 --
 Marc
 

-
 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.phpp=sourceforgeCID=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
 


-
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.phpp=sourceforgeCID=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] network traffic monitoring plugin or bandwidth pluin for nagios

2006-02-16 Thread Sumit Malhotra








# check_mrtgtraf --help

check_mrtgtraf (nagios-plugins 1.4.1) 1.24

Copyright (c) 1999 Ethan Galstad
[EMAIL PROTECTED]

Copyright (c) 1999-2004 Nagios Plugin
Development Team


[EMAIL PROTECTED]





This plugin will check the
incoming/outgoing transfer rates of a router,

switch, etc recorded in an MRTG log. If
the newest log entry is older

than expire_minutes, a WARNING
status is returned. If either the

incoming or outgoing rates exceed the
icl or ocl thresholds (in

Bytes/sec), a CRITICAL status results. If
either of the rates exceed

the iwl or owl thresholds
(in Bytes/sec), a WARNING status results.



Usage: check_mrtgtraf -F log_file
-a AVG | MAX -v variable -w warning_pair

 -c
critical_pair [-e expire_minutes] [-t timeout] [-v]



Options:

-h, --help

 Print detailed help screen

-V, --version

 Print version information

-F, --filename=STRING

 File to read log from

-e, --expires=INTEGER

 Minutes after which log expires

-a, --aggregation=(AVG|MAX)

 Test average or maximum

-w, --warning

 Warning threshold pair
incoming,outgoing

-c, --critical

 Critical threshold pair
incoming,outgoing

Notes:

- MRTG stands for Multi Router Traffic
Grapher. It can be downloaded from


http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html

- While MRTG can monitor things other than
traffic rates, this

 plugin probably won't work with much
else without modification.

- The calculated i/o rates are a little
off from what MRTG actually

 reports. I'm not sure why this is right
now, but will look into it

 for future enhancements of this plugin.



Send email to
nagios-users@lists.sourceforge.net if you have questions

regarding use of this software. To submit
patches or suggest improvements,

send email to [EMAIL PROTECTED]















From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Radhika
Sent: Thursday, February 16, 2006
3:58 PM
To:
nagios-users@lists.sourceforge.net
Subject: [Nagios-users] network
traffic monitoring plugin or bandwidth pluin for nagios







Hi Guys,











Presently we have different broadband users customers with
different speeds like 512k,2m,5m,10m lines.I want to know is there any plugin
for nagios to send the alerts when it reaches the bandwidth capacity 70% or 80
%.This plun in should have the option of choosing speed limits so that i can
monitor different clients.











Can some one help me on this.











Thanks for your time









Yahoo! Mail
Use
Photomail to share photos without annoying attachments.










RE: Antw: [Nagios-users] ndosutil

2006-02-14 Thread Sumit Malhotra








Nope

Adds database support
to Nagios 2, and replaces the existing CGIs with new ones written in any
language you prefer (currently PHP).

Check http://sourceforge.net/projects/nagios-db/

Thanks.













From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Christian Mies
Sent: Tuesday, February 14, 2006
6:02 PM
To:
nagios-users@lists.sourceforge.net
Subject: Antw: [Nagios-users]
ndosutil





AFAIK: Nagios2db
ist not supported in Nagios 2.0

 Sumit Malhotra [EMAIL PROTECTED]
14.02.2006 08:46:18 



Guys,



Where can I find the ndosutil for Nagios -2.0 stable?

Also, Can somebody, tell me Pros and cons of using ndosutils
over nagios2db?





Thanks

Sumit
















RE: [Nagios-users] Need pointer

2006-02-08 Thread Sumit Malhotra








With $value I meant, Write an exit status
to be used by Nagios



#!/bin/sh 
output=`/usr/local/nagios/libexec/check_snmp -H $1 -o $2`
if [ $output = 0 ]
echo low paper 

Exit(1) 
if [ $output = 1 ]
echo no Paper
Exit(2)
if [ $output = 2 ]

echo low Toner



--

0 will return OK

1 will return WARNING

2 will return CRITICAL





Also, check you shell script there is
error on line 3 (NO $output  us output instead). 

I guess, its a good time to read
some shell scripting.



 Thanks

 Sumit

















From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Toto Capuccino
Sent: Wednesday, February 08, 2006
3:53 PM
To: Nagios
Subject: Re: [Nagios-users] Need
pointer





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?

Thanks
and i get this error 



2006/2/8, Sumit Malhotra [EMAIL PROTECTED]:





_

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
] On Behalf Of Toto
Capuccino
Sent: Wednesday, February 08, 2006 2:52 PM
To: Nagios
Subject: [Nagios-users] Need pointer



Hi,

I need a pointer todo the following :
i am checking the staus of printers with check_snmp -H x.x.x.x -o OID
the snmp check returns a value between 0 and 14 that corresponds to a state

Condition Bit #

lowPaper0

noPaper
1

lowToner2


noToner
3

doorOpen4

jammed5

offline
6
 serviceRequested7
 inputTrayMissing8
 outputTrayMissing 9 
 markerSupplyMissing10
 outputNearFull 11

outputFull 12
 inputTrayEmpty 13
 overduePreventMaint14

What 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 the
State instead of NUMBERIC value.



The script could be like



#!/bin/sh

output= `/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. 










RE: [Nagios-users] NSCA messages

2006-02-07 Thread Sumit Malhotra
Should be ...to confirm...

telnet central server port

Where port is on which you have configured NSCA on central server - most
probably 5667)

If it's getting timed out, it shouldn't respond.

Thanks.
Sumit
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Brady Maxwell
Sent: Tuesday, February 07, 2006 9:18 PM
To: Nagios users
Subject: [Nagios-users] NSCA messages

I am getting stuff like this on my distributed server. It had been 
working and  I do not think I changed anything.

Could this be because the distributed server can not reach the central 
server?


Feb  7 07:48:01 Netcarenagios nagios: Warning: OCSP command 
'/usr/local/nagios/libexec/eventhandlers/submit_check_result IVAN 
'UPTIME' OK '$OUTPUT$'' for ser
vice 'UPTIME' on host 'IVAN' timed out after 5 seconds



---
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=lnkkid=103432bid=230486dat=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



---
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=lnkkid=103432bid=230486dat=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