[Nagios-users] Query about smsclient

2006-11-21 Thread Yogesh Hasabnis

Hi All,

I am trying to use smsclient for SMS alerts. I have one basic question. If
one uses an analog modem to send SMS alerts, how does the service provider
charge us for using his services?

I was planning to put this question on the smsclient users' mailing list.
But when I try to subscribe for this mailing list, the subscription webpage
gives a message that you will receive an email response to confirm your
subscription, but I never receive this confirmation email. Is anybody on
this list a member of that list? Is the smsclient project active?

Thanks In Advance.

Yogesh
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Fwd: Multiple host in hosts.cfg

2006-11-21 Thread spdesai
GOOD EXPLANATION FROM YR SIDE.

SO IF I WANT TO ADD MORE HOSTS THEN I NEED TO ADD IN ONLY HOSTS.CFG FILE NOT 
IN ANY OTHER FILE(LIKE SERVICE/HOSTGROUPS ETC)AS OTHER FILES ARE LOOK HOSTS 
DETAILS FROM HOSTGROUP NAME.

RIGHT ?

PL. CONFIRM ..

THANKS FOR YR SUPPORT

THANKS AND REGARDS,
SUHAG DESAI



Quoting Thomas Slutyer <[EMAIL PROTECTED]>:

> On 21 Nov, 2006, at 16:58, [EMAIL PROTECTED] wrote:
> 
> > Sorry for wrongly posting youe message to IAN.
> 
> No problem. I saw your e-mail the first time, since you CCed it to the 
> ML.
> 
> > I have tried and gone through the link given by u but i m not 
> > successfully done this thing. Let me explain u in details.  Suppose i 
> > want to monitor SMTP,PING,POP,Harddisk usage,Memory,TELNET,FTP for the 
> > host 192.168.10.1,192.168.10.2,192.168.10.3192.168.10.50.
> >
> > So give me the configuration example for hosts.cfg, hostgroups.cfg, 
> > service.cfg and whatever file needed to be configured.
> 
> I know what you want and I know what you were originally looking for. 
> As I explained yesterday there is no shortcut in defining Nagios hosts.
> 
> I will not type up everything (since that wouldn't leave any chance for 
> you to learn), but I will show you a few examples that apply to what I 
> told Ian yesterday.
> 
> In this case, hosts 1 and 2 run SMTP and POP, while 3 runs as an FTP 
> server.
> 
> define host{
>   use host-template
>   host_name   foobar1
>   alias   foobar1
>   address 192.168.10.1
>   hostgroups  HG-all,HG-mail
>   }
> 
> define host{
>   use host-template
>   host_name   foobar2
>   alias   foobar2
>   address 192.168.10.2
>   hostgroups  HG-all,HG-mail
>   }
> 
> define host{
>   use host-template
>   host_name   foobar3
>   alias   foobar3
>   address 192.168.10.3
>   hostgroups  HG-all,HG-ftp
>   }
> 
> define hostgroup{
>   hostgroup_name  HG-all
>   alias   All systems
>   }
> 
> define hostgroup{
>   hostgroup_name  HG-mail
>   alias   All UNIX systems
>   }
> 
> define hostgroup{
>   hostgroup_name  HG-ftp
>   alias   All UNIX systems
>   }
> 
> define service{
>   use service-template
>   hostgroup_name  HG-mail
>   service_description SMTP
>   check_command   $WHATEVER$
>   }
> 
> define service{
>   use service-template
>   hostgroup_name  HG-mail
>   service_description POP
>   check_command   $WHATEVER$
>   }
> 
> define service{
>   use service-template
>   hostgroup_name  HG-ftp
>   service_description FTP
>   check_command   $WHATEVER$
>   }
> 
> define service{
>   use service-template
>   hostgroup_name  HG-all
>   service_description TELNET
>   check_command   $WHATEVER$
>   }
> 
> define service{
>   use service-template
>   hostgroup_name  HG-all
>   service_description PING
>   check_command   $WHATEVER$
>   }
> 
> This way, you are grouping various service checks by linking them to 
> groups of hosts.
> 
> So, yes. If you add new hosts to your monitoring environment you will 
> need to manually add these on an individual basis. But instead of 
> manually adding all the required service descriptions as well, you will 
> be automatically assigning these to the hosts in question by 
> "subscribing" to the relevant host groups.
> 
> > I have enable SNMP for SNMP based query on all the machine.
> That's fine. You could use SNMP to monitor your hard disk and memory 
> usage in two ways: by reading the SNMP objects for the specific volume, 
> or by running check_disk locally by tying it to a custom SNMP object of 
> your choosing. You may also run check_disk passively through NSCA or 
> actively through NRPE. Make your pick :)
> 
> Cheers!
> 
> 
> Thomas
> 
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue. 
> :

Re: [Nagios-users] nsca/services issue

2006-11-21 Thread Jedrzej Jajor
Hi,
 
I assume you have a host 'mike' and a service 'nmbd' defined on it. Check if
you have "accept_passive_service_checks=1" in nagios.cfg and
"passive_checks_enabled 1" in the service definition. If you open the
Service State Information page in the web interface it should also say that
passive checks are enabled.
 
Hope this helps.
 
Regards,
Jedrzej


  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Carpenter
Sent: Tuesday, November 21, 2006 6:20 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] nsca/services issue


I have a question about nsca and service checks.  I am running nsca 2.6 and
Nagios 2.5.  I have just trying to send a simple test service check to
Nagios to see if I can get the state to change.and it isn't working.
 
Here is what I am trying to do.
 
>From the remote machine:
/usr/bin/send_nsca -H ian -d ";" -c /etc/send_nagios.cfg < test
 
The file test contains:
mike;nmbd;2;'ok-just one test'
 
I have configured nsca on the Nagios server and the config file contains:
 
server_port=5667
server_address=192.168.1.10
nsca_user=nagios
nsca_group=nagios
debug=0
command_file=/usr/local/nagios/var/rw/nagios.cmd
alternate_dump_file=/usr/local/nagios/var/rw/nsca.dump
aggregate_writes=0
append_to_file=0
max_packet_age=30
password=password
decryption_method=10
 
The send_nagios.cfg contains:
password=password
encryption_method=10
 
My service check is:
 
define service{
host_name   mike
service_description syslog-ng
active_checks_enabled   0
passive_checks_enabled  1
check_freshness 0
is_volatile 1
max_check_attempts  1
normal_check_interval   1
retry_check_interval1
check_periodnone
contact_groups  nagios-admins
check_command   check_dummy!2!Critical
notification_optionsw,c,u
notification_period 24x7
notification_interval   120
}
 
The /var/log/messages file shows the following:
 
Nov 21 00:09:00 ian nsca[12202]: SERVICE CHECK -> Host Name: 'mike', Service
Description: 'nmbd', Return Code: '2', Output: ''ok-just one test''
 
Nov 21 00:09:47 ian nagios: EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;mike;nmbd;2;'ok-just one test'
 
It appears that the external command file is getting the check.but the host
page just sits there saying that the host hasn't been checked.  I have tried
several different states and still the same result.  I understand that an
active check isnt being performed but I would think that because of the
above "PROCESS_SERVICE_CHECK_RESULT" line that the nagios.cmd file got the
message and the page should be updated with a critical message.
 
I read in the docs that the check needs to have the date in front of it .but
when I tried that I couldn't get nsca to expand the variable.I have checked
permissions, etc.
 
So.where have I messed up?  LOL.
 
Any help is greatly appreciated.



  _  

Sponsored Link

Mortgage
 rates as low as 4.625% -
$150,000 loan for $579 a month. Intro-*Terms



smime.p7s
Description: S/MIME cryptographic signature
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] Problemas no historico

2006-11-21 Thread Allan Kardec

Eu estou com problema no meu server q tem em 1 servidor q ele coloca q ele
esta 100% donw, mas ele esta ligado direto e em outro ele diz que e
indeterminado. Ja nos demais do sistema ele esta informando numa boa.
alguem poderia me ajudar.
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] conserve all information nagios v2.0b3 to 2.5

2006-11-21 Thread Luis Gardea
Hello

I have a server running Nagios v2.0b3 under Fedora C3 since May 27th
2005. I want to install another version (v2.5) of Nagios under another
server unser Fedora C5 however I wish to conserve all the information
that my other server (Nagios v2.0b3) have.

 How can I do it?

Thanks

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] nsca/services issue

2006-11-21 Thread Mike Carpenter
Probably not...
   
  I have been reading some documentation on both syslog and nsca that talk (at 
the same time) about distributed systems and logging.  This is a test script 
that I took from one to the pieces of documentation and appears that I messed 
up at midnight.  
   
  With that said...how can I can I test this in this manner?
   
  Thanks

frank <[EMAIL PROTECTED]> wrote:
  
Sorry for top-posting but my point would get lost in the mix.

Pardon me if I'm wrong here, but it looks like you have a service defined 
for syslog-ng, yet the status that you're sending thru nsca is for _nmbd_. 
nmbd != syslog-ng, therefore no change to nagios display.

Did I miss something?

-f


On Tue, 21 Nov 2006, Mike Carpenter wrote:

> Date: Tue, 21 Nov 2006 09:20:21 -0800 (PST)
> From: Mike Carpenter 
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] nsca/services issue
> 
> I have a question about nsca and service checks. I am running nsca 2.6 and 
> Nagios 2.5. I have just trying to send a simple test service check to Nagios 
> to see if I can get the state to change…and it isn’t working…
>
> Here is what I am trying to do…
>
> From the remote machine:
> /usr/bin/send_nsca –H ian -d “;” –c /etc/send_nagios.cfg < test
>
> The file test contains:
> mike;nmbd;2;’ok-just one test’
>
> I have configured nsca on the Nagios server and the config file contains:
>
> server_port=5667
> server_address=192.168.1.10
> nsca_user=nagios
> nsca_group=nagios
> debug=0
> command_file=/usr/local/nagios/var/rw/nagios.cmd
> alternate_dump_file=/usr/local/nagios/var/rw/nsca.dump
> aggregate_writes=0
> append_to_file=0
> max_packet_age=30
> password=password
> decryption_method=10
>
> The send_nagios.cfg contains:
> password=password
> encryption_method=10
>
> My service check is:
>
> define service{
> host_name mike
> service_description syslog-ng
> active_checks_enabled 0
> passive_checks_enabled 1
> check_freshness 0
> is_volatile 1
> max_check_attempts 1
> normal_check_interval 1
> retry_check_interval 1
> check_period none
> contact_groups nagios-admins
> check_command check_dummy!2!Critical
> notification_options w,c,u
> notification_period 24x7
> notification_interval 120
> }
>
> The /var/log/messages file shows the following:
>
> Nov 21 00:09:00 ian nsca[12202]: SERVICE CHECK -> Host Name: 'mike', Service 
> Description: 'nmbd', Return Code: '2', Output: ''ok-just one test''
>
> Nov 21 00:09:47 ian nagios: EXTERNAL COMMAND: 
> PROCESS_SERVICE_CHECK_RESULT;mike;nmbd;2;'ok-just one test'
>
> It appears that the external command file is getting the check…but the host 
> page just sits there saying that the host hasn’t been checked. I have tried 
> several different states and still the same result. I understand that an 
> active check isnt being performed but I would think that because of the above 
> "PROCESS_SERVICE_CHECK_RESULT" line that the nagios.cmd file got the message 
> and the page should be updated with a critical message.
>
> I read in the docs that the check needs to have the date in front of it …but 
> when I tried that I couldn’t get nsca to expand the variable…I have checked 
> permissions, etc.
>
> So…where have I messed up? LOL.
>
> Any help is greatly appreciated.
>
>
> -
> Sponsored Link
>
> Mortgage rates as low as 4.625% - $150,000 loan for $579 a month. Intro-*Terms

 
-
Sponsored Link

Degrees for employed people - in as fast as 1 year. A.S. / Bachelors / Masters-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Flat map

2006-11-21 Thread Tedman Eng
Set some of your hosts's parents using the parent directive and the
heirarchy will be mapped out.

> -Original Message-
> From: Varaillon Jean Cristophe [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 21, 2006 7:22 AM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] Flat map
> 
> 
> Hi,
> 
> I trying to get a nice map showing the actual topology of my network.
> 
> So fare all what I am getting is a "flat" map without hierarchy where
> all nodes and routers are linked to "Nagios Process".
> 
> Also the "Status Information" of each router and node is: "(No
> information!)"
> 
> Finally the icon representing each device is a just a question mark.
> 
> Any suggestion why all this is happening?
> 
> In fact I am not sure how Nagios is discovering the network,, meaning
> who connects to who.
> 
> Also, is Nagios drawing L2 and/or L3 topology?
> 
> Many thanks in advance for your time.
> 
> Christophe
> 
> Disclaimer
> The information in this e-mail and any attachments is 
> confidential. It is intended solely for the attention and use 
> of the named addressee(s). If you are not the intended 
> recipient, or person responsible for delivering this 
> information to the intended recipient, please notify the 
> sender immediately. Unless you are the intended recipient or 
> his/her representative you are not authorized to, and must 
> not, read, copy, distribute, use or retain this message or 
> any part of it. E-mail transmission cannot be guaranteed to 
> be secure or error-free as information could be intercepted, 
> corrupted, lost, destroyed, arrive late or incomplete, or 
> contain viruses.
> 
> 
> --
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the 
> chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge
&CID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] nsca/services issue

2006-11-21 Thread frank
I'm not absolutely positive, but I think you just need to change your 
"test" file so it says "syslog-ng" instead of "nmbd". It's possible to 
send passive checks (via nsca or whatever other methods one may employ) 
for _any_ host or service you can imagine, but Nagios will log and ignore 
every one of them unless they're properly defined in your Nagios config 
files.




From http://nagios.sourceforge.net/docs/2_0/passivechecks.html


Note that in order to submit service checks to Nagios, a service must have 
already been defined in the object configuration file! Nagios will ignore 
all check results for services that had not been configured before it was 
last (re)started.



-f

On Tue, 21 Nov 2006, Mike Carpenter wrote:


Probably not...

 I have been reading some documentation on both syslog and nsca that talk (at 
the same time) about distributed systems and logging.  This is a test script 
that I took from one to the pieces of documentation and appears that I messed 
up at midnight.

 With that said...how can I can I test this in this manner?

 Thanks

frank <[EMAIL PROTECTED]> wrote:

Sorry for top-posting but my point would get lost in the mix.

Pardon me if I'm wrong here, but it looks like you have a service defined
for syslog-ng, yet the status that you're sending thru nsca is for _nmbd_.
nmbd != syslog-ng, therefore no change to nagios display.

Did I miss something?

-f


On Tue, 21 Nov 2006, Mike Carpenter wrote:


Date: Tue, 21 Nov 2006 09:20:21 -0800 (PST)
From: Mike Carpenter
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] nsca/services issue

I have a question about nsca and service checks. I am running nsca 2.6 and 
Nagios 2.5. I have just trying to send a simple test service check to Nagios to 
see if I can get the state to change…and it isn’t working…

Here is what I am trying to do…

From the remote machine:
/usr/bin/send_nsca –H ian -d “;” –c /etc/send_nagios.cfg < test

The file test contains:
mike;nmbd;2;’ok-just one test’

I have configured nsca on the Nagios server and the config file contains:

server_port=5667
server_address=192.168.1.10
nsca_user=nagios
nsca_group=nagios
debug=0
command_file=/usr/local/nagios/var/rw/nagios.cmd
alternate_dump_file=/usr/local/nagios/var/rw/nsca.dump
aggregate_writes=0
append_to_file=0
max_packet_age=30
password=password
decryption_method=10

The send_nagios.cfg contains:
password=password
encryption_method=10

My service check is:

define service{
host_name mike
service_description syslog-ng
active_checks_enabled 0
passive_checks_enabled 1
check_freshness 0
is_volatile 1
max_check_attempts 1
normal_check_interval 1
retry_check_interval 1
check_period none
contact_groups nagios-admins
check_command check_dummy!2!Critical
notification_options w,c,u
notification_period 24x7
notification_interval 120
}

The /var/log/messages file shows the following:

Nov 21 00:09:00 ian nsca[12202]: SERVICE CHECK -> Host Name: 'mike', Service 
Description: 'nmbd', Return Code: '2', Output: ''ok-just one test''

Nov 21 00:09:47 ian nagios: EXTERNAL COMMAND: 
PROCESS_SERVICE_CHECK_RESULT;mike;nmbd;2;'ok-just one test'

It appears that the external command file is getting the check…but the host page just 
sits there saying that the host hasn’t been checked. I have tried several different 
states and still the same result. I understand that an active check isnt being performed 
but I would think that because of the above "PROCESS_SERVICE_CHECK_RESULT" line 
that the nagios.cmd file got the message and the page should be updated with a critical 
message.

I read in the docs that the check needs to have the date in front of it …but 
when I tried that I couldn’t get nsca to expand the variable…I have checked 
permissions, etc.

So…where have I messed up? LOL.

Any help is greatly appreciated.


-
Sponsored Link

Mortgage rates as low as 4.625% - $150,000 loan for $579 a month. Intro-*Terms



-
Sponsored Link

Degrees for employed people - in as fast as 1 year. A.S. / Bachelors / Masters-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] Nagios et Nsca ... Timeout of Nagios ?

2006-11-21 Thread Manu Linux Lookit
Hello,
I am looking at which are the best possibilities of
supervision/administration of networks...

I use currently a little more than 400 servers with Cfengine.

I would like to interface it with Nagios and his Nsca agent... (Nrpe
requires too much opening of ports).

But knowing the bases of Nagios, I don't know all the specs about the
Nsca agent at all (always used NRPE).

I just have a small question: if the agent NSCA on the client server
does not send anything to the nagios server, will Nagios at the end of
one period go up an alarm?

Is this period can be changed ?

Tks a lot for your answers

And good luck for everybody.

Regards
Manu

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] problems with check_traffic plugin displaying images

2006-11-21 Thread nemir nemiria


>Has anybody able to get this plugins working, ie: be able to view the
>graphs of the
>monitored device bandwidth?
>It works just fine except I can not display the graphs I get error is
>the apache log

That sounds like Nagios is very happy.

>  In the apache log, I have lines with this :
>   "Premature end script header ..."

This is a classic apache problem.  The "Premature end of script headers" 
error message is probably the most loathed and common error message you'll 
find. What the error actually means, is that the script stopped for whatever 
reason before it returned any output to the web server.  A common cause of 
this for script writers is to fail to set a content type before printing 
output code.

What do the apache logs say?

What does the source code of the page say?


HTH

Nemir

_
Advertisement: 110,000+ cars with the click of a mouse at carsales.com.au  
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fsecure%2Dau%2Eimrworldwide%2Ecom%2Fcgi%2Dbin%2Fa%2Fci%5F450304%2Fet%5F2%2Fcg%5F801577%2Fpi%5F1005244%2Fai%5F838593&_t=757768878&_r=endtext_11&_m=EXT


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios cluster

2006-11-21 Thread Steve Shipway
> > Unless, of course, there exists an external command to change the
> global
> > Notifications Enabled flag - but I don't think there is 
...
> Yep --
> http://www.nagios.org/developerinfo/externalcommands/commandin
> fo.php?command_id=8

I stand corrected.  I hadn't spotted this one...  thanks for the tip.

In this case, I agree that it is better to make the change via the
external command rather than by modifying nagios.cfg and restarting.

Anyway, regardless of the method used to achieve it, I think this is the
way to achieve what the original poster wanted (use a special
eventhandler monitoring the live Nagios to enable/disable notifications
on the standby Nagios)

Steve

--
Steve Shipway
ITSS, University of Auckland 
(09) 3737 599 x 86487
[EMAIL PROTECTED]

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] nsca/services issue

2006-11-21 Thread Mike Carpenter
I guess I should have said that this isnt a distributed set up.  I am setting 
up syslog-ng and am just trying to make sure that everything is working...so 
there are no services installed on the client "mike".  I have checked to make 
sure that the passive_checks directives are enabled in the nagios.cfg and the 
Service State page also shows that they are.
   
  Is this not a good way to test prior to turning on syslog-ng?  
   
  

Jedrzej Jajor <[EMAIL PROTECTED]> wrote:
  Hi,
   
  I assume you have a host 'mike' and a service 'nmbd' defined on it. Check if 
you have "accept_passive_service_checks=1" in nagios.cfg and 
"passive_checks_enabled 1" in the service definition. If you open the Service 
State Information page in the web interface it should also say that passive 
checks are enabled.
   
  Hope this helps.
   
  Regards,
  Jedrzej

  
-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Carpenter
Sent: Tuesday, November 21, 2006 6:20 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] nsca/services issue


  
  I have a question about nsca and service checks.  I am running nsca 2.6 and 
Nagios 2.5.  I have just trying to send a simple test service check to Nagios 
to see if I can get the state to change…and it isn’t working…
   
  Here is what I am trying to do…
   
  From the remote machine:
  /usr/bin/send_nsca –H ian -d “;” –c /etc/send_nagios.cfg < test
   
  The file test contains:
  mike;nmbd;2;’ok-just one test’
   
  I have configured nsca on the Nagios server and the config file contains:
   
  server_port=5667
  server_address=192.168.1.10
  nsca_user=nagios
  nsca_group=nagios
  debug=0
  command_file=/usr/local/nagios/var/rw/nagios.cmd
  alternate_dump_file=/usr/local/nagios/var/rw/nsca.dump
  aggregate_writes=0
  append_to_file=0
  max_packet_age=30
  password=password
  decryption_method=10
   
  The send_nagios.cfg contains:
  password=password
  encryption_method=10
   
  My service check is:
   
  define service{
  host_name   mike
  service_description syslog-ng
  active_checks_enabled   0
  passive_checks_enabled  1
  check_freshness 0
  is_volatile 1
  max_check_attempts  1
  normal_check_interval   1
  retry_check_interval1
  check_periodnone
  contact_groups  nagios-admins
  check_command   check_dummy!2!Critical
  notification_optionsw,c,u
  notification_period 24x7
  notification_interval   120
  }
   
  The /var/log/messages file shows the following:
   
  Nov 21 00:09:00 ian nsca[12202]: SERVICE CHECK -> Host Name: 'mike', Service 
Description: 'nmbd', Return Code: '2', Output: ''ok-just one test''
   
  Nov 21 00:09:47 ian nagios: EXTERNAL COMMAND: 
PROCESS_SERVICE_CHECK_RESULT;mike;nmbd;2;'ok-just one test'
   
  It appears that the external command file is getting the check…but the host 
page just sits there saying that the host hasn’t been checked.  I have tried 
several different states and still the same result.  I understand that an 
active check isnt being performed but I would think that because of the above 
"PROCESS_SERVICE_CHECK_RESULT" line that the nagios.cmd file got the message 
and the page should be updated with a critical message.
   
  I read in the docs that the check needs to have the date in front of it …but 
when I tried that I couldn’t get nsca to expand the variable…I have checked 
permissions, etc.
   
  So…where have I messed up?  LOL.
   
  Any help is greatly appreciated.

-
  Sponsored Link

Mortgage rates as low as 4.625% - $150,000 loan for $579 a month. Intro-*Terms

 
-
Sponsored Link

Rates near 39yr lows. $420,000 Loan for $1399/mo - Calculate new house payment-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null