Re: [Nagios-users] Using Nagios to Monitor RDP

2007-11-19 Thread Philipp Geschke
Joel Roberts schrieb:
> Want to use Nagios to monitor RDP availability on a Windows 2k3 server
> (port 3389). Have put the following in my windows.cfg file:
> 
>  
> 
> define service{
> 
> use   generic-service
> 
> host_nameSERVERNAME
> 
> service_description   RDP
> 
> check_command   check_tcp!3389
> 
> }
> 
>  
> 
> But get an error when I try to verify the config files. Anyone else
> using check_tcp and see what I’m doing wrong here? I know the host is
> configured correctly in the file, I’m using it to monitor other services
> (HTTP and Ping) with no problem.
> 
>  
> 
> Thanks in advance.
> 
>

That doesn't look wrong.
Make sure the template generic-service defines all obligatory values.

What does the error say in detail? (nagios -v output).

This is the way my RDP monitoring is set up:

define service {
use default-service
host_name   SERVERNAME
service_description RDP
check_command   check_tcp!3389
}

define service{
namedefault-service
active_checks_enabled   1
passive_checks_enabled  0
parallelize_check   1
obsess_over_service 1
check_freshness 0
notifications_enabled   1
event_handler_enabled   0
flap_detection_enabled  0
process_perf_data   1
retain_status_information   1
retain_nonstatus_information1
register0

is_volatile 0
check_period24x7
max_check_attempts  5
normal_check_interval   5
retry_check_interval1
contact_groups  contacts
notification_interval   30
notification_period 24x7
notification_optionsc,r
}

define command{
command_namecheck_tcp
command_line$USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG1$
}

Also make sure, check_tcp is really located under $USER1$.



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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

[Nagios-users] Using Nokia 6210 to send SMS with gnokii

2007-11-22 Thread Philipp Geschke
Hey list,

I'm trying to use a Nokia 6210 mobile phone to send Nagios notifications
to other cell phones.

I have the 6210 with software version 04.36.
I have a DAU9 serial cable.

What I don't have is any success :(

I tried running the phone with gnokii, without any success. There are
tons of "working" configurations out there. Tried most of them, so far
non worked.

Just to make sure, the cable and phone are ok, I tried running the Nokia
PC Suite on Windows 2000. Also, without success, the phone is not found.

Since the phone already worked with a serial cable connection, and the
cable is new, I don't think that one of them is actually broken, but
what do I know.

So, my question is:
Is anybody out there using a Nokia 6210 with a serial cable (DAU9 would
be best) successfully? Maybe even with gnokii?

If so, it would be awesome, if you could provide me with a REALLY
working configuration, so I could either get it to run, or ensure that
"something" is broken.


Or maybe someone has the same issues and we could share experience and
maybe figure it out?

Right now I'm using the following gnokii configuration:

[global]
port = /dev/ttyS0
model = 7110
initlength = default
connection = serial
use_locking = yes
serial_baudrate = 9600
smsc_timeout = 10
[gnokiid]
bindir = /usr/sbin/
[connect_script]
TELEPHONE = 12345678
[disconnect_script]

Thanks a lot in advance ;-)

Regards,
Philipp

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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


Re: [Nagios-users] Using Nokia 6210 to send SMS with gnokii

2007-11-23 Thread Philipp Geschke
Allan, thanks for your answer.

I don't know what was the problem was, but with moving to a different
box my configuration worked.

It seems as if (for some reason) the linux box didn't like the mobile,
and the windows box was... well... a windows box ;-))

Anyway, if someone wants to use the combination of the 6210, a dau9
cable and linux with gnokii, this configuration worked for me:


[global]
port = /dev/ttyS0   #might be different, depending on how many serial
ports you have, an which you use, this is com1.
model = 7110#this driver includes the 6210
initlength = default
connection = dau9p  # connection = serial also works, but with the dau9p
setting you get a way better performance with the dau9 cable.
use_locking = yes
serial_baudrate = 19200 #unused setting, only in AT mode.
smsc_timeout = 10

[gnokiid]
bindir = /usr/sbin/

[connect_script]
TELEPHONE = 12345678
[disconnect_script]

[logging]
debug = off
rlpdebug = off

Anyway, I AM experiencing instability with this combination, my first
guess was that the cell phone might be a bit odd (some commands ended up
in an error and the cell phone wouldn't work until restarted), so I
think I'll give gammu a shot. Thanks for the hint.


Regards,
Philipp

Allan Holdt Hansen INBODAN schrieb:
> This will probably not solve your problem, but I'll throw in my 2(euro)cents 
> anyway.
> 
> After having had all sorts of weird problems with gnokii in the past, mosty 
> connectivity and stability problems I switched to gammu (www.gammu.org). 
> 
> Works very stable. It has an SMS gateway feature (smsd) I suggest using.
> 
> My gammurc (Nokia 6310i phone):
> 
> [global]
> port = /dev/ttyS0
> model = 6310i
> connection = dau9p
> use_locking = yes
> serial_baudrate = 19200
> smsc_timeout = 10
> 
> [gnokiid]
> bindir = /usr/local/sbin/
> 
> [connect_script]
> TELEPHONE = 12345678
> [disconnect_script]
> 
> 
> [logging]
> debug = off
> rlpdebug = off
> xdebug = off
> 
> Regards
> Allan
> 
> 
> -Oprindelig meddelelse-
> Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af Philipp Geschke
> Sendt: 22. november 2007 10:00
> Til: nagios-users@lists.sourceforge.net
> Emne: [Nagios-users] Using Nokia 6210 to send SMS with gnokii
> 
> Hey list,
> 
> I'm trying to use a Nokia 6210 mobile phone to send Nagios notifications
> to other cell phones.
> 
> I have the 6210 with software version 04.36.
> I have a DAU9 serial cable.
> 
> What I don't have is any success :(
> 
> I tried running the phone with gnokii, without any success. There are
> tons of "working" configurations out there. Tried most of them, so far
> non worked.
> 
> Just to make sure, the cable and phone are ok, I tried running the Nokia
> PC Suite on Windows 2000. Also, without success, the phone is not found.
> 
> Since the phone already worked with a serial cable connection, and the
> cable is new, I don't think that one of them is actually broken, but
> what do I know.
> 
> So, my question is:
> Is anybody out there using a Nokia 6210 with a serial cable (DAU9 would
> be best) successfully? Maybe even with gnokii?
> 
> If so, it would be awesome, if you could provide me with a REALLY
> working configuration, so I could either get it to run, or ensure that
> "something" is broken.
> 
> 
> Or maybe someone has the same issues and we could share experience and
> maybe figure it out?
> 
> Right now I'm using the following gnokii configuration:
> 
> [global]
> port = /dev/ttyS0
> model = 7110
> initlength = default
> connection = serial
> use_locking = yes
> serial_baudrate = 9600
> smsc_timeout = 10
> [gnokiid]
> bindir = /usr/sbin/
> [connect_script]
> TELEPHONE = 12345678
> [disconnect_script]
> 
> Thanks a lot in advance ;-)
> 
> Regards,
> Philipp



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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


Re: [Nagios-users] check if not port open then OK

2007-12-05 Thread Philipp Geschke
Sjaak Nabuurs VSM Hosting schrieb:
> Hi nagios users
> 
> I've a win 2003 server online as terminal server ;-(
> with nagios I check through nsclient++ cpu/mem .. this al works fine.
> 
> But now I like to check if the firewall for this winbox is okay and up.
> So I like to use check_ping (or any other check) to the winbox and if no 
> result "critical" then everything is OKE.
> only ports 12489 and RDP ports are open to some IP's
> 
> Can somebody give me an advice how to do this.
> with negate it's not the way to do this, i guess !
> 

If I did get you right, then negate is absolutely the way to go.

Pick out a Port that would be open, if the firewall was down.
Now configure a check_tcp check for this port, and negate it.

The service will be ok as long as the port is closed, an critical if the
port is open (and your firewall down).

As I said, only if I did get you right.


Regards,
Philipp

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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_mailq always reports queue empty

2008-03-06 Thread Philipp Geschke
Hi,

Gregory Wong schrieb:
> Hi Everyone. I have NRPE running on my Ubuntu mail gateway (referred to 
> as SMTP) that is running MailScanner, clamav, etc. I am having problems 
> with the check_mailq command. It doesn’t seem to be reporting correctly.
> 
> When I run the mailq command (as of about 1 minute ago) there were 10 
> messages in the queue. They were all MAILER-DAEMON emails so nothing 
> that would suggest a relay problem. When I run the following command 
> from SMTP:
> 
>  /usr/local/nagios/libexec/libexec/check_nrpe -H 127.0.0.1 -c check_mailq
> 
> it returns: OK: mailq is empty|unsent=0;10;15;0
> 
> The same thing happens when it is run from Nagios. Yesterday a Exchange 
> server who the SMTP server relays for went down and we got no 
> notification that mail started spooling on the SMTP box.
> 
> Any suggestions why this command is always reporting the mailq is empty? 
> Also, does anyone have any good NRPE scripts that check MailScanner?
> 
> Thanks.
> 

Did you set the plugin's -M Switch to the mailserver software you are using?

-M (--mailserver) = [ sendmail | qmail | postfix | exim ] (default = 
sendmail)


Regards,
Philipp

-
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

[Nagios-users] Nuvola Style for Nagios 3.0

2008-03-18 Thread Philipp Geschke
Hi folks,

I was wondering if anybody had news on the Nuvola Style 
(http://www.nagiosexchange.org/Image_Packs.75.0.html?&tx_netnagext_pi1[p_view]=252&tx_netnagext_pi1[page]=10%3A10)?
Is it going to be ported to Nagios 3.0? If yes, when?

I think there's not much work to do, cause it is just a few things that 
don't work perfectly... I just wanted to make sure, that there's not 
gonna be a new version next week, before I sit down and do a re-write.


I know it's just a petty detail, but I got used to that look over the 
last year.. :-(


Thanks!


-Philipp


-
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


Re: [Nagios-users] Nuvola Style for Nagios 3.0

2008-03-18 Thread Philipp Geschke
Hi,


Lars Stavholm schrieb:
> On Tue, Mar 18, 2008 at 03:44:04PM +0100, Philipp Geschke wrote:
>> Hi folks,
>>
>> I was wondering if anybody had news on the Nuvola Style 
>> (http://www.nagiosexchange.org/Image_Packs.75.0.html?&tx_netnagext_pi1[p_view]=252&tx_netnagext_pi1[page]=10%3A10)?
>> Is it going to be ported to Nagios 3.0? If yes, when?
>>
>> I think there's not much work to do, cause it is just a few things that 
>> don't work perfectly... I just wanted to make sure, that there's not 
>> gonna be a new version next week, before I sit down and do a re-write.
>>
>>
>> I know it's just a petty detail, but I got used to that look over the 
>> last year.. :-(
> 
> We've been using it with all the 3.0rc's,
> and I can't seem to find any problem.
> Is there something that is not working?
> /L


I thought it was a couple of small things, but I just proved myself 
wrong, by noticing that the same things don't work with my 2.10 install.

Anyway, what I found so far is, that the menu options "Unhandled" for 
Host and Service problems do not exist within nuvola (as they didn't in 
Nagios 2.x).

But you can easily add them yourself, by editing 
share/side/dtree_data.js and replace Line 37 to 40 with this:

monitoring.add(11,0,'Problems','','','','side/icons/folder.gif','side/icons/folder_open.gif');
monitoring.add(12,11,'Service',cgipath + 
'status.cgi?host=all&servicestatustypes=28','','','side/icons/error.gif','side/icons/error.gif');
monitoring.add(13,12,'Unhandled',cgipath + 
'status.cgi?host=all&type=detail&servicestatustypes=16&hoststatustypes=3&serviceprops=42&servicestatustypes=28','','','side/icons/error.gif');
monitoring.add(14,11,'Host',cgipath + 
'status.cgi?hostgroup=all&style=hostdetail&hoststatustypes=12','','','side/icons/error.gif','side/icons/error.gif');
monitoring.add(15,14,'Unhandled',cgipath + 
'status.cgi?hostgroup=all&style=hostdetail&hoststatustypes=12&hostprops=42','','','side/icons/error.gif');
monitoring.add(16,11,'Network Outages',cgipath + 
'outages.cgi','','','side/icons/error.gif');



Anyway, I can't tell anything more that wouldn't be working right now 
(That worked with 2.x), so:

Never mind, I'm stupid.
Disregard everything after Good Morning.

-Philipp

-
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


Re: [Nagios-users] Website Permissions

2008-03-18 Thread Philipp Geschke
Hi,

Gregory Wong schrieb:
> I am monitoring numerous companies within Nagios. One company wants to 
> be able to login to see the status of their servers. I do not want them 
> to see the status of other client servers. Is there a way to assign a 
> login for them so that why they login they only see their servers?

I might be wrong, but I remember Nagios to being able to map HTTP User 
and Hostgroup.

A user (instead of nagiosadmin) should be able to only see a hostgroup 
with only the same name.

eg, Loginname: company1, hostgroup name: company1

I tried it once, it worked, but I don't have a sample at hand.
Maybe there is some kind of configuration switch, but it is possible.

> Also, does anyone know of any resources that talk about Nagios and SNMP 
> along with how to implement it. I checked the Nagios website and it’s 
> still a bit unclear. I’d like to check Cisco devices using SNMP.
> 

There is the generic check_snmp plugin, that can to anything, for 
switches / routers there's also plugins like check_bandwidth, 
check_ifstatus, check_bgp, etc.

Have a look at http://www.nagiosexchange.org/ and http://nagiosplugins.org/



-
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

Re: [Nagios-users] sms througth nagios

2008-04-15 Thread Philipp Geschke
Hello,

Pili Muñoz Gargallo schrieb:
> Hi all,
> i am planning to improve my nagios intallation by adding a 
> sms-notification. I have found several pluggins but there is something i 
> don't understand... All of them talk about, sername and password 
> associated with SMS2Email account, Mollie account
> Is this service managed by a private enterprise or i could buy a GSM 
> modem with a pre-paid target?
> Where i could get an account?
> I am very lost in this topic so any information would be very grateful.

As Nagios is only run by Plugins, even with notifications, you can do 
almost anything that transports your informations to a SMS Provider.

Pretty cheap is, for example, what I am doing.

I have regular old Nokia 6210 cell phone hooked to the Nagios box.
Then I use gammu (http://www.gammu.org/wiki/index.php?title=Main_Page) 
to Pipe notifications to that cell phone.

My notification command looks like this:

define command{
 command_namenotify-by-sms
 command_line/usr/bin/printf "%b" "Nagios\n\nType: 
$NOTIFICATIONTYPE$\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: 
$HOSTADDRESS$\nState: $SERVICESTATE$\nTime: 
$SHORTDATETIME$\nInfo:$SERVICEOUTPUT$" | gammu --sendsms TEXT 
$CONTACTEMAIL$ | tee -a /var/nagios/nagios-sms.log
 }

As you can see, I use the usual $CONTACTEMAIL$ to store the cell phone 
number I want to send the sms to.

Or, as a more general answer to your question:
You can use anything with nagios, that you are able to configure, nagios 
only limiting you to have a command on your system that'll pipe the info 
to the device.


--Philipp

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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] personalize notification commands

2008-07-04 Thread Philipp Geschke
Hello,

Nelson Serafica schrieb:
> I want to set nagios to send a txt message if there is a down or 
> critical status. I setup a nagios for testing to another box instead of 
> playing in the stable nagios that was runnin. I already have email 
> notification but sometimes I don't open my email in midnight so I need 
> an alert ans I choose sms. I have an officemate who have a linux box and 
> setup a url where if I visit the url it will send a txt message. Here is 
> the sample url:
> 
> http://x.x.x.x/testserver?page=sms_sendsmsmessage&multi_recipients=+123456789&smsmessage=testing&username=nagios&NOEXPIRE
> 
> 123456789 = sms contact number
> testing = message of the sms
> 
> Now, I have setup in commands.cfg the ff:
> 
> define command{
> command_namenotify-by-txt
> command_line/usr/bin/printf "%b" "Service: 
> $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState: 
> $SERVICESTATE$\nInfo: $SERVICE
> OUTPUT$\nDate: $LONGDATETIME$" |/usr/bin/links 
> "http://x.x.x.x/testserver?page=sms_sendsmsmessage&multi_recipients=+123456789&smsmessage=$HOSTNAME&&username=nagios&NOEXPIRE
>  
> &"
> }
> 
> Then I set my contacts.cfg
> 
> define contact{
> contact_namenagios-admin
> alias   Nagios Admin
> service_notification_period 24x7
> host_notification_period24x7
> service_notification_optionsw,u,c,r
> host_notification_options   d,r
> service_notification_commands   notify-by-txt
> host_notification_commands  notify-by-txt
> pager   
> http://x.x.x.x/testserver?page=sms_sendsmsmessage&multi_recipients=+123456789&smsmessage=testing&username=nagios&NOEXPIRE
> }
> 
> I see the logs in nagios the notify-by-txt but I don't receive a sms 
> message. But when I command it via shell, I receive a sms message.
> 
> Could someone direct me to right commands in notification commands? Can 
> I set a sample script just to test notification commands?

You could try to use a debug wrapper script, that will log, what nagios 
actually executes.
Something close to this should do:

#!/bin/sh
echo `date` >> /tmp/plugin_debugger
echo $* >>  /tmp/plugin_debugger

Not sure this will work, please try yourself.
By executing this as the notification command it should log what actually was 
executed by nagios.
That way you can see, if nagios fills your macros with the correct information.

Also make sure that you run your shell tests as the nagios user, not as root.


Regards,
Philipp

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
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] Ubuntu and FreeBSD Server

2008-11-04 Thread Philipp Geschke
Hugo van der Kooij schrieb:
> Renato Casagrande Júnior wrote:
>> Hello!!
>> People, I have already installed Nagios on FreeBSD Server. My diffcult
>> is access it using Ubuntu 7.10 software. I think my problem is in
>> Apache. For example: there is one server (FreeBSD) and 80 PCs (Ubuntu
>> 7.10). I am not getting access Nagios from Ubuntu's PCs.
>> Anyone can help me?
> 
> By all means keep repeating yourself without adding more information
> about what you tried and what failed exactly.
> 
> We will also very happily ignore such resends.
> 
> Help yourself by explaining things more clearly. What have you tried?
> What does and does not work? Which (error)logs did you check?
> 
> Hugo.
> 
> 

Also it is very unlikely that you have a Apache problem related to Ubuntu and 
FreeBSD.
HTTP is a standard protocol that works pretty well between all flavors of 
operating systems.

If you provide a good question or at least some more information, we will be 
more than happy to help you, but with an email like this...


--Philipp

-
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