Re: [Nagios-users] Nagios not sending email notifications..

2010-06-04 Thread asam30
Nagios uses sendmail MTA to send emails out, please check your sendmail
configuration and troubleshoot it. check to see if any emails in the queue

On Sat, Jun 5, 2010 at 5:52 AM,  wrote:

>  Hi ,
>
>
>
> I am using Nagios 3.0.6 on Linux with Fedora installed on it.
>
>
>
> My Nagios suddenly stopped sending email notifications .When I tried sending 
> manually using the command ‘echo "subject" | mail -s "message" 
> contactem...@whatever ‘ I am not receiving any email.
>
>
>
> Please someone guide me on this…
>
>
>
> Here is my service template.
>
>
>
> # Generic service definition template - This is NOT a real service, just a
> template!
>
>
>
> define service{
>
> namegeneric-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 0   ; 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_information1   ; Retain
> non-status information across program restarts
>
> is_volatile 0   ; The
> service is not volatile
>
> check_period24x7; The
> service can be checked at any time of the day
>
> max_check_attempts  2   ; Re-check
> the service up to 3 times in order to determine its final (hard) state
>
> normal_check_interval   5   ; Check the
> service every 10 minutes under normal conditions
>
> retry_check_interval1   ; Re-check
> the service every two minutes until a hard state can be determined
>
> #contact_groups
> stw_win_server,stw_network_devices,stw_app_server   ; Notifications get
> sent out to everyone in the 'admins' group
>
> notification_optionsw,u,c   ; Send
> notifications about warning, unknown, critical, and recovery events
>
> notification_interval   30  ; Re-notify
> about service problems every hour
>
> notification_period 24x7;
> Notifications can be sent out at any time
>
> register0   ; DONT
> REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
>
> }
>
>
>
> Thanks & Regards,
>
> Ravi G
>
>
> --
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> ___
> 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
>



-- 
Shankar Asam
--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo___
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_ping

2009-07-23 Thread asam30
I rebooted the nagios server and that fixed it.

thanks a lot

On Thu, Jul 23, 2009 at 6:14 PM,  wrote:

> Marc,
>
> As you said, correct. I have multiple nagios daemons running on the host.
> How do I get rid of this?
>
> I tried,
>
> killall -9 nagios
>
> service nagios start
>
> [r...@lnx-nagios local]# ps -ef | grep nagios
> nagios2672 1  0 19:23 ?00:00:01
> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> nagios5127 1  0 19:25 ?00:00:00
> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> nagios5128  5127  0 19:25 ?00:00:00
> /usr/local/nagios/libexec/check_ping -H 10.193.50.60 -w 100.0,20% -c
> 500.0,60% -p 5
> nagios5129  5128  0 19:25 ?00:00:00 /bin/ping -n -U -w 10 -c 5
> 10.193.50.60
> nagios5131 1  0 19:25 ?00:00:00
> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> nagios5132  5131  0 19:25 ?00:00:00
> /usr/local/nagios/libexec/check_ping -H 10.130.131.241 -w 100.0,20% -c
> 500.0,60% -p 5
> nagios5133  5132  0 19:25 ?00:00:00 /bin/ping -n -U -w 10 -c 5
> 10.130.131.241
> nagios5138 1  0 19:25 ?00:00:00
> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> nagios5139  5138  0 19:25 ?00:00:00
> /usr/local/nagios/libexec/check_ping -H 10.193.50.140 -w 100.0,20% -c
> 500.0,60% -p 5
> nagios5141  5139  0 19:25 ?00:00:00 /bin/ping -n -U -w 10 -c 5
> 10.193.50.140
> nagios5142 1  0 19:25 ?00:00:00
> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> nagios5143  5142  0 19:25 ?00:00:00
> /usr/local/nagios/libexec/check_ping -H 10.30.8.221 -w 100.0,20% -c
> 500.0,60% -p 5
> nagios5144  5143  0 19:25 ?00:00:00 /bin/ping -n -U -w 10 -c 5
> 10.30.8.221
> nagios5149 1  0 19:25 ?00:00:00
> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> nagios5150  5149  0 19:25 ?00:00:00
> /usr/local/nagios/libexec/check_nrpe -H 172.16.17.188 -c check_users
> nagios5158 1  0 19:25 ?00:00:00
> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> nagios5159  5158  0 19:25 ?00:00:00
> /usr/local/nagios/libexec/check_ping -H 172.16.17.15 -w 3000.0,80% -c
> 5000.0,100% -p 5
> nagios5160  5159  0 19:25 ?00:00:00 /bin/ping -n -U -w 30 -c 5
> 172.16.17.15
> nagios5169 1  0 19:25 ?00:00:00
> /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> nagios5170  5169  0 19:25 ?00:00:00
> /usr/local/nagios/libexec/check_nrpe -H 172.16.17.128 -c check_load
> root  5178  3535  0 19:25 pts/000:00:00 grep nagios
>
>
> still have the multiple deamons running?
>
> Any help on this would be appreciated.
>
> Thanks
> -shankar
>
>
> On Thu, Jul 23, 2009 at 5:34 PM, Marc Powell  wrote:
>
>>
>> On Jul 23, 2009, at 6:28 AM, asa...@gmail.com wrote:
>>
>> > Hi All,
>> >
>> > I am using check_ping to checking the status of server (up or down).
>> > we have two nagios servers (one at production site, USA and another
>> > one at DEV site, India). I am now monitoring some of the network
>> > devices (using ping) resides at USA from Nagios server located in
>> > India. All I am getting is
>>
>> > PING WARNING - Packet loss = 0%, RTA = 268.97
>> >
>> > I am always getting warning message, since the RTA time would be
>> > normally (on WAN) 268.97ms.
>> >
>> > I did even changed the parameters in check_command, but still does
>> > not work.
>> >
>> >   check_command   check_ping!500.0,20%!900.0,60%
>> >
>> > Can someone please give any solution for this?
>>
>> If you've changed the WARNING threshold to 500 or higher and still see
>> warnings for lower numbers, I'd say you most likely didn't restart
>> nagios to have your changes take effect or you have multiple nagios
>> daemons running at the same time.
>>
>> --
>> Marc
>>
>>
>>
>> --
>> ___
>> 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
>>
>
>
>
> --
> Shankar Asam
>



-- 
Shankar Asam
--
___
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_ping

2009-07-23 Thread asam30
Marc,

As you said, correct. I have multiple nagios daemons running on the host.
How do I get rid of this?

I tried,

killall -9 nagios

service nagios start

[r...@lnx-nagios local]# ps -ef | grep nagios
nagios2672 1  0 19:23 ?00:00:01 /usr/local/nagios/bin/nagios
-d /usr/local/nagios/etc/nagios.cfg
nagios5127 1  0 19:25 ?00:00:00 /usr/local/nagios/bin/nagios
-d /usr/local/nagios/etc/nagios.cfg
nagios5128  5127  0 19:25 ?00:00:00
/usr/local/nagios/libexec/check_ping -H 10.193.50.60 -w 100.0,20% -c
500.0,60% -p 5
nagios5129  5128  0 19:25 ?00:00:00 /bin/ping -n -U -w 10 -c 5
10.193.50.60
nagios5131 1  0 19:25 ?00:00:00 /usr/local/nagios/bin/nagios
-d /usr/local/nagios/etc/nagios.cfg
nagios5132  5131  0 19:25 ?00:00:00
/usr/local/nagios/libexec/check_ping -H 10.130.131.241 -w 100.0,20% -c
500.0,60% -p 5
nagios5133  5132  0 19:25 ?00:00:00 /bin/ping -n -U -w 10 -c 5
10.130.131.241
nagios5138 1  0 19:25 ?00:00:00 /usr/local/nagios/bin/nagios
-d /usr/local/nagios/etc/nagios.cfg
nagios5139  5138  0 19:25 ?00:00:00
/usr/local/nagios/libexec/check_ping -H 10.193.50.140 -w 100.0,20% -c
500.0,60% -p 5
nagios5141  5139  0 19:25 ?00:00:00 /bin/ping -n -U -w 10 -c 5
10.193.50.140
nagios5142 1  0 19:25 ?00:00:00 /usr/local/nagios/bin/nagios
-d /usr/local/nagios/etc/nagios.cfg
nagios5143  5142  0 19:25 ?00:00:00
/usr/local/nagios/libexec/check_ping -H 10.30.8.221 -w 100.0,20% -c
500.0,60% -p 5
nagios5144  5143  0 19:25 ?00:00:00 /bin/ping -n -U -w 10 -c 5
10.30.8.221
nagios5149 1  0 19:25 ?00:00:00 /usr/local/nagios/bin/nagios
-d /usr/local/nagios/etc/nagios.cfg
nagios5150  5149  0 19:25 ?00:00:00
/usr/local/nagios/libexec/check_nrpe -H 172.16.17.188 -c check_users
nagios5158 1  0 19:25 ?00:00:00 /usr/local/nagios/bin/nagios
-d /usr/local/nagios/etc/nagios.cfg
nagios5159  5158  0 19:25 ?00:00:00
/usr/local/nagios/libexec/check_ping -H 172.16.17.15 -w 3000.0,80% -c
5000.0,100% -p 5
nagios5160  5159  0 19:25 ?00:00:00 /bin/ping -n -U -w 30 -c 5
172.16.17.15
nagios5169 1  0 19:25 ?00:00:00 /usr/local/nagios/bin/nagios
-d /usr/local/nagios/etc/nagios.cfg
nagios5170  5169  0 19:25 ?00:00:00
/usr/local/nagios/libexec/check_nrpe -H 172.16.17.128 -c check_load
root  5178  3535  0 19:25 pts/000:00:00 grep nagios


still have the multiple deamons running?

Any help on this would be appreciated.

Thanks
-shankar

On Thu, Jul 23, 2009 at 5:34 PM, Marc Powell  wrote:

>
> On Jul 23, 2009, at 6:28 AM, asa...@gmail.com wrote:
>
> > Hi All,
> >
> > I am using check_ping to checking the status of server (up or down).
> > we have two nagios servers (one at production site, USA and another
> > one at DEV site, India). I am now monitoring some of the network
> > devices (using ping) resides at USA from Nagios server located in
> > India. All I am getting is
>
> > PING WARNING - Packet loss = 0%, RTA = 268.97
> >
> > I am always getting warning message, since the RTA time would be
> > normally (on WAN) 268.97ms.
> >
> > I did even changed the parameters in check_command, but still does
> > not work.
> >
> >   check_command   check_ping!500.0,20%!900.0,60%
> >
> > Can someone please give any solution for this?
>
> If you've changed the WARNING threshold to 500 or higher and still see
> warnings for lower numbers, I'd say you most likely didn't restart
> nagios to have your changes take effect or you have multiple nagios
> daemons running at the same time.
>
> --
> Marc
>
>
>
> --
> ___
> 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
>



-- 
Shankar Asam
--
___
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] check_ping

2009-07-23 Thread asam30
Hi All,

I am using check_ping to checking the status of server (up or down). we have
two nagios servers (one at production site, USA and another one at DEV site,
India). I am now monitoring some of the network devices (using ping) resides
at USA from Nagios server located in India. All I am getting is,

Switch-III
PING
  [image:
This service has 2 comments associated with
it][image:
This service problem has been
acknowledged][image:
This service is flapping between
states]
WARNING 07-23-2009 18:04:28 0d 0h 2m 2s 3/3 PING WARNING - Packet loss = 0%,
RTA = 268.97
I am always getting warning message, since the RTA time would be normally
(on WAN) 268.97ms.

I did even changed the parameters in check_command, but still does not work.

  check_command   check_ping!500.0,20%!900.0,60%

Can someone please give any solution for this?

Thanks
-Shankar
-- 
Shankar Asam
--
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Monitor file size through nagios

2009-04-28 Thread asam30
Thank you steffen and andreas..

certainly, that link will help me

thanks
-shankar

On Tue, Apr 28, 2009 at 1:42 PM, Steffen Poulsen  wrote:

>  There are a few plugins doing this at NagiosExchange, i.e. the Perl
> version is one example:
>
>
>
> http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2205.html;d=1
>
>
>
> Steffen
>
>
>
> *From:* asa...@gmail.com [mailto:asa...@gmail.com]
> *Sent:* 28. april 2009 08:33
> *To:* Nagios Users Mailinglist
> *Subject:* [Nagios-users] Monitor file size through nagios
>
>
>
> Hi,
>
> I am aware of monitoring disk space using nagios (disk partitions -->
> check_disk). Now, I have a situation that I would like to monitor size of an
> individual file through nagios. Ex,
>
> /var/log/custom-snmpd.log -- > this file will grow very fast and i would
> like to monitor if the size of this file crosses 1.5 G
>
> Is there anyway we can do this?
>
> Thanks
> --
> Shankar
>



-- 
Shankar Asam
--
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf___
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] Monitor file size through nagios

2009-04-27 Thread asam30
Hi,

I am aware of monitoring disk space using nagios (disk partitions -->
check_disk). Now, I have a situation that I would like to monitor size of an
individual file through nagios. Ex,

/var/log/custom-snmpd.log -- > this file will grow very fast and i would
like to monitor if the size of this file crosses 1.5 G

Is there anyway we can do this?

Thanks
-- 
Shankar
--
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf___
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] Is Clientless monitoring possible

2009-04-14 Thread asam30
I think it is not possible with nagios. you need to install nagios-plugins
or nrpe on the remote clients end.

-Shankar

On Tue, Apr 14, 2009 at 4:52 PM,  wrote:

>
> Hi,
>
> I have installed nagios on one of the system running redhat. Our network
> has around 25-30 server incluing windows and other network devices such as
> switches etc.
>
> Please let me know if we can monitor the server (Including windows) without
> installing any client on the remote host.
>
> Regards,
> Sudhakar
>
> --
> This SF.net email is sponsored by:
> High Quality Requirements in a Collaborative Environment.
> Download a free trial of Rational Requirements Composer Now!
> http://p.sf.net/sfu/www-ibm-com
> ___
> 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
>



-- 
Shankar Asam
--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com___
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] Fwd: Monitor netstat connection states using nagios.

2009-04-12 Thread asam30
Hi All,

I've tried all suggestions and there are not worked. Please find the
files/permissions, provide any help would be appreciated

SCRIPT
*

#!/bin/sh

STATE_OK=0
STATE_WARNING=1
STATE_CRITICAL=2
STATE_UNKNOWN=3

netstat  -an  | grep 80 > synport12
err=`cat synport12 | grep -i TIME_WAIT   | wc  -l |awk '{print $1}'`
if [ $err -gt 0 ]
then
echo "WARNING - STATUS= TIME_WAIT port status on $HOSTNAME | "WARNING -
STATUS=TIME_WAIT port status on $HOSTNAME
exit $STATE_CRITICAL
else
echo "OK - The port is up and running NO established connections on
$HOSTNAME"
exit $STATE_OK
fi

***

ON nagios server
***
[nag...@lnx-nagios libexec]$ pwd
/usr/local/nagios/libexec

drwxrwxr-x  2 nagios nagios 4.0K Apr  9 18:37 .
drwxrwxr-x  8 nagios nagios 4.0K Dec 26 12:43 ..
-rwxr-xr-x  1 nagios nagios  53K Aug  7  2008 check_apt
-rwxr-xr-x  1 nagios nagios 2.3K Aug  7  2008 check_breeze
-rwxr-xr-x  1 nagios nagios  63K Aug  7  2008 check_by_ssh
lrwxrwxrwx  1 root   root  9 Aug  7  2008 check_clamd -> check_tcp
-rwxr-xr-x  1 nagios nagios  38K Aug  7  2008 check_cluster
-r-sr-xr-x  1 root   nagios  65K Aug  7  2008 check_dhcp
-rwxr-xr-x  1 nagios nagios  59K Aug  7  2008 check_dig
-rwxr-xr-x  1 nagios nagios  89K Aug  7  2008 check_disk
-rwxr-xr-x  1 nagios nagios 8.0K Aug  7  2008 check_disk_smb
-rwxr-xr-x  1 nagios nagios  64K Aug  7  2008 check_dns
-rwxr-xr-x  1 nagios nagios  34K Aug  7  2008 check_dummy
-rwxr-xr-x  1 nagios nagios 3.1K Aug  7  2008 check_file_age
-rwxr-xr-x  1 nagios nagios 6.3K Aug  7  2008 check_flexlm
lrwxrwxrwx  1 root   root  9 Aug  7  2008 check_ftp -> check_tcp
-rwxr-xr-x  1 nagios nagios 141K Aug  7  2008 check_http
-r-sr-xr-x  1 root   nagios  71K Aug  7  2008 check_icmp
-rwxr-xr-x  1 nagios nagios  43K Aug  7  2008 check_ide_smart
-rwxr-xr-x  1 nagios nagios  15K Aug  7  2008 check_ifoperstatus
-rwxr-xr-x  1 nagios nagios  13K Aug  7  2008 check_ifstatus
lrwxrwxrwx  1 root   root  9 Aug  7  2008 check_imap -> check_tcp
-rwxr-xr-x  1 nagios nagios 7.3K Aug  7  2008 check_ircd
lrwxrwxrwx  1 root   root  9 Aug  7  2008 check_jabber -> check_tcp
-rwxr-xr-x  1 nagios nagios  53K Aug  7  2008 check_ldap
lrwxrwxrwx  1 root   root 10 Aug  7  2008 check_ldaps -> check_ldap
-rwxr-xr-x  1 nagios nagios  49K Aug  7  2008 check_load
-rwxr-xr-x  1 nagios nagios 6.0K Aug  7  2008 check_log
-rwxr-xr-x  1 nagios nagios  20K Aug  7  2008 check_mailq
-rwxr-xr-x  1 nagios nagios  44K Aug  7  2008 check_mrtg
-rwxr-xr-x  1 nagios nagios  43K Aug  7  2008 check_mrtgtraf
-rwxr-xr-x  1 nagios nagios  63K Aug  7  2008 check_mysql
-rwxr-xr-x  1 nagios nagios  59K Aug  7  2008 check_mysql_query
-rwxr-xr-x  1 nagios nagios  50K Aug  7  2008 check_nagios
lrwxrwxrwx  1 root   root  9 Aug  7  2008 check_nntp -> check_tcp
lrwxrwxrwx  1 root   root  9 Aug  7  2008 check_nntps -> check_tcp
-rwxr-xr-x  1 nagios nagios  53K Aug  8  2008 check_nrpe
-rwxr-xr-x  1 nagios nagios  64K Aug  7  2008 check_nt
-rwxr-xr-x  1 nagios nagios  67K Aug  7  2008 check_ntp
-rwxr-xr-x  1 nagios nagios  61K Aug  7  2008 check_ntp_peer
-rwxr-xr-x  1 nagios nagios  60K Aug  7  2008 check_ntp_time
-rwxr-xr-x  1 nagios nagios  84K Aug  7  2008 check_nwstat
-rwxr-xr-x  1 nagios nagios 8.3K Dec 17 14:22 check_oracle
-rwxr-xr-x  1 nagios nagios  54K Aug  7  2008 check_overcr
-rwxr-xr-x  1 nagios nagios  68K Aug  7  2008 check_ping
lrwxrwxrwx  1 root   root  9 Aug  7  2008 check_pop -> check_tcp
-rwxr-xr-x  1 nagios nagios  67K Aug  7  2008 check_procs
-rwxr-xr-x  1 nagios nagios  52K Aug  7  2008 check_real
-rwxr-xr-x  1 nagios nagios 9.5K Aug  7  2008 check_rpc
-rwxr-xr-x  1 nagios nagios 1.2K Aug  7  2008 check_sensors
lrwxrwxrwx  1 root   root  9 Aug  7  2008 check_simap -> check_tcp
-rwxr-xr-x  1 nagios nagios  99K Aug  7  2008 check_smtp
lrwxrwxrwx  1 root   root  9 Aug  7  2008 check_spop -> check_tcp
-rwxr-xr-x  1 nagios nagios  49K Aug  7  2008 check_ssh
lrwxrwxrwx  1 root   root  9 Aug  7  2008 check_ssmtp -> check_tcp
-rwxr-xr-x  1 nagios nagios  52K Aug  7  2008 check_swap
-rwxr-xr-x  1 nagios nagios  88K Aug  7  2008 check_tcp
-rwxr-xr-x  1 nagios nagios  52K Aug  7  2008 check_time
lrwxrwxrwx  1 root   root  9 Aug  7  2008 check_udp -> check_tcp
-rwxr-xr-x  1 nagios nagios  59K Aug  7  2008 check_ups
-rwxr-xr-x  1 nagios nagios  48K Aug  7  2008 check_users
-rwxr-xr-x  1 nagios nagios 3.0K Aug  7  2008 check_wave
-rwxr-xr-x  1 nagios nagios  49K Aug  7  2008 negate
-rwxr-xr-x  1 nagios nagios  86K Aug  8  2008 nrpe
-rwxr-xr-x  1 nagios nagios 7.1K Aug  8  2008 nrpe.cfg
-rwxr-xr-x  1 nagios nagios  47K Aug  7  2008 urlize
-rwxr-xr-x  1 nagios nagios 2.1K Aug  7  2008 utils.pm
-rwxr-xr-x  1 nagios nagios  862 Aug  7  2008 utils.sh


On Nagios client


[nag...@airlin libexec]$ pwd
/usr/local/nagios/libexec

total 2828

Re: [Nagios-users] Monitor netstat connection states using nagios.

2009-04-10 Thread asam30
Hi Giorgio,

I tried all the ways to fix the problem but still no luck. Do not know how
to run the custom scripts, i will explain in detail here, please someone
guide me here,

Nagios server:

Running the below command, this command will go to nagios client
(172.16.17.18) and execute check_netstat script. The netstat script will
check for port 80 listen status also if there are any TIME_WAIT connections
happens, then it should alert us (WARNING - STATUS= TIME_WAIT port status on
airlin  | WARNING - STATUS=TIME_WAIT port status on airlin). For testing I
made some connections happend to be listen on port 80 and as TIME_WAIT
status. But it still reports as (OK, which means this is reporting
incorrectly)

[nag...@lnx-nagios ~]$  /usr/local/nagios/libexec/check_nrpe -H 172.16.17.18
-c check_netstat
OK - The port is up and running NO established connections on airlin


on Nagios client:,

I executed below command here, and this reports exactly correct as there are
some TIME_WAIT  listening on port 80

[nag...@airlin nagios]$ netstat -an | grep 80
tcp0  0 0.0.0.0:80  0.0.0.0:*   LISTEN
tcp0  0 172.16.17.18:80 10.10.19.85:2293
TIME_WAIT

[nag...@airlin nagios]$ /usr/local/nagios/libexec/check_netstat
WARNING - STATUS= TIME_WAIT port status on airlin  | WARNING -
STATUS=TIME_WAIT port status on airlin.

The same warning message should appear when I execute first command on
nagios server but it reports incorrectly as (OK, no port status)

I am running above commands as nagios user because this as preivileges to
run nrpe.

the check_nrpe , nrpe , check_netstat owned by nagios:nagios on both the
servers.

in /etc/sudoers file I wrote below line on both the servers

nagios ALL=/bin/netstat

and

[r...@airlin libexec]# sudo -u nagios sudo -l
Password:
User nagios may run the following commands on this host:
(root) /bin/netstat

in the check_netstat script I wrote the netstat command as,

netstat  -an  | grep 80 > synport12

should I add sudo here???

Please help your valuable suggestions..
thanks








On Thu, Apr 9, 2009 at 8:52 PM, Giorgio Zarrelli wrote:

> Hi
>
> As I told before, that netstat command won't work "out of the box", with an
> unprivileged user.
>
> Giorgio
>
> Marc Powell (m...@ena.com) scritto:
> >
> >
> > On Apr 9, 2009, at 8:26 AM, asa...@gmail.com wrote:
> >
> > > Hi,
> > >
> > > I did copy the scipt to the remote host as check_netstat and used
> > > check_nrpe method to excute from nagios server. It looks when
> > > executing the command on remote server works well,
> > >
> > > [r...@airlin libexec]# /usr/local/nagios/libexec/check_netstat
> > > WARNING - STATUS= TIME_WAIT port status on airlin | WARNING -
> > > STATUS=TIME_WAIT port status on airlin
> >
> > You're testing as root here. Test as the user nrpe runs as. It could
> > very well be a difference in privileges...
> >
> > --
> > Marc
> >
> >
> >
> --
> > This SF.net email is sponsored by:
> > High Quality Requirements in a Collaborative Environment.
> > Download a free trial of Rational Requirements Composer Now!
> > http://p.sf.net/sfu/www-ibm-com
> > ___
> > 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:
> High Quality Requirements in a Collaborative Environment.
> Download a free trial of Rational Requirements Composer Now!
> http://p.sf.net/sfu/www-ibm-com
> ___
> 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
>



-- 
Shankar Asam
--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Monitor netstat connection states using nagios.

2009-04-09 Thread asam30
Hi,

I did copy the scipt to the remote host as check_netstat and used check_nrpe
method to excute from nagios server. It looks when executing the command on
remote server works well,

[r...@airlin libexec]# /usr/local/nagios/libexec/check_netstat
WARNING - STATUS= TIME_WAIT port status on airlin | WARNING -
STATUS=TIME_WAIT port status on airlin


as there are some TIME wait connections on port 80. but from the nagios
server, it always reports that the port is up and no TIME wait connections
established. This is wrong.

[r...@lnx-nagios libexec]#  /usr/local/nagios/libexec/check_nrpe -H
172.16.17.18 -c check_netstat
OK - The port is up and running NO established connections on airlin

It looks something is worng between with nagios server or nrpe plug ins.

please help me

thanks


On Thu, Apr 9, 2009 at 6:01 PM, Marc Powell  wrote:

>
> On Apr 9, 2009, at 6:06 AM, asa...@gmail.com wrote:
>
> > this scripts runs locally and find the nagios servers apache port
> > status not the monitored servers apache port. how would configure so
> > that it should go to nagios client and get those port TIME_WAIT
> > status.
>
> You'll need to copy the script to the remote host then use one of the
> standard remote plugin execution methods (NRPE, check_by_ssh, etc) to
> run it from nagios on the remote host.
>
> --
> Marc
>
>
>
> --
> This SF.net email is sponsored by:
> High Quality Requirements in a Collaborative Environment.
> Download a free trial of Rational Requirements Composer Now!
> http://p.sf.net/sfu/www-ibm-com
> ___
> 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
>



-- 
Shankar Asam
--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Monitor netstat connection states using nagios.

2009-04-09 Thread asam30
These are the steps I did,
on nagios server under libexec, created check_netstat file and that contains

STATE_OK=0
STATE_WARNING=1
STATE_CRITICAL=2
STATE_UNKNOWN=3

netstat  -anp  | grep 80 > synport
err=`cat synport | grep  TIME | wc  -l |awk '{print $1}'`
if [ $err -gt 0 ]
then
echo "WARNING - STATUS= TIME_WAIT port status on $HOSTNAME | "WARNING -
STATUS=TIME_WAIT port status on $HOSTNAME
exit $STATE_CRITICAL
else
echo "OK - The port is up and running no TIME_WAIT established"
exit $STATE_OK
fi

The same file copied to the nagios client where I am trying to monitor this.
And on the nagios server i went to commands.cfg and added one commadn,

define command{
command_namecheck_netstat
command_line$USER1$/check_netstat -H $HOSTADDRESS$
}
then on the nagios server, i am executeing

/usr/local/nagios/libexec/check_netstat -H 172.16.17.18
this scripts runs locally and find the nagios servers apache port status not
the monitored servers apache port. how would configure so that it should go
to nagios client and get those port TIME_WAIT status.

thanks

On Thu, Apr 9, 2009 at 3:04 PM,  wrote:

> Hi All,
>
> thank you for prompt response.
>
> I am trying this on one of the linux test server and I am monitoring port
> 80 (web server) to monitor port status TIME_WAIT. which means if netstat
> -anp  | grep 80 returns any state as TIME, then get an alert on nagios.
>
>
> STATE_OK=0
> STATE_WARNING=1
> STATE_CRITICAL=2
> STATE_UNKNOWN=3
>
> netstat  -anp  | grep 80 > synport
> err=`cat synport | grep  TIME | wc  -l |awk '{print $1}'`
> if [ $err -gt 0 ]
> then
> echo "WARNING - STATUS= TIME_WAIT port status on $HOSTNAME | "WARNING -
> STATUS=TIME_WAIT port status on $HOSTNAME
>  #exit ${STATE_WARNING}
> fi
>
>
> Can you tell me if this ok? Guide me where I am missing? This is my first
> script to integrate to nagios.
>
> Thanks
>
>
> On Thu, Apr 9, 2009 at 2:32 PM, Kevin Keane wrote:
>
>> asa...@gmail.com wrote:
>> >
>> > Hi All,
>> >
>> > I am using check_tcp to check status of a particular port on the
>> > server. This is working good. I would also need to monitor LISTEN
>> > status (SYN_RECV) of that port. for ex,
>> >
>> > I have a ldap service running on port 3890, so the command
>> >
>> > netstat  -anp  | grep 3890
>> >
>> > tcp0  0 0.0.0.0:3890 
>> >0.0.0.0:*   LISTEN
>> > 16029/java
>> > tcp0  0 10.121.30.121:3890
>> >   10.121.6.1:8831
>> > ESTABLISHED 16029/java
>> > tcp0  0 10.121.30.121:3890
>> >   10.121.6.1:61052
>> >   ESTABLISHED 16029/java
>> > tcp  228  0 10.121.30.121:3890
>> >   10.121.6.1:49440
>> >  ESTABLISHED 16029/java
>> > tcp0  0 10.121.30.121:3890
>> >   10.121.6.1:11664
>> >    SYN_RECV16029/java
>> >
>> > The establish connections are ok to allow, but we need to monitor
>> > SYN_RECV status. If there is any such(SYN_RECV) connection appears, we
>> > immediately get an alert from nagios. Is there any way to monitor such
>> > states with nagios or check_tcp?
>> >
>> > I have written some shell script to monitor such events, but also I
>> > would like to integrate that scripts into nagios? Is that possible?
>> >
>> > Please help me or provide some suggestions
>> You can integrate almost any shell script you want into Nagios. All you
>> need to do is implement the Nagios plugin specification, which is fairly
>> trivial to do for most scripts. Return 0, 1 or 2 (OK, warn or critical)
>> to as exit code, and return the actual result data via stdout in a
>> single line. The details are in the Nagios documentation.
>>
>> --
>> Kevin Keane
>> Owner
>> The NetTech
>> Find the Uncommon: Expert Solutions for a Network You Never Have to Think
>> About
>>
>> Office: 866-642-7116
>> http://www.4nettech.com
>>
>> This e-mail and attachments, if any, may contain confidential and/or
>> proprietary information. Please be advised that the unauthorized use or
>> disclosure of the information is strictly prohibited. The information herein
>> is intended only for use by the intended recipient(s) named above. If you
>> have received this transmission in error, please notify the sender
>> immediately and permanently delete the e-mail and any copies, printouts or
>> attachments thereof.
>>
>>
>>
>> --
>> This SF.net email is sponsored by:
>> High Quality Requirements in a Collaborative Environment.
>> Download a free trial of Rational Requirements Composer Now!
>> http://p.sf.net/sfu/www-ibm-com
>> ___
>> Nagios-users mailing list
>> Nagios-users@lists.sourceforge

Re: [Nagios-users] Monitor netstat connection states using nagios.

2009-04-09 Thread asam30
Hi All,

thank you for prompt response.

I am trying this on one of the linux test server and I am monitoring port 80
(web server) to monitor port status TIME_WAIT. which means if netstat  -anp
| grep 80 returns any state as TIME, then get an alert on nagios.


STATE_OK=0
STATE_WARNING=1
STATE_CRITICAL=2
STATE_UNKNOWN=3

netstat  -anp  | grep 80 > synport
err=`cat synport | grep  TIME | wc  -l |awk '{print $1}'`
if [ $err -gt 0 ]
then
echo "WARNING - STATUS= TIME_WAIT port status on $HOSTNAME | "WARNING -
STATUS=TIME_WAIT port status on $HOSTNAME
 #exit ${STATE_WARNING}
fi


Can you tell me if this ok? Guide me where I am missing? This is my first
script to integrate to nagios.

Thanks

On Thu, Apr 9, 2009 at 2:32 PM, Kevin Keane  wrote:

> asa...@gmail.com wrote:
> >
> > Hi All,
> >
> > I am using check_tcp to check status of a particular port on the
> > server. This is working good. I would also need to monitor LISTEN
> > status (SYN_RECV) of that port. for ex,
> >
> > I have a ldap service running on port 3890, so the command
> >
> > netstat  -anp  | grep 3890
> >
> > tcp0  0 0.0.0.0:3890 
> >0.0.0.0:*   LISTEN
> > 16029/java
> > tcp0  0 10.121.30.121:3890
> >   10.121.6.1:8831
> > ESTABLISHED 16029/java
> > tcp0  0 10.121.30.121:3890
> >   10.121.6.1:61052
> >   ESTABLISHED 16029/java
> > tcp  228  0 10.121.30.121:3890
> >   10.121.6.1:49440
> >  ESTABLISHED 16029/java
> > tcp0  0 10.121.30.121:3890
> >   10.121.6.1:11664
> >    SYN_RECV16029/java
> >
> > The establish connections are ok to allow, but we need to monitor
> > SYN_RECV status. If there is any such(SYN_RECV) connection appears, we
> > immediately get an alert from nagios. Is there any way to monitor such
> > states with nagios or check_tcp?
> >
> > I have written some shell script to monitor such events, but also I
> > would like to integrate that scripts into nagios? Is that possible?
> >
> > Please help me or provide some suggestions
> You can integrate almost any shell script you want into Nagios. All you
> need to do is implement the Nagios plugin specification, which is fairly
> trivial to do for most scripts. Return 0, 1 or 2 (OK, warn or critical)
> to as exit code, and return the actual result data via stdout in a
> single line. The details are in the Nagios documentation.
>
> --
> Kevin Keane
> Owner
> The NetTech
> Find the Uncommon: Expert Solutions for a Network You Never Have to Think
> About
>
> Office: 866-642-7116
> http://www.4nettech.com
>
> This e-mail and attachments, if any, may contain confidential and/or
> proprietary information. Please be advised that the unauthorized use or
> disclosure of the information is strictly prohibited. The information herein
> is intended only for use by the intended recipient(s) named above. If you
> have received this transmission in error, please notify the sender
> immediately and permanently delete the e-mail and any copies, printouts or
> attachments thereof.
>
>
>
> --
> This SF.net email is sponsored by:
> High Quality Requirements in a Collaborative Environment.
> Download a free trial of Rational Requirements Composer Now!
> http://p.sf.net/sfu/www-ibm-com
> ___
> 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
>



-- 
Shankar Asam
--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com___
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] Monitor netstat connection states using nagios.

2009-04-08 Thread asam30
Hi All,

I am using check_tcp to check status of a particular port on the server.
This is working good. I would also need to monitor LISTEN status (SYN_RECV)
of that port. for ex,

I have a ldap service running on port 3890, so the command

netstat  -anp  | grep 3890

tcp0  0 0.0.0.0:3890 0.0.0.0:*
   LISTEN 16029/java
tcp0  0 10.121.30.121:3890  10.121.6.1:8831
ESTABLISHED 16029/java
tcp0  0 10.121.30.121:3890  10.121.6.1:61052
ESTABLISHED 16029/java
tcp  228  0 10.121.30.121:3890  10.121.6.1:49440
ESTABLISHED 16029/java
tcp0  0 10.121.30.121:3890  10.121.6.1:11664
  SYN_RECV16029/java

The establish connections are ok to allow, but we need to monitor SYN_RECV
status. If there is any such(SYN_RECV) connection appears, we immediately
get an alert from nagios. Is there any way to monitor such states with
nagios or check_tcp?

I have written some shell script to monitor such events, but also I would
like to integrate that scripts into nagios? Is that possible?

Please help me or provide some suggestions

-- 
Shankar
--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com___
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] Monitor netstat connection states using nagios.

2009-04-08 Thread asam30
Hi All,

I am using check_tcp to check status of a particular port on the server.
This is working good. I would also need to monitor LISTEN status (SYN_RECV)
of that port. for ex,

I have a ldap service running on port 3890, so the command

netstat  -anp  | grep 3890

tcp0  0 0.0.0.0:3890 0.0.0.0:*
   LISTEN 16029/java
tcp0  0 10.121.30.121:3890  10.121.6.1:8831
ESTABLISHED 16029/java
tcp0  0 10.121.30.121:3890  10.121.6.1:61052
ESTABLISHED 16029/java
tcp  228  0 10.121.30.121:3890  10.121.6.1:49440
ESTABLISHED 16029/java
tcp0  0 10.121.30.121:3890  10.121.6.1:11664
  SYN_RECV16029/java

The establish connections are ok to allow, but we need to monitor SYN_RECV
status. If there is any such(SYN_RECV) connection appears, we immediately
get an alert from nagios. Is there any way to monitor such states with
nagios or check_tcp?

I have written some shell script to monitor such events, but also I would
like to integrate that scripts into nagios? Is that possible?

Please help me

Thanks


-- 
Shankar
--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com___
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_ping to monitor all IP's of a firewall

2009-03-25 Thread asam30
that worked like a charm!!!

you are correct, I was using -H  as a argument..

Thanks!



On Thu, Mar 5, 2009 at 6:44 PM, Kevin Keane  wrote:

> I can only guess, but it sounds as if all the service checks are still
> using check_ping instead of your new command check_ping_ip. Either that,
> or check_ping_ip is misdefined; make sure that the argument to -H in
> your command is $ARG1$, not the host IP address.
>
> You may want to turn on logging and check the Nagios log files to see
> what commands are actually being issued.
>
> asa...@gmail.com wrote:
> > Kevin,
> >
> > I did what you suggested, now I can one hostname and underneath I can
> > see services as ping_1, ping_2,. to monitor other ips in the same
> > host/device. this looks kool. But I tried to shut down one server that
> > relates to the IP ( i added my test server IP here to check), I can
> > still see that the host's IP is up and running in Nagios. And when I
> > down the actual hostname ie Prod-firewall all the services related to
> > that host were down.
> >
> > It looks the solution you gave me is not working. Any idea?
> >
> > Thanks
> >
> >
> > On Thu, Mar 5, 2009 at 2:26 PM, Kevin Keane  > > wrote:
> >
> > You can do the same thing in services as you did in hosts. First,
> > define
> > a new check command in commands.cfg:
> >
> > # 'check_ping_ip' command definition
> > define command{
> >command_namecheck_ping_ip
> >command_line$USER1$/check_ping -H $ARG1$ -w $ARG2$ -c
> > $ARG3$
> > -p 5
> >}
> >
> > And then add the services you need:
> >
> > define host {
> > host_name Prod-firewall
> > use generic-switch
> > address xx.xx.xx.40
> > hostgroups firewall
> > }
> >
> > define service {
> >host_name Prod-firewall
> >service_Description Ping_1
> >use generic-service
> >check_period   24x7
> >notification-interval 240
> >notification_period 24x7
> >check_command check_ping_ip!xx.xx.xx.40!3000.0,80%!5000.0,100%
> > }
> >
> >
> > define service {
> >host_name Prod-firewall
> >service_Description Ping_1
> >use generic-service
> >check_period   24x7
> >notification-interval 240
> >notification_period 24x7
> >check_command check_ping_ip!xx.xx.xx.41!3000.0,80%!5000.0,100%
> > }
> >
> > and so on
> >
> > asa...@gmail.com  wrote:
> > > Hi,
> > >
> > > I've a question on how to monitor multiple IP's of a firewall
> device
> > > using check_ping in Nagios. Example, I have a firewall
> > (prod-fireall)
> > > has 6 ip's associated with it so in host.cfg i should do like this
> > >
> > > define host{
> > >   host_name   Prod-firewall-0
> > >   use generic-switch
> > >   address xx.xx.xx.40
> > >   hostgroups  firewall
> > >   }
> > >
> > > define host{
> > >   host_name   Prod-firewall-1
> > >   use generic-switch
> > >   address xx.xx.xx.41
> > >   hostgroups  firewall
> > >   }
> > > define host{
> > >   host_name   Prod-firewall-2
> > >   use generic-switch
> > >   address xx.xx.xx.42
> > >   hostgroups  firewall
> > >   }
> > > like I need to assign different hostname per each ip address but in
> > > the nagios interface, this looks a long list of host name that
> > we dont
> > > want to have. Is there any way that I can have a single hostname
> > > showing in nagios interface and that should monitor all IPs
> > associated
> > > with it?
> > >
> >
>
>
> --
> Kevin Keane
> Owner
> The NetTech
> Find the Uncommon: Expert Solutions for a Network You Never Have to Think
> About
>
> Office: 866-642-7116
> http://www.4nettech.com
>
> This e-mail and attachments, if any, may contain confidential and/or
> proprietary information. Please be advised that the unauthorized use or
> disclosure of the information is strictly prohibited. The information herein
> is intended only for use by the intended recipient(s) named above. If you
> have received this transmission in error, please notify the sender
> immediately and permanently delete the e-mail and any copies, printouts or
> attachments thereof.
>
>
>
> --
> 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

Re: [Nagios-users] unable to open nagios web interface

2009-03-25 Thread asam30
may be you missed this,

ScriptAlias /cgi-bin/ "/home/nagios/apache2/cgi-bin/"

ScriptAlias /nagios/cgi-bin /home/nagios/nagios/sbin

AllowOverride AuthConfig
Options ExecCGI
Order allow,deny
Allow from all


Alias /nagios /home/nagios/nagios/share

AllowOverride AuthConfig
Options None
Order allow,deny
Allow from all



please follow all the steps in the installation giude, that will help you.



On Wed, Mar 25, 2009 at 6:06 AM, Patrick Morris wrote:

>
> On Tue, 24 Mar 2009, Pietto Vasco wrote:
>
> > I have just finished the ubuntu quickstart guide. after starting apache
> and nagios when I go to locahost/nagios-- 404 not found The requested URL
> /nagios was not found on this server
> >
> > I verified apache and nagios are running but no dice, Verified apache is
> listening
> > r...@nagios-vm01:/etc/apache2# sudo netstat -anp |grep '^tcp.*LISTEN'
> > tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 5063/apache2
> > tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 4655/cupsd
> > If I type in http:\\localhost is get it works!
>
> If http://localhost works, why are you trying to go to
> http://localhost/nagios?
>
> Assuming that second URL should work, it would be helpful to know what
> your Apache configuration looks like, and how Nagios is installed.  It's
> obvious Apache is running, or you wouldn't get a 404 error. What isn't
> so obvious is where you've told it to look for Nagios, and whether
> Nagios is actually installed there.
>
>
> --
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> ___
> 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
>



-- 
Shankar Asam
--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com___
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] Set up user for monitoring purpose

2009-03-23 Thread asam30
Hi All,

I would like to set up a new user (say monitor) for the purpose of
monitoring the nagios GUI interface & alerts. He should be having less
privileges than a user "nagiosadmin". Is that possible?

I just want to give him a basic privileges like acknowledge host and
services. can you tell me is there anyway to accomplish such task?

Thanks
-- 
Shankar
--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com___
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 Plugin question

2009-03-07 Thread asam30
This is most likely because your mysql was compiled with sun cc with
non-gcc compiler flags. Two options here:

1. If you don't need check_mysql*, just configure with "--without-mysql"

2. If you need mysql checks, edit plugins/Makefile, look for MYSQLCFLAGS
and remove any non-gcc flag there.

shankar

On Sat, Mar 7, 2009 at 12:55 AM, James Pratt  wrote:

>
>
> > -Original Message-
> > From: syed jafar [mailto:syed_ja...@hotmail.com]
> > Sent: Friday, March 06, 2009 2:16 PM
> > To: nagios-users@lists.sourceforge.net
> > Subject: [Nagios-users] Nagios Plugin question
> >
> > I am installing Nagios 1.4.1  plugin on a Solaris 10 box and when I
> run make or make
> > all I this get error message. Any ideas
> >
> > Thanks,
> > Syed Jafar
> >
> > # make
> >
>
>
> It appears you are missing mysql-devel pkg, or whatever it is named on
> sunfreeware.com these days...
>
>
> Regards,
> Jamie
>
>
> --
> 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
>



-- 
Shankar Asam
--
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

Re: [Nagios-users] check_ping to monitor all IP's of a firewall

2009-03-05 Thread asam30
Kevin,

I did what you suggested, now I can one hostname and underneath I can see
services as ping_1, ping_2,. to monitor other ips in the same
host/device. this looks kool. But I tried to shut down one server that
relates to the IP ( i added my test server IP here to check), I can still
see that the host's IP is up and running in Nagios. And when I down the
actual hostname ie Prod-firewall all the services related to that host were
down.

It looks the solution you gave me is not working. Any idea?

Thanks


On Thu, Mar 5, 2009 at 2:26 PM, Kevin Keane  wrote:

> You can do the same thing in services as you did in hosts. First, define
> a new check command in commands.cfg:
>
> # 'check_ping_ip' command definition
> define command{
>command_namecheck_ping_ip
>command_line$USER1$/check_ping -H $ARG1$ -w $ARG2$ -c $ARG3$
> -p 5
>}
>
> And then add the services you need:
>
> define host {
> host_name Prod-firewall
>  use generic-switch
> address xx.xx.xx.40
> hostgroups firewall
> }
>
> define service {
>host_name Prod-firewall
>service_Description Ping_1
>use generic-service
>check_period   24x7
>notification-interval 240
>notification_period 24x7
>check_command check_ping_ip!xx.xx.xx.40!3000.0,80%!5000.0,100%
> }
>
>
> define service {
>host_name Prod-firewall
>service_Description Ping_1
>use generic-service
>check_period   24x7
>notification-interval 240
>notification_period 24x7
>check_command check_ping_ip!xx.xx.xx.41!3000.0,80%!5000.0,100%
> }
>
> and so on
>
> asa...@gmail.com wrote:
> > Hi,
> >
> > I've a question on how to monitor multiple IP's of a firewall device
> > using check_ping in Nagios. Example, I have a firewall (prod-fireall)
> > has 6 ip's associated with it so in host.cfg i should do like this
> >
> > define host{
> >   host_name   Prod-firewall-0
> >   use generic-switch
> >   address xx.xx.xx.40
> >   hostgroups  firewall
> >   }
> >
> > define host{
> >   host_name   Prod-firewall-1
> >   use generic-switch
> >   address xx.xx.xx.41
> >   hostgroups  firewall
> >   }
> > define host{
> >   host_name   Prod-firewall-2
> >   use generic-switch
> >   address xx.xx.xx.42
> >   hostgroups  firewall
> >   }
> > like I need to assign different hostname per each ip address but in
> > the nagios interface, this looks a long list of host name that we dont
> > want to have. Is there any way that I can have a single hostname
> > showing in nagios interface and that should monitor all IPs associated
> > with it?
> >
> --
> Kevin Keane
> Owner
> The NetTech
> Find the Uncommon: Expert Solutions for a Network You Never Have to Think
> About
>
> Office: 866-642-7116
> http://www.4nettech.com
>
> This e-mail and attachments, if any, may contain confidential and/or
> proprietary information. Please be advised that the unauthorized use or
> disclosure of the information is strictly prohibited. The information herein
> is intended only for use by the intended recipient(s) named above. If you
> have received this transmission in error, please notify the sender
> immediately and permanently delete the e-mail and any copies, printouts or
> attachments thereof.
>
>
>
> --
> 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
>



-- 
Shankar Asam
--
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] check_ping to monitor all IP's of a firewall

2009-03-05 Thread asam30
Hi,

I've a question on how to monitor multiple IP's of a firewall device using
check_ping in Nagios. Example, I have a firewall (prod-fireall) has 6 ip's
associated with it so in host.cfg i should do like this

define host{
  host_name   Prod-firewall-0
  use generic-switch
  address xx.xx.xx.40
  hostgroups  firewall
  }

define host{
  host_name   Prod-firewall-1
  use generic-switch
  address xx.xx.xx.41
  hostgroups  firewall
  }
define host{
  host_name   Prod-firewall-2
  use generic-switch
  address xx.xx.xx.42
  hostgroups  firewall
  }
like I need to assign different hostname per each ip address but in the
nagios interface, this looks a long list of host name that we dont want to
have. Is there any way that I can have a single hostname showing in nagios
interface and that should monitor all IPs associated with it?

Please let me know if possoble

thanks



-- 
Shankar Asam
--
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

Re: [Nagios-users] Hostgroup Issue

2009-01-20 Thread asam30
a sample host.cfg of my nagios server,

define host{
host_name   airlin ; The name we're giving to this
host
alias   Airlin (TEST Server) ; A longer name associated
with the host
check_command   check-host-alive
check_interval  3
retry_interval  1
check_period24x7
max_check_attempts  10
address x.x.x.x; IP address of the host
hostgroups  linux-servers   ; Host groups this host is
associated with
contact_groups  admins
notification_interval   120
notifications_enabled   1
}

service.cfg

define service{
hostgroup_name  linux-servers
host_nameairlin,lnx-test1,lnx-test2
service_description Root partition
is_volatile 0
check_period24x7
check_interval  3
retry_interval  3
max_check_attempts  3
notification_interval   4
notification_period 24x7
notification_optionsw,u,c,r
check_command   check_nrpe!check_root
contact_groups  admins
}

check urs..


On Tue, Jan 20, 2009 at 3:06 PM, Alex Dehaini  wrote:

> /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg gives no
> errors
>
> I added the host and services to the host.cfg and service.cfg files. I
> added a group to the hostgroup file and added the hosts to the hostgroup
> file. I reloaded nagios
>
> In the cgi view, I see the hostgroup but it says there are no host or
> services added to it even after adding the host and service.
>
> Strange
>
>
> On Tue, Jan 20, 2009 at 9:31 AM,  wrote:
>
>> I do not understand your question properly.
>>
>> Do you have host.cfg and service.cfg files exists? and do you add hosts
>> and services to these files respectively?
>>
>> /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg gives any
>> errors or warnings and also paste the exact error when restarting the nagios
>>
>>
>> On Mon, Jan 19, 2009 at 5:55 PM, Alex Dehaini wrote:
>>
>>> Hi Guys,
>>>
>>> I just defined a hostgroup and added members to it. I have also added
>>> each host and their services. I checked nagios for any errors and there are
>>> none. When I restart nagios, I can see the hostgroup alright but there are
>>> no host/services under it. I get this error
>>>
>>> SITE-CANTOMENTS (
>>> CANTOMENTS )  No
>>> matching hosts  No matching services
>>> Any ideas?
>>>
>>>
>>> --
>>> This SF.net email is sponsored by:
>>> SourcForge Community
>>> SourceForge wants to tell your story.
>>> http://p.sf.net/sfu/sf-spreadtheword
>>> ___
>>> 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
>>>
>>
>>
>>
>> --
>> Shankar Asam
>>
>
>
>
> --
> Alex Dehaini
> Developer
> Site - www.alexdehaini.com
> Email - alexdeha...@gmail.com
>



-- 
Shankar Asam
--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword___
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] Hostgroup Issue

2009-01-20 Thread asam30
I do not understand your question properly.

Do you have host.cfg and service.cfg files exists? and do you add hosts and
services to these files respectively?

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg gives any
errors or warnings and also paste the exact error when restarting the nagios


On Mon, Jan 19, 2009 at 5:55 PM, Alex Dehaini  wrote:

> Hi Guys,
>
> I just defined a hostgroup and added members to it. I have also added each
> host and their services. I checked nagios for any errors and there are none.
> When I restart nagios, I can see the hostgroup alright but there are no
> host/services under it. I get this error
>
> SITE-CANTOMENTS  (
> CANTOMENTS )  No matching
> hosts  No matching services
> Any ideas?
>
>
> --
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> ___
> 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
>



-- 
Shankar Asam
--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword___
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] Setting up NRPE on HP UX

2009-01-06 Thread asam30
Hi,

The installation of nrpe on most Unices is pretty easy and outlined in the
README of the source code tarball. Once the nrpe is installed or binraies
downloaded from http://www.bennyvision.com/projects/nagios/index.php or
nagiosexchange site, you need to follow these things

The common way is to have nrpe started by inetd.

Add a line like this to your service:

# grep nrpe /etc/services
nrpe5666/tcp # Nagios Remote Plug-in Executor


Then configure your inetd similar to this.
Make sure that the paths to the nrpe binary and nrpe.cfg file are correct
and make a choice under what user nrpe should be run.

# grep nrpe /etc/inetd.conf
nrpestream tcp nowait nagios /usr/local/nagios/libexec/nrpe nrpe -c
/usr/local/nagios/libexec/nrpe.cfg -i

If all looks correct make inetd reload its conf.

# /usr/sbin/inetd -c

and check that it registered the new service

# tail /var/adm/syslog/syslog.log

# netstat -an -f inet|grep LISTEN|grep 5666

The most configuration part involves adapting nrpe.cfg to your needs and
checks that work on hpux.

You can start trying with some of the more common ones like

$ /opt/iexpress/nagios/libexec/check_nrpe -H 127.0.0.1 -c check_total_procs
PROCS CRITICAL: 369 processes

hope this helps

-Shankar


On Mon, Jan 5, 2009 at 10:43 PM, Christian Iñiguez <
challenger_jos...@yahoo.com.mx> wrote:

> Hi All!
>
> I have 2 machines with Unix HP UX, and I'd like to monitoring
> them installing nrpe, but I haven't found documentation or how to's about
> it.
>
> On Linux plataform is working very well, but it's a kind of difficult to do
> it on UNIX (HP UX)
>
> Does any body know how can perform this?
>
> Thanks in advance
>
>
>  ¡Todo sobre Amor y Sexo!
> La guía completa para tu vida en Mujer de Hoy.
> http://mx.mujer.yahoo.com/
>
>
> --
> ___
> 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
>



-- 
Shankar Asam
--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB___
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] How to add hosts, hostgroups and services from nagios interface

2008-12-26 Thread asam30
Hi all,

I've been using Nagios 3.0 for our environment and it's working like a
charm. We love it. The only problem I have it, every now an then I used to
add hosts, hostgroups and services to the Nagios. I have to login to the
Nagios server and go to host.cfg to add new hosts (define hosts) and
hostgroup.cfg / service.cfg ( to add groups and services) manually. Is there
any plug in or web administration available so that I can use that web
interface to add hosts,hostsgroups and services so that these changes will
directly applied to the configuration files rather than I go and manually
add them.

Can anyone using such interface or suggest anything on this?

Thanks in advance

-- 
Shankar Asam
--
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] how to monitor databases on windows through nagios`

2008-09-24 Thread asam30
Hi All,

Thank you for your time.

I'm still confused as to how we can monitor oracle database on windows box
from Nagios Server?

.check_nt does not seem to be much help with regards to the oracle database
as there are no oracle parameters defined in check_nt plugin (./check_nt -h)

using check_nt i did the following and they are working fine,

./check_nt -H 172.16.17.142  -p 12489 -v USEDDISKSPACE -l E -w 80 -c 90
E:\ - total: 117.20 Gb - used: 107.59 Gb (92%) - free 9.61 Gb (8%) | 'E:\
Used Space'=107.59Gb;93.76;105.48;0.00;117.20


./check_nt -H 172.16.17.142  -p 12489 -v MEMUSE -w 80 -c 90
Memory usage: total:5340.21 Mb - used: 1915.78 Mb (36%) - free: 3424.44 Mb
(64%) | 'Memory usage'=1915.78Mb;4272.17;4806.19;0.00;5340.21


 ./check_nt -H 172.16.17.142  -p 12489 -v UPTIME
System Uptime - 7 day(s) 1 hour(s) 36 minute(s)

The only plug-in check_oracle will work for oracle database monitoring and
this is working cool on unix boxes not on win box.

on the win box, nsc.ini file, I did commented for this,
;NRPEClient.dll

should I uncomment this for check_oracle to work properly? (this is a
production win box)

Do you want me to install oracle client on nagios server to fix this
problem?

can someone please help on this?

Thanks
-Shankar



On Sun, Sep 21, 2008 at 1:19 AM, moshe sharon <[EMAIL PROTECTED]> wrote:

> Hello
>  .
> The oracle services you should monitor using the NSCilent for example using
> the NSclient interface
> ./check_nt -H 192.168.1.1 -p 1248 -v SERVICESTATE -d SHOWALL -l Oracle
> Server
>
> or what ever method you are using
>
> as for the check_oracle. I suggest to install Oracle instant client and
> configure tnsnames.ora to connect to the windows database then from the
> command line test the oracle connection sqlplus user/[EMAIL PROTECTED] if all 
> is
> working you should be able to use check_oracle not
> **
> Oracle instant client can be found here:
> *
> http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxsoft.html
> *
> there are few other nice plugins for oracle checks in nagiosexchange
>
> --
> Moshe Sharon
> http://www.centerity.com
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> 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
>



-- 
Shankar Asam
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
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] how to monitor databases on windows through nagios`

2008-09-18 Thread asam30
Hi All,

I've installed nagios 3.0 server on red hat linux and monitoring windows
boxes  by installng nsclient++ add on. I was able to install and configure
fine on win box, now all c drive and memory paramters are showing on nagios
interface for windows. my question is how do we monitor oracle database and
it's services on windows box through nsclient?

I have couple of linux boxes where oracle db is instlaled and was able to
monitor using check_oracle plugin? but how do we accomplish the same on
windows machine?

can somebody please help us on this?

thanks
-- 
Shankar Asam
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
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] [Nagiosplug-help] how to monitor crond service

2008-09-06 Thread asam30
thanks. I will try check_procs and let you know.

On Sat, Sep 6, 2008 at 3:51 AM, Thomas Guyot-Sionnest <[EMAIL PROTECTED]>wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 05/09/08 09:41 AM, Heiko wrote:
> > On Fri, Sep 5, 2008 at 1:27 PM, Thomas Guyot-Sionnest <[EMAIL PROTECTED]>
> wrote:
>  > On 05/09/08 02:52 AM, [EMAIL PROTECTED] wrote:
>  Hi,
> 
>  I've few of HP UX and Linux boxes that were monitored by Nagios. for
> the
>  past few days, I've observed that cron service on HP UX keeps shutting
>  down and I need to manually restart cron service. Is there any way
>  through nagios we can monitor cron service on HP UX or Linux boxes so
> I
>  can login before no one compliance and restart the service?
> > Please do not cross-post to multiple mailing lists.
> >
> > if you have NSCA running on the Nagios server and send_nsca on the
> > client (and properly configured), do the following:
> >
> > 1. Create a passive service on Nagios (ex.: "Cron")
> > 2. Set the freshness threshold for that service (ex.: 350 seconds), and
> > use check_dummy as the active check (returning WARNING or CRITICAL
> > depending on your preferences)
> > 3. On the server, add a cron entry (according that the threshold in 3 is
> > adjusted for 5-minute intervals):
>  */5 * * * * nagios echo -e "\tCron\t0\tOK: Cron is running"
> | /path/to/send_nsca -H  -c 
> > NB.: I don't know about HP-UX but some cron daemons do not support */5
> > so you have to put "0,5,10,15,20,etc..." instead. If you're editing a
> > user crontab, remove the "nagios" argument (some cron do not support
> > system crontabs at all so you must edit a user's crontab)
> >
> >
> > Although if you're running important scripts/programs from crond, you
> > could simply monitor the scripts/rograms either by modifying them where
> > possible, or using a wrapper script to report status to send_nsca. This
> > way you won't have to monitor the daemon itself.
> >
> >
> > Oh, another way is to use check_procs, looking fro "crond", but if your
> > daemon just locks the check won't fail.
> >
> >> i did define the check like the following:
> >
> >> define command{
> >> command_namecheck_crond
> >> command_line$USER1$/check_snmp -H $HOSTADDRESS$ -P 2c -C
> >> $ARG1$ -o UCD-SNMP-MIB::prCount.2 -s 1
> >> }
>
> This requires UCD_SNMP or NET_SNMP, which might now be whatMs on your
> HP-UX box. It's possible that you have HP-UX specific MIBs for
> processes, but I can't help you regarding this.
>
> The simplest and most complete way is to have a cron job reporting back
> to Nagios as it check if Crond is also running scheduled jobs (what if
> the daemon is blocked somehow?). This is my suggestion quoted above.
>
> Another way that should work fairly well is using check_procs from
> Nagios-plugins, which has been designed to be portable among different
> platforms. I'm not very experienced with check_procs but I believe you
> can also check the state of the process, so you could probably alert if
> crond is not running or sleeping.
>
> - --
> Thomas
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFIwbED6dZ+Kt5BchYRAt8/AKDx8Em6n8sZ3hCNRiSc7tBPVvXB4gCgiVpJ
> PiQ9m4ULM2fvAuIunGkT3jA=
> =uHdM
>  -END PGP SIGNATURE-
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> 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
>



-- 
Shankar Asam
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
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] Is there any way to know who are logged in ?

2008-09-05 Thread asam30
Good question! I have the same question in my mind and need to know the
answer for it.

Thanks
-Shankar

On Fri, Sep 5, 2008 at 12:23 PM, J. Bakshi <[EMAIL PROTECTED]> wrote:

> Good morning,
>
> Hope all are well.
> I am using check_users to see the total logged in users. But I am very
> eager to know any possibility to check the
> logged in users too [ who are presently logged in ].
> Any way to do that ?
> many thanks
>
> --
> ~~
> Joydeep Bakshi, Linux System Admin
> Kolkatainfoservices Pvt Ltd,
> 23A Royd Street, Kolkata 700016, India
> Work Phone 91 033 40014784
> http://infoservices.in/
> ~~~
>
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> 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
>



-- 
Shankar Asam
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
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] how to monitor crond service

2008-09-04 Thread asam30
Hi,

I've few of HP UX and Linux boxes that were monitored by Nagios. for the
past few days, I've observed that cron service on HP UX keeps shutting down
and I need to manually restart cron service. Is there any way through nagios
we can monitor cron service on HP UX or Linux boxes so I can login before no
one compliance and restart the service?

Thanks

-- 
Shankar Asam
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
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] nrpe installation

2008-08-30 Thread asam30
run the same command from the nagios server to see if the nrpe working
between nagios server and client.

on the nagios server, if the nagios is installed at /usr/local/nagios then
/usr/local/nagios/libexec/check_nrpe -H  -c
check_users

if you get the output then, it compiled and working fine.




On Fri, Aug 29, 2008 at 3:16 PM, Krishna Chandra Prajapati <
[EMAIL PROTECTED]> wrote:

> I have executed on remote server
>
> [EMAIL PROTECTED] ~]# /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1
> NRPE v2.12
> [EMAIL PROTECTED] ~]# /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1
> -n
> CHECK_NRPE: Error receiving data from daemon.
> [EMAIL PROTECTED] ~]# vi /usr/local/nagios/etc/nrpe.cfg
> [EMAIL PROTECTED] ~]# /usr/local/nagios/libexec/check_users -w 5 -c 10
> USERS WARNING - 5 users currently logged in |users=5;5;10;0
>
>
>
> On Fri, Aug 29, 2008 at 3:06 PM, <[EMAIL PROTECTED]> wrote:
>
>>   only_from= 127.0.0.1 (here nagios server
>> ip address given or Monitoring server)
>>
>>
>>
>> Only allow access to nrpe deamon from localhost and the IP of the Nagios
>> server ( You don't want other systems to connect nrpe deamon)
>>
>>
>>
>> ( Run the below commands and send check the error message)
>>
>>
>>
>> /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1
>>
>>
>>
>> usr/local/nagios/libexec/check_nrpe -H 127.0.0.1  -n
>>
>>
>>
>> Also enable logging in nrpe.cfg and check the log.
>>
>>
>>
>> Regards,
>>
>> Naren
>>
>>
>>
>> *From:* Krishna Chandra Prajapati [mailto:[EMAIL PROTECTED]
>> *Sent:* Friday, August 29, 2008 3:01 PM
>> *To:* Narendran Neelamegam (WT01 - TECHNOLOGY INFRASTRUCTURE SERVICES
>> (GS))
>> *Cc:* nagios-users@lists.sourceforge.net
>> *Subject:* Re: [Nagios-users] nrpe installation
>>
>>
>>
>> Hi,
>>
>> nrpe daemon is running on the remote box. One thing is not clear to me (
>> from nrpe docs)
>>
>> Edit the /etc/xinetd.d/nrpe file and add the IP address of the monitoring
>> server to the only_from directive.
>> only_from= 127.0.0.1 (here nagios server
>> ip address given or Monitoring server)
>>
>> After executing on remote server
>> netstat -at | grep nrpe
>>
>> tcp 0   0 *:nrpe*:*LISTEN
>>
>> (below check_nrpe is not working)
>> Next, check to make sure the NRPE daemon is functioning properly. To do
>> this, run the check_nrpe plugin that
>> was installed for testing purposes.
>> /usr/local/nagios/libexec/check_nrpe -H localhost
>> You should get a string back that tells you what version of NRPE is
>> installed, like this:
>> NRPE v2.8
>> could not complete ssl handshake
>>
>>
>>
>>  On Fri, Aug 29, 2008 at 2:22 PM, <[EMAIL PROTECTED]> wrote:
>>
>> You don't need nrpe on both the monitoring and the remote sever.
>>
>>
>>
>> You need check_nrpe –on monitoring server and nrpe on the remote/monitored
>> server.
>>
>>
>>
>> I hope you have read the relevant section of the nrpe installation
>> document.
>>
>>
>>
>> Do you have additional information on the remote server such as OS etc.
>>
>>
>>
>> What trouble shooting steps you carried out?
>>
>>
>>
>> Naren
>>
>>
>>
>> *From:* [EMAIL PROTECTED] [mailto:
>> [EMAIL PROTECTED] *On Behalf Of *Krishna
>> Chandra Prajapati
>> *Sent:* Friday, August 29, 2008 2:07 PM
>>
>>
>> *To:* nagios-users@lists.sourceforge.net
>> *Subject:* [Nagios-users] nrpe installation
>>
>>
>>
>> I have setup nagios server its working properly. Now i need to add remote
>> server. So i have to install nrpe on monitoring server and  remote server.
>> But i am not able to configure nrpe properly on remote and monitoring server
>> although installed.properly
>>
>>
>> Any body please tell me how to configure nrpe on both remote and
>> monitoring server
>>
>>
>> --
>> Krishna Chandra Prajapati
>>
>> *Please do not print this email unless it is absolutely necessary. *
>>
>> The information contained in this electronic message and any attachments
>> to this message are intended for the exclusive use of the addressee(s) and
>> may contain proprietary, confidential or privileged information. If you are
>> not the intended recipient, you should not disseminate, distribute or copy
>> this e-mail. Please notify the sender immediately and destroy all copies of
>> this message and any attachments.
>>
>> WARNING: Computer viruses can be transmitted via email. The recipient
>> should check this email and any attachments for the presence of viruses. The
>> company accepts no liability for any damage caused by any virus transmitted
>> by this email.
>>
>> www.wipro.com
>>
>>
>>
>>
>> --
>> Krishna Chandra Prajapati
>> MySQL DBA,
>> Ed Ventures e-Learning Pvt.Ltd.
>> 1-8-303/48/15, Sindhi Colony
>> P.G.Road, Secunderabad.
>> Pin Code: 53
>> Office Number: 040-66489771
>> Mob: 9912924044
>> URL: ed-ventures-online.com
>> Email-id: [EMAIL PROTECTED]
>>
>> *Please do not print this email unless it is absolutely necessary. *
>>
>> The information contained in this electronic message and any attachments
>> to this message are intended for th

Re: [Nagios-users] Reg: CHECK_NRPE: Socket timeout after 60 seconds

2008-08-30 Thread asam30
another questio, does the nrpe compiled with ssl or without?

if it is without, then try using -n after the command




On Fri, Aug 29, 2008 at 9:02 PM, Assaf Flatto <[EMAIL PROTECTED]>wrote:

> Can you provide some data ?
>
> Like what are you trying to run ?
> what is the load on the machine your trying to test ?
> what is the  PING RTA to the machine ?
> what is the timeout defined in the nrpe.cfg  for the machine you are trying
> to check ?
> does the nrpe limit the servers that can connect to it ? maybe your nagios
> IP is not in the
> definitions ?
>
> Assaf
>
> On Friday 29 August 2008 14:27:54 [EMAIL PROTECTED] wrote:
> > Hi,
> >  I have received the CHECK_NRPE: Socket timeout after 60 seconds error
> > while running the command (own script and which is working on other
> server)
> > I am able to run other commands without any error. could anyone help me.
> >
> > Regards
> > G. Mohan Kumar
> >
> > 
>
>
>
>
>
>
> IMPORTANT . this email and the information in it may be confidential,
> legally
> privileged and/or protected by law. It is intended solely for the use of
> the
> person to whom it is addressed. If you are not the intended recipient,
> please
> notify the sender immediately and do not disclose the contents to any other
> person, use it for any purpose, or store or copy the information in any
> medium.
> Please also delete all copies of this email and any attachments from your
> system.
>
> We cannot guarantee the security or confidentiality of email
> communications. We
> do not accept any liability for losses or damages that you may suffer as a
> result of your receipt of this email including but not limited to computer
> service or system failure, access delays or interruption, data non-delivery
> or
> mis-delivery, computer viruses or other harmful components.
>
> Copyright in this email and any attachments belong to Select Service
> Partner UK
> Limited. Should you communicate with anyone at Select Service Partner UK
> Limited by
> email, you consent to us monitoring and reading any such correspondence.
>
> Nothing in this email shall be taken or read as suggesting, proposing or
> relating to any agreement concerted practice or other practice that could
> infringe UK or EC competition legislation.
>
> Select Service Partner UK Limited is a company registered in England and
> Wales
> (company number 05687183) whose registered office is at 1 The Heights,
> Brooklands, Weybridge. Surrey. KT13 0NY
>
>
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> 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
>



-- 
Shankar Asam
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
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] unable to install nagios-plug ins on HP UX

2008-07-30 Thread asam30
I have installed precompiled plugins from the link marc gave me and it work
as it should

thank you all for your support

On Wed, Jul 30, 2008 at 7:22 PM, Marc Powell <[EMAIL PROTECTED]> wrote:

>
> On Jul 30, 2008, at 8:35 AM, [EMAIL PROTECTED] wrote:
>
> > Hi,
> >
> > I set up nagios server on Red Hat Linux box and trying to make HP UX
> > as nagios client to it. I'm trying to install nagios-plugins (nagios-
> > plugins-1.4.11) on HP UX - PA RISC and found some problems. After
> > untar nagios-plugin and then execute
> >
>
> Pre-compiled binaries of the plugins, NSCA and NRPE are available for
> various versions of HP-UX if that interests you --
>
>
> http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Check_Plugins%2FOperating_Systems%2FHP-UX%2Findex.html;d=1
>
> --
> Marc
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> 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
>



-- 
Shankar Asam
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
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] unable to install nagios-plug ins on HP UX

2008-07-30 Thread asam30
Marc,

will this work for HP UX PA RISC and the release HP UX 11.23.? Do you have
any procedure how to install this?

Sorry for asking this since I always configure and compile sources prior to
the pre compiled ones.

appreciate your patience

thanks
On Wed, Jul 30, 2008 at 7:22 PM, Marc Powell <[EMAIL PROTECTED]> wrote:

>
> On Jul 30, 2008, at 8:35 AM, [EMAIL PROTECTED] wrote:
>
> > Hi,
> >
> > I set up nagios server on Red Hat Linux box and trying to make HP UX
> > as nagios client to it. I'm trying to install nagios-plugins (nagios-
> > plugins-1.4.11) on HP UX - PA RISC and found some problems. After
> > untar nagios-plugin and then execute
> >
>
> Pre-compiled binaries of the plugins, NSCA and NRPE are available for
> various versions of HP-UX if that interests you --
>
>
> http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Check_Plugins%2FOperating_Systems%2FHP-UX%2Findex.html;d=1
>
> --
> Marc
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> 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
>



-- 
Shankar Asam
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
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] unable to install nagios-plug ins on HP UX

2008-07-30 Thread asam30
Hi,

I set up nagios server on Red Hat Linux box and trying to make HP UX as
nagios client to it. I'm trying to install nagios-plugins
(nagios-plugins-1.4.11) on HP UX - PA RISC and found some problems. After
untar nagios-plugin and then execute

./configure --prefix=/usr/local/nagios


checking for working re_compile_pattern... no
checking whether isblank is declared... yes
checking for stdint.h... (cached) yes
checking for SIZE_MAX... (((1UL << 31) - 1) * 2 + 1)
checking for snprintf... yes
checking for socklen_t... no
checking for socklen_t equivalent... configure: error: Cannot find a type to
use in place of socklen_t
bash-3.2# tail -f config.log
#define regcomp rpl_regcomp
#define regexec rpl_regexec
#define regerror rpl_regerror
#define regfree rpl_regfree
#define HAVE_DECL_ISBLANK 1
#define HAVE_STDINT_H 1
#define SIZE_MAX (((1UL << 31) - 1) * 2 + 1)
#define HAVE_SNPRINTF 1
configure: exit 1
can you please let us know how we can fix this?

Thanks


-- 
shankar
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
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] [Nagiosplug-help] schedule check problem

2008-07-24 Thread asam30
I agree with the Mark's point. I see there are two nagios deamons running
under background for some reason. I will post all details as soon as I reach
my office.

Thanks all for your help

-Shankar

On Wed, Jul 23, 2008 at 8:00 AM, Marc Powell <[EMAIL PROTECTED]> wrote:

>
> On Jul 22, 2008, at 8:30 PM, Thomas Guyot-Sionnest wrote:
>
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> >
> > On 22/07/08 05:09 AM, [EMAIL PROTECTED] wrote:
> >> Hi,
> >>
> >>
>
> >> The time is not sync properly and when I refresh the page maually, it
> >> shows all services are in green which means all are working ok. but
> >> after few seconds when I refresh the same page manually, the services
> >> were in red color. tells me the error as , critical CHECK_NRPE:
> >> Socket
> >> timeout after 10 seconds
> >>
> >> then if you refresh later some point, all service will show in green.
> >> why does this difference?
> >>
> >> where do i change the settings so the time on the nagios interface
> >> will
> >> sync the time with the nagios server?
>
>
> > The issue about having all service ok, than all red is very strange...
>
> I would suspect multiple nagios daemons running at the same time in a
> case like this. The other symptoms sound consistent with that.
>
> --
> Marc
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> 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
>



-- 
Shankar Asam
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
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] schedule check problem

2008-07-22 Thread asam30
I am not using ntp server. I am thinking of implementing the NTP server. I
will try to do that and get back to you.

Thanks all your help

On Tue, Jul 22, 2008 at 2:46 PM, Dennis Hünseler <[EMAIL PROTECTED]>
wrote:

>  [EMAIL PROTECTED] schrieb:
>
> Hi,
>
> I've got a strange problem with the nagios. Recently, for testing purpose
> we did install nagios server on a intel based pc and now we would like to
> move the nagios server to an high end machine like HP proliant DL 380.
>
> The nagios server on Intel based pc works fine and it was able to monitor
> all the clients using check_nrpe plugin. I have now installed nagios server,
> nagios plugins and nrpe on a high end machine and copied all the
> configuration files from old server to here and then started nagios service.
> All looks ok except for scheduling checks.
>
> The time on nagios server is ahead of the time displayed on the nagios
> interface for Next Scheduled Check. The Next Scheduled Check for some
> service shows,
>
> Next Scheduled Check:  07-22-2008 09:31:04
> Last Check Time:07-22-2008 09:37:53
>
> but the time on nagios server is,
> Tue Jul 22 09:40:06 GMT 2008
>
> The time is not sync properly and when I refresh the page maually, it shows
> all services are in green which means all are working ok. but after few
> seconds when I refresh the same page manually, the services were in red
> color. tells me the error as , critical CHECK_NRPE: Socket timeout after 10
> seconds
>
> then if you refresh later some point, all service will show in green. why
> does this difference?
>
> where do i change the settings so the time on the nagios interface will
> sync the time with the nagios server?
>
> please help me!!!
>
> Thanks
>
> --
> Shankar Asam
>
> --
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the 
> worldhttp://moblin-contest.org/redirect.php?banner_id=100&url=/
>
> --
>
> ___
> Nagios-users mailing [EMAIL 
> PROTECTED]://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
>
>  Hi,
> you should be sure that all your servers(nagios server and the ones being
> checked) run the same time, for example by using a ntp server to synchronise
> your time. That will avoid any problems like different time in checks
>
> Kind regards,
> Dennis Hünseler
>



-- 
Shankar Asam
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
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] schedule check problem

2008-07-22 Thread asam30
Hi,

I've got a strange problem with the nagios. Recently, for testing purpose we
did install nagios server on a intel based pc and now we would like to move
the nagios server to an high end machine like HP proliant DL 380.

The nagios server on Intel based pc works fine and it was able to monitor
all the clients using check_nrpe plugin. I have now installed nagios server,
nagios plugins and nrpe on a high end machine and copied all the
configuration files from old server to here and then started nagios service.
All looks ok except for scheduling checks.

The time on nagios server is ahead of the time displayed on the nagios
interface for Next Scheduled Check. The Next Scheduled Check for some
service shows,

Next Scheduled Check:  07-22-2008 09:31:04
Last Check Time:07-22-2008 09:37:53

but the time on nagios server is,
Tue Jul 22 09:40:06 GMT 2008

The time is not sync properly and when I refresh the page maually, it shows
all services are in green which means all are working ok. but after few
seconds when I refresh the same page manually, the services were in red
color. tells me the error as , critical CHECK_NRPE: Socket timeout after 10
seconds

then if you refresh later some point, all service will show in green. why
does this difference?

where do i change the settings so the time on the nagios interface will sync
the time with the nagios server?

please help me!!!

Thanks

-- 
Shankar Asam
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
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] Fwd: CHECK_NRPE: Socket timeout after 10 seconds.

2008-06-30 Thread asam30
Sure,

The problem was SSL handshake. what I did, on the remote solaris machine I
recompiled nrpe without the ssl support (./configure --help will tell you
how to do that). Once this is done, I executed the following command from
the nagios server

 /home/nagios/nagios/libexec/check_nrpe -H 10.192.2.60 -c check_users -n
USERS OK - 2 users currently logged in |users=2;5;10;0

So,  If the remote system was built and configured without ssl, you can
define a separate entry in commands.cfg on the nagios server as in the
following example:

define command{
command_name check_nrpe_no_ssl
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -n
}

(note the -n qualifier in the command_line) modify your service check (in
services.cfg) to use check_nrpe_no_ssl and restart the nagios server
ex: check_nrpe_no_ssl!check_users!-n

Hope this helps

Regards
-Shankar

On Mon, Jun 30, 2008 at 7:45 PM, Matthew Macdonald-Wallace <
[EMAIL PROTECTED]> wrote:

> On Mon, 30 Jun 2008 18:36:52 +0530
> [EMAIL PROTECTED] wrote:
>
> > I was able to fix this myself.
>
> Can you tell us how so that people who have a similar problem in future
> know what to do?
>
> Thanks,
>
> Matt
> --
> Matthew Macdonald-Wallace
> [EMAIL PROTECTED]
> http://www.truthisfreedom.org.uk
>
> -
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> ___
> 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
>



-- 
Shankar Asam
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
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] Fwd: CHECK_NRPE: Socket timeout after 10 seconds.

2008-06-30 Thread asam30
I was able to fix this myself.

Regards
-Shankar

-- Forwarded message --
From: <[EMAIL PROTECTED]>
Date: Tue, Jun 10, 2008 at 7:46 PM
Subject: CHECK_NRPE: Socket timeout after 10 seconds.
To: nagios-users@lists.sourceforge.net


Hi,

I have successfully installed and configured nagios on redhat linux box and
now I'm trying to monitor nagios client on solaris 10 box. I've installed
nagios plugins and nrpe fine. But when try to run check_nrpe from nagios
server it gives the following error,

[EMAIL PROTECTED] libexec]$ ./check_nrpe -H 10.192.2.60 -c check_root
CHECK_NRPE: Socket timeout after 10 seconds.

on the solaris box when I run the same command it works.

[EMAIL PROTECTED] # /usr/local/nagios/libexec/check_disk -w 20% -c 10% -W 10% -K
5% -p /
DISK OK - free space: / 9311 MB (95% inode=97%);| /=439MB;7880;8865;0;9850

The nrpe deamon works fine on the remote solaris box and I can even telnet
to it from nagios server.

I need to know how to restart the xinetd service on the solaris box ?

[EMAIL PROTECTED] # /usr/local/nagios/libexec/check_nrpe -H localhost
NRPE v2.12


Please suggest how to fix this?

Thanks


-- 
Shankar Asam



-- 
Shankar Asam
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
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] configure error Cannot find a type to use in place of socklen_t

2008-06-30 Thread asam30
Hi,

I am running Nagios Server on RHEL 4 ES box and trying to install
nagios-plugins on HP UX - 11 box. But I get configure error,

./configure --prefix=/client/nagios throws the following error at the end

checking for struct statfs.f_fstypename... no
checking for working re_compile_pattern... no
checking whether isblank is declared... yes
checking for stdint.h... (cached) no
checking for SIZE_MAX... (((1UL << 31) - 1) * 2 + 1)
checking for snprintf... yes
checking for socklen_t... no
checking for socklen_t equivalent... configure: error: Cannot find a type to
use in place of socklen_t


hp-test-box:/client/nagios/nagios-plugins-1.4.11# tail config.log
#define re_exec rpl_re_exec
#define regcomp rpl_regcomp
#define regexec rpl_regexec
#define regerror rpl_regerror
#define regfree rpl_regfree
#define HAVE_DECL_ISBLANK 1
#define SIZE_MAX (((1UL << 31) - 1) * 2 + 1)
#define HAVE_SNPRINTF 1

configure: exit 1


can anyboy has solution for it?

Thanks
-- 
Shankar Asam
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
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] NRPE Install Error

2008-06-21 Thread asam30
Scott,

Paste the content of /etc/xinetd.d/nrpe file here.

Please make sure when you telnet from nagios server to remote monitoring
host on 5666, is the connection closed automatically after you execute the
command or you yourself did close the connection by pressing ctrl + ]


To avoid getting, "could not complete ssl hand shake" please follow this.

If you are monitoring the intranet host behind the firewall and sure that
you dont need the ssl then go again and compile nrpe plugins with out the
ssl support.


./configure -disable-ssl   or --disable-ssl (not sure about it, please see
./configure --help for more info)
and then make all , make install.

hope this helps.
please let me know..



On Fri, Jun 20, 2008 at 5:59 PM, <[EMAIL PROTECTED]> wrote:

> Quoting Scott Ackerman <[EMAIL PROTECTED]>:
>
> > Shankar,
> >
> > thanks for the help. The nrpe daemon is running on the remote server.
> There
> > were no ./configure problems on the remote server, and the only "warning"
> I
> > received when I ran ./configure on the monitoring host was "checking for
> > Kerberos include files... could not find include files"
> >
> > When I ran telnet from the monitoring host to the server I got the
> > following:
> >
> > trying 
> > connected to 
> > escape character is '^}'.
> > connection closed by foreign host.
> >
> > So it seems as if the ports are opened between the two. Firewall access
> is
> > allowed between the two (obviously or telnet would not have worked).
> >
> > But I am still stuck in the same spot witht the "CHECK NRPE: Error -
> Could
> > not complete SSL handshake."
> >
> >   _
> >
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: Friday, June 20, 2008 1:25 AM
> > To: Scott Ackerman
> > Subject: Re: [Nagios-users] NRPE Install Error
> >
> >
> > Please make sure ./configure went properly and complied nrpe without any
> > errors. Also check if the nrpe daemon running, ps -ef | grep nrpe or ps
> -ef
> > | grep 5666
> >
> > from the nagios server, try
> > telnet  5666
> >
> > you can also check if the firewall access allow between the two
> > servers(nagios and remote host).
> >
> > Hope this helps
> >
> > -Shankar
> >
> >
> > On 6/20/08, Scott Ackerman <[EMAIL PROTECTED]> wrote:
> >
> >
> > I have successfully installed NRPE on the remote server (FC6 box). I have
> > run the check_nrpe "tests" to verify that everything is working
> correctly.
> > On the monitoring server however (CentOS 5.1 box) when I run
> > "/usr/local/nagios/libexec/check_nrpe -H (IP address of remote server), I
> > get the following error:
> >
> > CHECK_NRPE: Error - Could not complete SSL handshake.
> >
> > the only "negative" reponse that I got when I ran ./configure was
> "checking
> > for Kerberos include files... could not find include files. Sorry but I
> am
> > new at this, but I am stumped at this point. The only thing that the
> > documentation says is what to check if you get a "timeout error".
> >
> > Nagios v 3.02
> >
> > Scott Ackerman
> > 1212 Baker Street
> > Fort Collins, Colorado 80524
> > Office - (970) 689-3999
> > Cell - (970) 231-9035
> > Fax - (888) 290-2131
> > www.us-able.com 
> >
> > "Design is not just what it looks like and feels like. Design is how it
> > works" - Steve Jobs
> >
> >
> > -
> > Check out the new SourceForge.net Marketplace.
> > It's the best place to buy or sell services for
> > just about anything Open Source.
> > http://sourceforge.net/services/buy/index.php
> > ___
> > 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
> >
> >
> >
> >
> >
> > --
> > Shankar Asam
> >
>
> Scott,
> In case you haven't already checked...make sure that in the /etc/services
> line
> you have port 5666 specified correctly. If you are running nrpe from xinetd
> make sure that the only_from = is set correctly.
>
> Check the logs for obvious errors and if that still yields nothing
> valuable,
> then you may want to look at tcpdump and or strace to see what's going on
> at a
> lower level.
>
> -Jonathan Murray
> Linux Administrator
> W.H.O.I
>
>
> 
> This message was sent using IMP, the Internet Messaging Program.
>
>
> -
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Pl

Re: [Nagios-users] Version of check_nrpe plugin and the NRPE daemon

2008-06-13 Thread asam30
you can check the nrpe version on the remote host using the following
command

on the nagios server,

[EMAIL PROTECTED] libexec]$ /home/nagios/nagios/libexec/check_nrpe -H

NRPE v2.12

It helps.
-Shankar

On Fri, Jun 13, 2008 at 5:06 PM, Kaushal Shriyan <[EMAIL PROTECTED]>
wrote:

> Hi,
>
> I am referring to
> http://www.nagios.org/faqs/viewfaq.php?faq_id=191&expand=false&showdesc=falsefor
>  Make sure you are using the same version of the check_nrpe plugin and
> the NRPE daemon.
>
> How can i check the version of check_nrpe plugin and the NRPE daemon.
>
> Thanks and Regards
>
> Kaushal
>
> -
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> ___
> 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
>



-- 
Shankar Asam
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
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] CHECK_NRPE: Socket timeout after 10 seconds.

2008-06-10 Thread asam30
Hi,

I have successfully installed and configured nagios on redhat linux box and
now I'm trying to monitor nagios client on solaris 10 box. I've installed
nagios plugins and nrpe fine. But when try to run check_nrpe from nagios
server it gives the following error,

[EMAIL PROTECTED] libexec]$ ./check_nrpe -H 10.192.2.60 -c check_root
CHECK_NRPE: Socket timeout after 10 seconds.

on the solaris box when I run the same command it works.

[EMAIL PROTECTED] # /usr/local/nagios/libexec/check_disk -w 20% -c 10% -W 10% -K
5% -p /
DISK OK - free space: / 9311 MB (95% inode=97%);| /=439MB;7880;8865;0;9850

The nrpe deamon works fine on the remote solaris box and I can even telnet
to it from nagios server.

I need to know how to restart the xinetd service on the solaris box ?

[EMAIL PROTECTED] # /usr/local/nagios/libexec/check_nrpe -H localhost
NRPE v2.12


Please suggest how to fix this?

Thanks


-- 
Shankar Asam
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
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] Fwd: The results of your email commands

2008-06-10 Thread asam30
Thank you

That fixed my problem

On Thu, Jun 5, 2008 at 8:03 AM, Thomas Guyot-Sionnest <[EMAIL PROTECTED]>
wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 04/06/08 02:02 AM, [EMAIL PROTECTED] wrote:
> > Hi,
> >
> > I am trying to install nagios plugins on solaris spac 10. It was able to
> > configure fine but problems comes up while compiling.
> >
> > # make
> > gcc: language strconst not recognized
> > gcc: check_mysql.c: linker input file unused because linking not done
> > mv: cannot access .deps/check_mysql-check_mysql.Tpo
> > make[2]: *** [check_mysql-check_mysql.o] Error 2
> > make[2]: Leaving directory
> `/usr/local/nagios/nagios-plugins-1.4.11/plugins'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/usr/local/nagios/nagios-plugins-1.4.11'
> > make: *** [all] Error 2
> >  # which make
> > /usr/local/bin/make
> > I've downloaded gnu make from sunfreeware.com 
> > from the below suggestion,
> >
> > http://www.nagios.org/faqs/viewfaq.php?faq_id=78
> >
> > I was actually getting the error in the above url but as per the
> > suggestion I've downloaded make-3.81 and installed it. Then it reportes
> > the above error which I gave here.
> >
> > Please suggest
>
> This is most likely because your mysql was compiled with sun cc with
> non-gcc compiler flags. Two options here:
>
> 1. If you don't need check_mysql*, just configure with "--without-mysql"
>
> 2. If you need mysql checks, edit plugins/Makefile, look for MYSQLCFLAGS
> and remove any non-gcc flag there.
>
> Thomas
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFIR1CB6dZ+Kt5BchYRAr0iAKCeq1KuqNskm4nenx3ZNCz2NxQq/QCgwraw
> a/xrbMxORHcqk24In3cqCQE=
> =72QW
> -END PGP SIGNATURE-
>



-- 
Shankar Asam
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
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] Fwd: The results of your email commands

2008-06-03 Thread asam30
 Hi,

I am trying to install nagios plugins on solaris spac 10. It was able to
configure fine but problems comes up while compiling.

# make
gcc: language strconst not recognized
gcc: check_mysql.c: linker input file unused because linking not done
mv: cannot access .deps/check_mysql-check_mysql.Tpo
make[2]: *** [check_mysql-check_mysql.o] Error 2
make[2]: Leaving directory `/usr/local/nagios/nagios-plugins-1.4.11/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/nagios/nagios-plugins-1.4.11'
make: *** [all] Error 2
 # which make
/usr/local/bin/make
I've downloaded gnu make from sunfreeware.com from the below suggestion,

http://www.nagios.org/faqs/viewfaq.php?faq_id=78

I was actually getting the error in the above url but as per the suggestion
I've downloaded make-3.81 and installed it. Then it reportes the above error
which I gave here.

Please suggest

Thanks

-- 
Shankar Asam




-- 
Shankar Asam
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
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] check_oracle does not work

2008-05-22 Thread asam30
 Hello,

I was trying t monitor check_oracle plug in via nrpe daemon and
unsuccessful. I had a problem of "No TNS listener message" on my nagios
console. Now I am trying to monitor without the nrpe deamon. just simply
using nagios plug in check_oracle

commands.cfg has,

define command{
command_name check_oracle
command_line $USER1$/check_oracle $ARG1$ $ARG2$
}
services.cfg has,

define service{
host_name
!somemachine1,!sommachine2,somemachine3
hostgroup_name  pay-db,mspl-db
service_description ORACLE SID
is_volatile 0
check_period24x7
check_interval  3
retry_interval  3
max_check_attempts  3
notification_interval   4
notification_period 24x7
notification_optionsw,u,c,r
check_command   check_oracle!--db playdb1
contact_groups  admins
}
oracle server is runnng on somemachine3 with the SID playdb1. If I log into
remote machine and execute,

[EMAIL PROTECTED] libexec]$ ./check_oracle --db playdb1
playdb1 OK - 1 PMON process(es) running

but from nagios machine,

[EMAIL PROTECTED] libexec]$ ./check_oracle --db playdb1
playdb1 Database is DOWN
[EMAIL PROTECTED] libexec]$ ./check_oracle --tns playdb1
Cannot determine ORACLE_HOME for sid playdb1

I have set the proper ORACLE_HOME, ORACLE_SID , PATH variable both on nagios
and remote machine well. I aslo enter paramters into tnsnames.ora on remote
machine (where oracle is running) for nagios user.

But the problem still persists,

can you someone please help in this?

Thanks
-
shankar
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null