Re: [Nagios-users] alert RSS feed possible?

2012-07-27 Thread MAD

Hi,

I wrote this a long time ago, so it can clearly be improved.

Create a Nagios commands called notify-host-rss and notify-service-rss 
like this :


defined command {
command_name notify-host-rss
command_line $USER1$/notification_rss.pl -n '$NOTIFICATIONTYPE$' -H 
$HOSTNAME$ -e $HOSTSTATE$ -o $HOSTOUTPUT$ -m 30 -f '$CONTACTEMAIL$'

}

defined command {
command_name notify-service-rss
command_line $USER1$/notification_rss.pl -n '$NOTIFICATIONTYPE$' -H 
$HOSTNAME$ -s $SERVICEDESC$ -e $SERVICESTATE$ -o $SERVICEOUTPUT$ 
-m 30 -f '$CONTACTEMAIL$'

}

And define a contact called RSS with the path to the RSS file on your 
system as its email. Something like

define contact {
 ...
contact_nameRSS
email/var/www/html/rss/nagios.rss
host_notification_commands notify-host-rss
service_notification_commands notify-service-rss
...
}

Associate your RSS contact to whatever hosts/services you want and 
reload your Nagios.



On 07/27/2012 01:42 PM, Werner Flamme wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I just wonder if it is possible to show f. e. current CRITICAL results
in an RSS feed. Is there any possibility that a nagios 3.x server
provides a newsfeed?

Maybe every sent notification can be forwarded to this feed?

TIA
Werner

- -- 
-BEGIN PGP SIGNATURE-

Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlASfq0ACgkQk33Krq8b42OJvgCfTTIpkIHQbbxYjmQgGnMYcOzd
p90An10xXBGmSwGSlvuVNULceY8ba0cy
=mlK3
-END PGP SIGNATURE-

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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




notification_rss.pl
Description: Perl program
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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] Linux Kernel Version

2012-06-29 Thread MAD

Hi,

You could also do a SNMPWALK on the hrSWInstalledName table 
(1.3.6.1.2.1.25.6.3) and extract the latest installed kernel version by 
doing some regex work.


Marc-André

On 06/29/2012 08:45 AM, Stuart Browne wrote:


Current as in installed, or current as in available?

We wrote this a while ago to see if the most recently installed kernel 
is the bootable kernel:


#!/bin/bash

#

# Check if current kernel is being used.

#

GRUBBY=/sbin/grubby

GREP=/bin/grep

UNAME=/bin/uname

OUTPUT=Current kernel running.

EXIT_VAL=0

if $GRUBBY --default-kernel | $GREP -vq $($UNAME -r); then

OUTPUT=Kernel updated, reboot required.

EXIT_VAL=1

fi

echo $OUTPUT

exit $EXIT_VAL

But as Daniel said, a trivial plugin it's NRPE calling the two-line 
routine:


#!/bin/bash

/bin/uname -r

exit $?

Or using SNMP:

define command {

command_name  return_kernel_version

command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o 
SNMPv2-MIB::sysDescr.0 -P 2c -C public


}

The choice of what to use is yours.

Stuart

*From:*Daniel Wittenberg [mailto:daniel.wittenberg.r...@statefarm.com]
*Sent:* Friday, 29 June 2012 1:18 PM
*To:* Nagios Users List
*Subject:* Re: [Nagios-users] Linux Kernel Version

I haven't seen one, but would be trivial to write one.  You looking to 
see the rpm -q kernel output or something like uname -a?


Dan

On Jun 28, 2012, at 10:10 PM, Edwin Zoeller wrote:



Does anyone know of or have a plugin that will display the current 
kernel level for Redhat?


Thanks,

Ed

PPlease consider the environment before printing this e-mail

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats.http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net 
mailto: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



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


___
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



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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] Passive freshness checks go wrong

2012-06-11 Thread MAD
Hi,

I have a Nagios 3.2.3 box on an Ubuntu server 11.04 with about 930 hosts 
and 28500 services. For each host, I have 5 passive checks mapped on 
SNMP Traps. In order to secure those checks, I set up a freshness checks 
using check_dummy and a freshness threshold of 15min, as I normally 
receive traps every 10min.

When I added 5 hosts to Nagios, all my passive checks went progressively 
to a critical status saying that return code of 127 is out of bound - 
plugin may be missing. I didn't touch my commands.cfg file nor my 
services files, I have only added 5 files to my hosts configuration 
directory and reloaded nagios.

Has somebody already seen that kind of behaviour?

Thanks in advance,

Marc-André

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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] JMX requests without java

2012-05-31 Thread MAD
Hi list,

I have to monitor a bunch of JVM by collecting some JMX data. I was 
wondering if there is a way to  submit JMX requests without installing 
java on my Nagios server.

Usually I would use the SNMP Java agent but it doesn't show all the data 
I need, and I can't install the JMX4Perl agent on the monitored servers. 
Does somebody have an idea?

Thanks,

Marc-André

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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] status-txt: easier for other applications/services to use Nagios data

2012-05-03 Thread MAD

Hi,

You could also use the mk_livestatus broker (available here 
http://mathias-kettner.de/checkmk_livestatus.html) which can be used to 
fetch information from Nagios in JSON format by forging your own requests.


Best regards,
Marc-André

On 05/03/2012 05:57 AM, Wenhua Zhang wrote:

Hi all,
Recently, we need a API or application to get the nagios data as other
easily readable format such as XML, JSON or plain text instead of the
default HTML.
status-txt is implemented to duplicate the output of status.cgi in
plain text to achieve this goal, making it easier for other
applications/services to use Nagios data.

Compile status-txt.c to create status-txt.cgi, this cgi accepts
exactly the same URL parameters that status.cgi accepts, and filters
its output appropriately.
In this version, it accepts almost all the arguments passed in the URL
which status.cgi accepts except style, navbarsearch, columns and
noheader.
And we will add more functionalities in the next version.

The status-txt.cgi will returns service data that appears in the
status table of status.cgi as host_ip   host_status
[service:service_status;..], not includes the top portion of the
page, eg:
196.0.0.1  UPHTTP_80:OK;
196.0.0.2  UPDB_PORT_3306:OK;DB_PORT_3307:OK;
And you can use some arguments to filter its output, such as
hostgroup, servicegroup, host and so on.

The attachment is the source code, if you have any ideas about it,
please feel free to let me know.
You can also get the source code from github
https://github.com/shiziwen/nagios-status2txt;.


Thanks,
Best Wishes,
Wenhua


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


___
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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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] use_large_installation_tweaks

2012-04-05 Thread MAD
On 04/04/2012 10:47 PM, Daniel Wittenberg wrote:
 We did the same, too much over from NDO to justify any benefit.

 Dan

 -Original Message-
 From: C. Bensend [mailto:be...@bennyvision.com]
 Sent: Wednesday, April 04, 2012 10:18 AM
 To: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] use_large_installation_tweaks


 Does anyone has configured it ?

 Is it really a good way to follow to reduce memory usage ?
 For me, it was a good way to reduce memory and CPU, and it helped
 with check latencies.

 Although, the absolute best way to reduce check latencies for me
 has been to dump NDOUtils.  Good lord, that was awful, had to restart
 Nagios three times a week.

 Benny


We use the Gearman module 
(http://labs.consol.de/lang/en/nagios/mod-gearman/) to distribute the 
load over several servers, and we still use NDOUtils for now but we had 
to tune the MySQL database and we stopped dumping some of the data that 
are useless to us.

Marc-André

--
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
___
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] Integer length too long in NET::SNMP requests

2012-03-22 Thread MAD
Hi list,

I'm trying to monitor the CPU load on *nix servers by walking on the 
OIDs hrProcessorLoad. Unfortunately, on some servers (Solaris one I 
think) I get the error INTEGER length too long (5 Bytes). If i run 
snmpwalk -v2c -c mycommunity myserver hrProcessorLoad everything works 
fine, or at least no errors are printed.

Does someone know how I could work around this ?

I know this is not really about Nagios but about Net:SNMP but I googled 
the error and I wasn't able to find something relevant :/

Thanks a lot,

Marc-André

--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
___
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] Host including services from another host with the same base name

2012-03-01 Thread MAD
On 02/29/2012 07:58 PM, Jason J. W. Williams wrote:
 Hello,

 I've got two hosts named:

 apps-1.example.com
 mysql_apps-1.example.com

 For some reason mysql_apps-1.example.com is showing not only services
 defined for it but also services defined for apps-1.example.com.

You must probably have use_regexp_matching set to 1 in your 
nagios.cfg. Try to disable it (if you don't have other configurations 
based on regex usage), it should solve your problem.

Marc-André

--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
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] WMI and user account

2012-02-27 Thread MAD
Hi list,

I'm have to find a way to get some advanced monitoring metrics for 
Windows boxes. As SNMP is not really usefull on Windows (sic!) and I 
really don't want to be messing with locales to get data from the 
perfmon, I was looking to use WMI requests. However, each doc I've seen 
seem to tell me I have to use an administrator account to connect to the 
WMI agent and extract my data.

Is there a way to use an user account with restricted rights?

Thanks in advance,

Marc-André

--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
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] Eventlog monitoring through NSClient++

2012-02-24 Thread MAD
On 02/24/2012 05:04 PM, C. Bensend wrote:
 We actually use check_logfiles with NSClient so haven't seen this, and we
 have tons of rules.  Might be worth looking at.  Not that anything is
 wrong with NSClient :)  just check_logfiles also has more regex and
 options.
 +1

 The consol.de guys are awesome, and check_logfiles is another
 example of their excellent contributions to the community.

 Benny



Thank you very much for your hints. I'll give a try to the consol.de's 
check_logfiles :)

--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
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] Passive checks are stalled despite freshness check set

2011-12-06 Thread MAD
Hi list,

I have a small problem with Nagios's service freshness checks. I'm 
probably missing something but I don't see what.

I have created several passive checks, waiting for SNMP traps and 
triggering CRITICAL states on reception. I set freshness threshold to 
15min (900s) to reset the service to an OK state.

Here is my configuration:

define service {
...
check_commandreset_ok_state
max_checks_attempts1
passive_checks_enabled1
active_check_enabled0
freshness_threshold900
check_freshness1
...
}

define command {
command_name reset_ok_state
command line $USER1$/check_dummy 0 Last alert received at `date -d 
'1970-01-01 UTC + $LASTSERVICESTATECHANGE$ seconds'`
}

Everything works fine for some days but, after a while, freshness stops 
to be checked and I have to restart Nagios in order to trigger the 
freshness check again. Then I get in the Nagios log that my service is 
stale for several hours and that Nagios is scheduling an immediat check.

I'm running Nagios v3.2.3 on an Ubuntu server 11.04.

Does somebody already see a similar behaviour? Is there some flaw(s) in 
my configuration?

Thanks in advance,

Marc-André

--
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
___
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_log via check_nrpe problem

2011-11-04 Thread MAD

Hi,

If you ran your tests with an other user than the one NRPE is using on 
your server, may be he can't overwrite your /tmp/messages file and 
trigger a CRITICAL state (I see in your tests you are logged in as root).


Marc-André

On 11/04/2011 04:53 AM, Brandstaetter, Sigmund wrote:

Hi Guys,

First of all, hello, since this is my first post to the list.

I hope some of you will be able to give me some input on my problem.

I have a Nagios Server to monitor some Hosts (Nagios 3.3.1) using NRPE and
SNMP Checks

I wanna check a logfile for eg. the string error.

The check works fine when I run it locally, meaning, after the check detects
the pattern, it creates an alert, then, on the next check, if no new pattern
was detected, it will return OK.

When I now run the check via nrpe from the nagios server, it will also
detect the pattern, but it will also come back with CRITICAL on each check
thereafter even if there have been no additional occurrences of it.

This is what the corresponding line in the nrpe.cfg on the remote host looks
like for this check:

command[check_messages]=/usr/local/nagios/libexec/check_log -F
/var/log/messages -O /tmp/messages -q error

Note that all other checks work fine, so nrpe works fine.


EG:

[root@xx libexec]# ./check_nrpe -H xx -c check_messages
(2)  error
[root@xx libexec]# ./check_nrpe -H xx -c check_messages
(2)  error
[root@xx libexec]# ./check_nrpe -H xx -c check_messages
(2)  error
[root@xx libexec]# ./check_nrpe -H xx -c check_messages
(2)  error
[root@xx libexec]# ./check_nrpe -H xx -c check_messages
(2)  error

But locally on the host, using the same check_log with the same parameters
that I have in my nrpe.cfg it works:

[root@xx libexec]# ./check_log -F /var/log/messages -O /tmp/messages -q
error
(13)  Nov  4 10:49:57 tuphlog1 nagios: SERVICE NOTIFICATION:
nagiosadmin;tuphweb2;LOG - Authentication
Errors;UNKNOWN;notify-service-by-email;Log check error: 
[root@xx libexec]# ./check_log -F /var/log/messages -O /tmp/messages -q
error
Log check ok - 0 pattern matches found


Any Idea what could be the problem?

Cheers
Sigmund




--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1


___
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


--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1___
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] programmatic access to nagios state

2011-11-02 Thread MAD
Hi,

You can also use NDOUtils or Merlin to store your hosts and services' 
state and configuration in a database.

Marc-André

On 11/01/2011 03:18 PM, Daniel Wittenberg wrote:
 We use the livestatus event broker for that purpose, there is also a JSON web 
 services frontend for livestatus as well.

 Dan

 -Original Message-
 From: Richard Clark [mailto:n...@fohnet.co.uk]
 Sent: Tuesday, November 01, 2011 3:44 AM
 To: Nagios Users List
 Subject: Re: [Nagios-users] programmatic access to nagios state

 On 1 Nov 2011, at 04:25, Aamer Akhteraakh...@gmail.com  wrote:

 Hello,

 Is there a way to programmatically access the state of specific
 services that nagios is monitoring? I can see how one could do that
 via the web interface but that would mean parsing the html. Is there a
 more straightforward API/interface?

 --
 Aamer Akhter / aakh...@gmail.com

 There's the Nagios::Status perl modules. Apart from that, Icinga now
 has a basic JSON API for querying service status etc.

 --
 Richard Clark
 rich...@fohnet.co.uk

 --
 RSAreg; Conference 2012
 Save#36;700 by Nov 18
 Register now
 http://p.sf.net/sfu/rsa-sfdev2dev1
 ___
 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

 --
 RSAreg; Conference 2012
 Save#36;700 by Nov 18
 Register now
 http://p.sf.net/sfu/rsa-sfdev2dev1
 ___
 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


--
RSA#174; Conference 2012
Save $700 by Nov 18
Register now#33;
http://p.sf.net/sfu/rsa-sfdev2dev1
___
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] Next check jumps from 5min to 24h

2011-10-31 Thread MAD
Hi list,

Something strange happened last night. At about 23:00 the 30th of 
October, all checks (hosts and services) were scheduled to run the 31st 
of October at 23:00 instead of the usual 5min later. I had to 
rescheduled all checks manually this morning to restart my monitoring.

I'm running Nagios  3.2.0

Have someone heard about a similar issue?

Thanks in advance,

Marc-André

--
Get your Android app more play: Bring it to the BlackBerry PlayBook 
in minutes. BlackBerry App World#153; now supports Android#153; Apps 
for the BlackBerryreg; PlayBook#153;. Discover just how easy and simple 
it is! http://p.sf.net/sfu/android-dev2dev
___
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] nagvis requires ndoutils; how stable is ndoutils?

2009-06-10 Thread MAD
I have been using it from 4 months and it works well so far. I only had a 
little glitch last week while NDO was cleaning up automatically some tables. I 
deactivate the functionality and everything was back to normal.

Marc-André


- Mail Original -
De: Rahul Nabar rpna...@gmail.com
À: nagios-users Mailinglist nagios-users@lists.sourceforge.net
Envoyé: Mercredi 10 Juin 2009 00h10:32 GMT +01:00 Amsterdam / Berlin / Berne / 
Rome / Stockholm / Vienne
Objet: [Nagios-users] nagvis requires ndoutils; how stable is ndoutils?

I was tempted to install Nagvis but unfortunately it needs Ndoutils
which I am not using so far.

I could install ndoutils but am afraid about breaking my production
Nagios environment. Especially because of the warning in the ndoutils
README about the code being alpha/beta quality.

Any ndoutils users? How stable is it? Any pitfalls while installation?

Or should I avoid ndoutils entirely? Is there any workaround to get
Nagvis working?

-- 
Rahul

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
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

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
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] Restrict Access

2009-06-10 Thread MAD
Did you mean on the Nagios web interface ? If yes it is possible by adding 
users in the file htpassdw.users having the same name as contacts in your 
nagios hosts' defintions...

See the Nagios documentation about CGI configuration for more details.

Marc-André

- Mail Original -
De: Eduardo Barreto lec...@gmail.com
À: nagios-users@lists.sourceforge.net
Envoyé: Mercredi 10 Juin 2009 15h13:46 GMT +01:00 Amsterdam / Berlin / Berne / 
Rome / Stockholm / Vienne
Objet: [Nagios-users] Restrict Access


Are there a way to restrict the view of some hosts? The reason is that nagios 
is checking all the hosts from the company, but I would like to restrict the 
view of all and let the hosts be viewed by departament which they belongs to, 
do you know what I mean? At the moment only have one user (nagiosadmin), should 
I create another user and set it? If it's possible, how can I do it? 


Thanks in advance 

Eduardo Barreto 

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
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

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
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 does not run any check anymore

2009-06-04 Thread MAD
Sorry if that question was already answered but I wasn't able to find a 
solution.

I have Nagios v3.0.6 running some test to check the access to some URL and 
supervising some local metrics (cpu load, disk space...). For some reason I 
can't figure out, Nagios stopped running the test and re-scheduled them to June 
the 6th instead of running them every 5 minutes. I tried to restart it and 
everything seemed to work fine again for 10 minutes and then the checks 
were postponed again to June the 6th.
Besides, when I restarted the server, Nagios unloaded the ndo module 10minutes 
after the restart.

Here is the last lines of the logfile:

[Thu Jun  4 11:33:21 2009] SERVICE ALERT: host1;url1;CRITICAL;SOFT;2;HTTP 
CRITIQUE - chaîne de caractère trouvée
[Thu Jun  4 11:33:21 2009] SERVICE ALERT: host1;url2;CRITICAL;SOFT;2;HTTP 
CRITIQUE - chaîne de caractère trouvée
[Thu Jun  4 11:33:21 2009] SERVICE ALERT: host1;url3;CRITICAL;SOFT;2;HTTP 
CRITIQUE - chaîne de caractère trouvée
[Thu Jun  4 11:34:21 2009] SERVICE ALERT: host1;url1;CRITICAL;SOFT;3;HTTP 
CRITIQUE - chaîne de caractère trouvée
[Thu Jun  4 11:34:21 2009] SERVICE ALERT: host1;url2;CRITICAL;SOFT;3;HTTP 
CRITIQUE - chaîne de caractère trouvée
[Thu Jun  4 11:34:21 2009] SERVICE ALERT: host1;url3;CRITICAL;SOFT;3;HTTP 
CRITIQUE - chaîne de caractère trouvée
[Thu Jun  4 12:37:30 2009] Caught SIGTERM, shutting down...
[Thu Jun  4 12:37:30 2009] Successfully shutdown... (PID=2715)
[Thu Jun  4 12:37:41 2009] Nagios 3.0.6 starting... (PID=1369)
[Thu Jun  4 12:37:41 2009] Local time is Thu Jun 04 12:37:41 CEST 2009
[Thu Jun  4 12:37:41 2009] LOG VERSION: 2.0
[Thu Jun  4 12:37:41 2009] ndomod: NDOMOD 1.4b7 (10-31-2007) Copyright (c) 
2005-2007 Ethan Galstad (nag...@nagios.org)
[Thu Jun  4 12:37:41 2009] ndomod: Successfully connected to data sink.  0 
queued items to flush.
[Thu Jun  4 12:37:41 2009] Event broker module 
'/usr/local/nagios/bin/ndomod-3x.o' initialized successfully.
[Thu Jun  4 12:37:41 2009] Warning: Host 'host2' has no services associated 
with it!
[Thu Jun  4 12:37:41 2009] Warning: Host 'host3' has no services associated 
with it!
[Thu Jun  4 12:37:41 2009] Warning: Host 'host4' has no services associated 
with it!
[Thu Jun  4 12:37:41 2009] Finished daemonizing... (New PID=1372)
[Thu Jun  4 12:38:35 2009] SERVICE DOWNTIME ALERT: host5;urlA;STARTED; Service 
has entered a period of scheduled downtime
[Thu Jun  4 12:38:35 2009] SERVICE DOWNTIME ALERT: host1;url1;STARTED; Service 
has entered a period of scheduled downtime
[Thu Jun  4 12:38:35 2009] SERVICE DOWNTIME ALERT: host1;url2;STARTED; Service 
has entered a period of scheduled downtime
[Thu Jun  4 12:38:35 2009] SERVICE DOWNTIME ALERT: host1;url3;STARTED; Service 
has entered a period of scheduled downtime
[Thu Jun  4 12:47:37 2009] ndomod: Shutdown complete.
[Thu Jun  4 12:47:37 2009] Event broker module 
'/usr/local/nagios/bin/ndomod-3x.o' deinitialized successfully.


Does someone know what is happening and how I could fix it?

Thank you

Marc-André

--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
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] timeperiod and exclude property

2009-05-26 Thread MAD
You could may be work it out by transforming your exclude into a use and 
create empty days for your holidays timeperiods, i.e. days starting and 
finishing at the same hour (25 december 00:00 to 00:00 for example).

Here is an example with your Sweden timeperiods. This should work.

Marc-André


- Mail Original -
De: Cyril Vieville cyril.vievi...@ebuilder.se
À: nagios-users@lists.sourceforge.net
Envoyé: Lundi 25 Mai 2009 17h06:33 GMT +01:00 Amsterdam / Berlin / Berne / Rome 
/ Stockholm / Vienne
Objet: [Nagios-users] timeperiod and exclude property


I got a problem on Nagios timeperiods. I wanted to use the exclude property to 
exclude holidays from the check period but it doesn´t work. I can only make it 
work if I comment the exclude lines. My timeperiods file below : 

[...]

# 'swedenholidays' timeperiod definition 

define timeperiod{ 

name swedenholidays 

timeperiod_name swedenholidays 

alias Sweden Holidays 

january 1 00:00-00:00 ; New Year 

january 6 00:00-00:00 ; Epiphany 

2009-04-10 00:00-00:00 ; Good Friday 2009 

2009-04-13 00:00-00:00 ; Easter Monday 2009 

2010-04-02 00:00-00:00 ; Good Friday 2010 

2010-04-05 00:00-00:00 ; Easter Monday 2010 

2011-04-22 00:00-00:00 ; Good Friday 2011 

2011-04-25 00:00-00:00 ; Easter Monday 2011 

may 1 00:00-00:00 ; Labour Day 

2009-05-21 00:00-00:00 ; Ascension Day 2009 

2010-05-13 00:00-00:00 ; Ascension Day 2010 

2011-02-06 00:00-00:00 ; Ascension Day 2011 

june 6 00:00-00:00 ; Swedish National Holiday 

2009-06-19 00:00-00:00 ; Midsummer Eve 2009 

2010-06-25 00:00-00:00 ; Midsummer Eve 2010 

2011-06-24 00:00-00:00 ; Midsummer Eve 2011 

december 24 00:00-00:00 ; Christmas Eve 

december 25 00:00-00:00 ; Christmas 

december 26 00:00-00:00 ; St Stephens Day 

december 31 00:00-00:00 ; New Years Eve 

} 





# 'swedenworkhours' timeperiod definition 

define timeperiod{ 

timeperiod_name swedenworkhours 

alias Sweden TimeZone Work Hours 

monday 09:00-18:00 

tuesday 09:00-18:00 

wednesday 09:00-18:00 

thursday 09:00-18:00 

friday 09:00-18:00 

use swedenholidays 

} 


--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.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] (ndoutils) DB create error

2009-05-26 Thread MAD
Are you sure there is a database called ndoutils? If not, you'll have to create 
it (create database ndoutils or something similar).

Marc-André

- Mail Original -
De: yokoy...@rd.aisin.co.jp
À: nagios-users@lists.sourceforge.net
Envoyé: Mardi 26 Mai 2009 11h17:47 GMT +01:00 Amsterdam / Berlin / Berne / Rome 
/ Stockholm / Vienne
Objet: [Nagios-users] (ndoutils) DB create error



Hi, everybody :-) 

I have a problem about ndoutils. 
Please help me ! 

 Problem  

./installdb -u root -p yokoMySql -h localhost -d ndoutils 

DBD::mysql::db do failed: Table 'ndoutils.nagios_dbversion' doesn't exist at 
./installdb line 51. 
No installation script found! at ./installdb line 62 

So, I cannot create DB. 

 System  

OS : Red Hat Enterprise Linux 5 
Nagios : Ver. 3.10 
ndoutils : 1.4b7 

Best Regard 
- 
Yoshinari Yokota 
- 
--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.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

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.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, ndoutils and database indexes

2009-05-13 Thread MAD
I personally added indexes on the following fields :
* servicechecks / service_object_id
* servicechecks / state
* hostcheck / host_object_id
* hostcheck / state
* objects / objecttype_id
* services / host_object_id
* statehistory / object_id
* statehistory / state_change
* statehistory / state
* statehistory / state_time
* statehistory / last_state
* hoststatus / last_hard_state
* servicestatus / last_hard_state

Some may be useless to you.

Marc-André


- Mail Original -
De: Marco Tirado marco.tir...@gmail.com
À: nagios-users@lists.sourceforge.net
Envoyé: Mercredi 13 Mai 2009 09h49:18 GMT +01:00 Amsterdam / Berlin / Berne / 
Rome / Stockholm / Vienne
Objet: [Nagios-users] Nagios, ndoutils and database indexes


Hello: 

We run nagios 3.0.6 with ndoutils and nagvis for host visualization. We had 
some problems with our nagios server a couple of weeks ago and we believe it is 
related to mysql performance, we could see that the mysql process was 
consumming from 80 to 90 % of the CPU in the monitoring server at certain 
times. We could solve the problem by applying a couple of indexes to the nagios 
database (the one used by ndoutils) as recommended in thread: 

http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg23943.html 

Afterwords we enabled monitoring for the nagios database by using the 
check_mysql_health plugin and we see that the index usage for the nagios 
database is under 10%. I am not a Database Administrator but I believe this is 
a very low index usage. 

I would like to konw if anyone has any recommendations about database indexes 
applicable to the nagios database for ndoutils/nagvis. 

Any tips/hints are appreciated 

//Marco 

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-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

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-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] Problem in configuring NSClient ++

2009-05-12 Thread MAD

It seems you used a template when you created your host definition into Nagios, 
but you hadn't created it. Try create the 'windows-server' template (I think 
you can also find it in some configuration file samples with your distribution 
of Nagios) or remove the template of your host definition if you don't need it.

Marc-André


- Mail Original -
De: Sundar V S sunnywa...@in.com
À: nagios-users@lists.sourceforge.net
Envoyé: Mardi 12 Mai 2009 11h07:10 GMT +01:00 Amsterdam / Berlin / Berne / Rome 
/ Stockholm / Vienne
Objet: [Nagios-users] Problem in configuring NSClient ++




Hi, 

I configured NSClient on Windows server, as menitoned in Nagios Documentation. 
Now, when i restarted the Nagios service on my Nagios Server, i gave me the 
following error, 
Stopping nagios: No lock file found in /usr/local/nagios/var/nagios.lock 

When i started the nagios service it gave, 
Starting nagios:CONFIG ERROR! Start aborted. Check your Nagios configuration . 

I tried to verify the nagios configuration it gave me the below error. 

Nagios 3.0.6 
Copyright (c) 1999-2008 Ethan Galstad ( http://www.nagios.org ) 
Last Modified: 12-01-2008 

License: GPL 
Reading configuration data... 

Error: Template 'windows-server' specified in host definition could not be not 
found (config file '/usr/local/nagios/etc/objects/windows.cfg', starting on 
line 25) 
*** One or more problems was encountered while processing the config 
files...Check your configuration file(s) to ensure that they contain valid 
directives and data defintions. If you are upgrading from a previous version of 
Nagios, you should be aware that some variables/definitions may have been 
removed or modified in this version. Make sure to read the HTML documentation 
regarding the config files, as well as the 'Whats New' section to find out what 
has changed. 

Can anyone guide me whats going wrong in my configuration. I followed all the 
steps mentioned in NSCLient++ site. I want to montior my Windows Server 
(10.180.117.172) on my Nagios Server (10.180.117.171) having OS RHEL 4. Please 
help. 



Dear nagios-users! Get Yourself a cool, short @in.com Email ID now! 
--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-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

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-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] report : Insufficient Data

2009-05-12 Thread MAD
To create its graphs, Nagios parses its log files. So if you delete them (or 
they are lost), it will be like Nagios wouldn't have been running for the 
period missing from the log file. For example, if the log files from May the 
2nd to May the 4th are missing, you won't have any data on the status, the 
check results, etc... Nagios would have ran, and so no graphs either.

Marc-André


- Mail Original -
De: Meyer Jerome jerome.me...@baldata.ch
À: Nagios-users@lists.sourceforge.net
Envoyé: Mardi 12 Mai 2009 12h26:40 GMT +01:00 Amsterdam / Berlin / Berne / Rome 
/ Stockholm / Vienne
Objet: [Nagios-users] report : Insufficient Data





Hi 



Last week on Thursday I've stopped NAGIOS, deleted files under /var/nagios and 
restart it (NAGIOS)! 

Yesterday Nagios gives me Infos like these (when I choose report period : Last 
Week) : 





UP Total:3d 10h 17m 9s Total_Time:48.98% Known_Time:100% 

Undetermined Insufficient Data:3d 13h 42m Total_Time:51s 51.02% 

All Total:7d 0h 0m 0s 



What means this insufficient data? 
How Nagios calculate this availability report? Give any some Lectures about « 
how interpreted Nagios graphs » ? 
How do we must considered these messages? 

Any Ideas? 
jerome 
--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-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

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-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] report : Insufficient Data

2009-05-12 Thread MAD
Unfortunately, I don't know a solution to this problem. Perhaps, you may 
generate some fake log files to replace the ones you erased but this is just 
some awkward hack. An other way to hide this is to set the initial state of 
your nagios items to be OK (or UP). There is a value to put in your definition 
files that can force Nagios to assume the state is OK (for example) when it has 
no data about the object. I don't remember right now the name of the option.

Anyway, once your system will be in production, the percentage of unknown data 
will eventually decrease. Besides you will always have some unknown data from 
time to time (reboot of your serveur, etc...).

Marc-André


- Mail Original -
De: Meyer Jerome jerome.me...@baldata.ch
À: MAD sri.lu...@free.fr
Cc: Nagios-users@lists.sourceforge.net
Envoyé: Mardi 12 Mai 2009 15h55:35 GMT +01:00 Amsterdam / Berlin / Berne / Rome 
/ Stockholm / Vienne
Objet: AW: [Nagios-users] report : Insufficient Data

Thanks you Marc-André for your email!

Ok but does that means that it will be impossible to eliminate all undetermined 
data ?
Now, I'm still in a test phase and when I'll starting Nagios in production 
phase, I don't like to have any zombies or unknown datas!
It isn't any solutions?

jérôme

 -Ursprüngliche Nachricht-
 Von: MAD [mailto:sri.lu...@free.fr]
 Gesendet: Dienstag, 12. Mai 2009 12:44
 An: Meyer Jerome
 Cc: Nagios-users@lists.sourceforge.net
 Betreff: Re: [Nagios-users] report : Insufficient Data
 
 To create its graphs, Nagios parses its log files. So if you delete them (or
 they are lost), it will be like Nagios wouldn't have been running for the
 period missing from the log file. For example, if the log files from May the
 2nd to May the 4th are missing, you won't have any data on the status, the
 check results, etc... Nagios would have ran, and so no graphs either.
 
 Marc-André
 
 
 - Mail Original -
 De: Meyer Jerome jerome.me...@baldata.ch
 À: Nagios-users@lists.sourceforge.net
 Envoyé: Mardi 12 Mai 2009 12h26:40 GMT +01:00 Amsterdam / Berlin / Berne /
 Rome / Stockholm / Vienne
 Objet: [Nagios-users] report : Insufficient Data
 
 
 
 
 
 Hi
 
 
 
 Last week on Thursday I've stopped NAGIOS, deleted files under /var/nagios
 and restart it (NAGIOS)!
 
 Yesterday Nagios gives me Infos like these (when I choose report period :
 Last Week) :
 
 
 
 
 
 UP Total:3d 10h 17m 9s Total_Time:48.98% Known_Time:100%
 
 Undetermined Insufficient Data:3d 13h 42m Total_Time:51s 51.02%
 
 All Total:7d 0h 0m 0s
 
 
 
 What means this insufficient data?
 How Nagios calculate this availability report? Give any some Lectures about
 « how interpreted Nagios graphs » ?
 How do we must considered these messages?
 
 Any Ideas?
 jerome
 -
 -
 The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
 production scanning environment may not be a perfect world - but thanks to
 Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
 Series Scanner you'll get full speed at 300 dpi even with all image
 processing features enabled. http://p.sf.net/sfu/kodak-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

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-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_icmp and check_host

2009-05-06 Thread MAD
Sorry, just realizing The reason you don't have statusmap.cgi, trends.cgi 
and histogram.cgi is may be becaus you don't have one of the graphic library 
installed on your server. Check if you have libjpeg-devel, libgd-devel and 
libpng-devel installed on your server (if your running under Debian, it should 
be libjpeg62-dev, libpng12-dev and libgd2-xpm-dev or libgd2-noxpm-dev).

Marc-André

- Mail Original -
De: Meyer Jerome jerome.me...@baldata.ch
À: Nagios-users@lists.sourceforge.net
Envoyé: Mercredi 6 Mai 2009 15h23:27 GMT +01:00 Amsterdam / Berlin / Berne / 
Rome / Stockholm / Vienne
Objet: [Nagios-users] check_icmp and check_host







Hi 



I still have many questions about nagios J . 

Yeah, there’re many documentations on the Web, but that is not always obvious 
to find what I seeks… 



1) So, I’ve create a link for my check_host to check_icmp! But I want to known 
what do you think about that, is ok? Or is there a special plugins for 
check_host? 

2) Some cgi files doesn’t exist under /usr/local/nagios/sbin/ like: 
statusmap.cgi, trends.cgi and histogram.cgi! why and where could I find this 
files? 

3) I want to have some graphs for by example the availability! Has someone 
ideas where I can find documentation about that? It’s easy to implement??? 



Thanks 



Regards 

jerome 
--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-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

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-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] PNP swap template HOWTO

2009-05-06 Thread MAD
You could use a template I developped some weeks ago. It works pretty well. 
Just copy it into the templates directory


Marc-André

- Original Message - 
From: Ayotunde Itayemi ayotunde.itay...@zain.com

To: nagios-users@lists.sourceforge.net
Sent: Wednesday, May 06, 2009 5:09 PM
Subject: [Nagios-users] PNP swap template HOWTO



Hi All,
By default I have nothing in the templates directory of my PNP
installation so all my graphs use the Default Template.
I noticed that this inverts the SWAP utilization graph i.e., the red and
yellow lines (warning/critical) are very close to the bottom of the
graph while the utilization shows as almost 100% (close to the top)
instead of very low is it actually is.
I have copied the check_swap.php from the templates.dist directory into
the templates directory, deleted all the existing swap.xml and swap.rrd
files, and restarted the npcd daemon.
I have also tried renaming check_swap.php to swap.php.
I noticed also that all my graphs use the Default Template and the XML
files for all of them have TEMPLATEcheck_nrpe/TEMPLATE. As these
files are generated automatically, how do I get the SWAP graph to use
the SWAP template?
What else do I need to do?
I am using PNP version 0.4.13
Thanks.

This mail is from a Gimper


-Original Message-
From: Ed Donahue [mailto:libera...@gmail.com]
Sent: Thursday, April 30, 2009 5:13 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] [nagios] Trigger alert via email

Is it possible to trigger an alert by sending an email to nagios
(passive check)?
I'm guessing it isn't a straight forward as that, just wonder if it is
doable,
and any links to examples would be cool too.

Thanks in advance
Ed


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

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK 
i700

Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-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 
attachment: check_swap.php
--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-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] mouse over it.

2009-04-20 Thread MAD
You will have to modify the 'status.c' file and compile it again. There must be 
a line with something like that :
printf(a href=%s title=%s[...]/a, [...,] temp_host-address[, ...]);

All you have to do is changing temp_host-address by temp_host-alias, save the 
file and then `make  make install`.

Marc-André

- Mail Original -
De: Toth Zoltan toth...@gmail.com
À: nagios-users@lists.sourceforge.net
Envoyé: Lundi 20 Avril 2009 12h01:31 GMT +01:00 Amsterdam / Berlin / Berne / 
Rome / Stockholm / Vienne
Objet: [Nagios-users] mouse over it.


Hi 

On nagios web site when I move my mouse over host , it displays the host IP 
address.. Can I change it? I would like see the host alias this pop-up window. 

Thanks! 
Zoltan 

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
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

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
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] Pppnp4nagios graph customization

2009-04-14 Thread MAD
Hi Mohandas

Here is a template for swap utilization performances with colours changing 
following the service state. I hope this will be what you've been looking for. 
I didn't tested it by I'm quite confident ;). All you have to do is to copy the 
file in the 'templates' directory (not in the 'templates.dist' one) and this 
should work.

In fact, that's not really about PHP coding, but more about RPN (Reverse Polish 
Notation) and RRD. See http://oss.oetiker.ch/rrdtool/doc/index.en.html (and 
more precisely the rrdgraphs sections) fore more information.

Marc-André

- Mail Original -
De: mohandas k mohanda...@tcs.com
À: MAD sri.lu...@free.fr
Cc: nagios-users@lists.sourceforge.net
Envoyé: Mardi 14 Avril 2009 06h37:45 GMT +01:00 Amsterdam / Berlin / Berne / 
Rome / Stockholm / Vienne
Objet: Re: [Nagios-users] Pppnp4nagios graph customization


Hi Mad, 

I have checked and tried to changed php template file of  Swap Utilization 
but am not able to generate colors in graph as per service status (i.e. 
Green,Yellow,Red as per service status ). Have attached php file and graph as 
well for your reference. obviously I have changed hostname in PHP file. 

I am not PHP expert to make changes in pnp template. 

Could you please suggest what changes need to make for the same ? 






Mohandas Kudva K 
ASE 
Tata Consultancy Services 
Cell:- +91 9619144048 
Mailto: mohanda...@tcs.com 
Website: http://www.tcs.com 
 
Experience certainty. IT Services 
Business Solutions 
Outsourcing 
 


MAD sri.lu...@free.fr 

04/09/2009 08:33 PM 
To  mohandas k mohanda...@tcs.com 

cc  nagios-users@lists.sourceforge.net 

Subject Re: [Nagios-users] Pppnp4nagios graph customization 




I managed to create some templates graphing in different colors according to 
the threshold defined with your services 

This will graph in green if the value is under the warning threshold, in yellow 
if it is between warning and critical threshold and red if it is beyond 
critical threshold or unknown... 

I don't know how to do this if the performance and the state are independent 
(for example if perf are the execution time of the check script...) 

Marc-André 


- Mail Original - 
De: mohandas k mohanda...@tcs.com 
À: nagios-users@lists.sourceforge.net 
Envoyé: Jeudi 9 Avril 2009 15h30:05 GMT +01:00 Amsterdam / Berlin / Berne / 
Rome / Stockholm / Vienne 
Objet: [Nagios-users] Pppnp4nagios graph customization 



Hi All, 

We have installed nagios (3.0.5) on Solaris sparc box and configured rrdtool 
(1.2.19) along with pnp4nagios- npcd (0.4.13) for dashboard/graph. 

By default we are getting following graph for locolhost free swap. I want to 
configure following requirements : 

(1) can we add more variable (i.e say Total Swap ) in graph ? 

(2) Can we create different-different color in graph for different-different 
status critical- RED,OK-Green,Warnijng-Yellow ? 

(3) last question how can we change graph updation time interval (here it's 
showing as 20 Minutes) however in our service definition,it's 10 Minutes 

Following is default graph for your better understanding : 



=-=-= 
Notice: The information contained in this e-mail 
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you 
-- 
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 
ForwardSourceID:NT0F5E 
=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments

Re: [Nagios-users] Pppnp4nagios graph customization

2009-04-14 Thread MAD
Thank you. Feel free to use it, distribute it and modify it as you want. After 
all, it is the grounds of Open Source, isn't it ? ;)

Marc-André


- Mail Original -
De: Joerg Linge pitchf...@ederdrom.de
Cc: nagios-users@lists.sourceforge.net
Envoyé: Mardi 14 Avril 2009 10h44:26 GMT +01:00 Amsterdam / Berlin / Berne / 
Rome / Stockholm / Vienne
Objet: Re: [Nagios-users] Pppnp4nagios graph customization

MAD schrieb:
 Hi Mohandas
 
 Here is a template for swap utilization performances with colours changing 
 following the service state. I hope this will be what you've been looking 
 for. I didn't tested it by I'm quite confident ;). All you have to do is to 
 copy the file in the 'templates' directory (not in the 'templates.dist' one) 
 and this should work.

@MAD: Good Job!

i would like to include this Template in PNP-0.4.14
How do you feel about this?

Cheers
Joerg


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

Re: [Nagios-users] Pppnp4nagios graph customization

2009-04-14 Thread MAD
I knew I should have tested it...

I assumed check_swap was giving the swap utilization but it gives the free 
space left. So I had to make some changes to reverse the situation and print 
the space the swap actually uses.

Marc-André

- Mail Original -
De: MAD sri.lu...@free.fr
À: Joerg Linge pitchf...@ederdrom.de
Cc: nagios-users@lists.sourceforge.net
Envoyé: Mardi 14 Avril 2009 11h19:36 GMT +01:00 Amsterdam / Berlin / Berne / 
Rome / Stockholm / Vienne
Objet: Re: [Nagios-users] Pppnp4nagios graph customization

Thank you. Feel free to use it, distribute it and modify it as you want. After 
all, it is the grounds of Open Source, isn't it ? ;)

Marc-André


- Mail Original -
De: Joerg Linge pitchf...@ederdrom.de
Cc: nagios-users@lists.sourceforge.net
Envoyé: Mardi 14 Avril 2009 10h44:26 GMT +01:00 Amsterdam / Berlin / Berne / 
Rome / Stockholm / Vienne
Objet: Re: [Nagios-users] Pppnp4nagios graph customization

MAD schrieb:
 Hi Mohandas
 
 Here is a template for swap utilization performances with colours changing 
 following the service state. I hope this will be what you've been looking 
 for. I didn't tested it by I'm quite confident ;). All you have to do is to 
 copy the file in the 'templates' directory (not in the 'templates.dist' one) 
 and this should work.

@MAD: Good Job!

i would like to include this Template in PNP-0.4.14
How do you feel about this?

Cheers
Joerg


--
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/nullattachment: check_swap_v2.php
--
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] Pppnp4nagios graph customization

2009-04-09 Thread MAD
I managed to create some templates graphing in different colors according to 
the threshold defined with your services

This will graph in green if the value is under the warning threshold, in yellow 
if it is between warning and critical threshold and red if it is beyond 
critical threshold or unknown...

I don't know how to do this if the performance and the state are independent 
(for example if perf are the execution time of the check script...)

Marc-André


- Mail Original -
De: mohandas k mohanda...@tcs.com
À: nagios-users@lists.sourceforge.net
Envoyé: Jeudi 9 Avril 2009 15h30:05 GMT +01:00 Amsterdam / Berlin / Berne / 
Rome / Stockholm / Vienne
Objet: [Nagios-users] Pppnp4nagios graph customization



Hi All, 

We have installed nagios (3.0.5) on Solaris sparc box and configured rrdtool 
(1.2.19) along with pnp4nagios- npcd (0.4.13) for dashboard/graph. 

By default we are getting following graph for locolhost free swap. I want to 
configure following requirements : 

(1) can we add more variable (i.e say Total Swap ) in graph ? 

(2) Can we create different-different color in graph for different-different 
status critical- RED,OK-Green,Warnijng-Yellow ? 

(3) last question how can we change graph updation time interval (here it's 
showing as 20 Minutes) however in our service definition,it's 10 Minutes 

Following is default graph for your better understanding : 



=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you 
--
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/nullattachment: check_pnp_rrd.php
attachment: pnp_test.png--
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] LOG2NDO doesn't insert anythigng in database

2009-03-26 Thread MAD
Hi all,

I'm using NDOUtils to extract logs from Nagios to a MySQL database. 
Unfortunately, the ndo2db daemon crashed this week-end and I noticed it only on 
yesterday. I tried to re-inject logs via the log2ndo utility and data where 
inserted in logentries table but nothing inside the other tables.

Is there a way to insert it in the servicechecks table, hostcheck table 
etc...?

Marc-André

--
___
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 $SERVICESTATEID$ and $LASTSERVICESTATEID$ macros in notes URL

2009-03-23 Thread MAD
Hi all

This may be a dummy question.

I would like to use the $SERVICESTATEID$ and $LASTSERVICESTATEID$ macros to 
define a note URL for some services, but for some reasons, these macros are not 
processed by Nagios. 

For example, I defined a notes URL as :
/nagios/notes/?host=$HOSTNAME$service=$SERVICEDESC$state=$SERVICESTATEID$

This gave me the following note URL :
http://my_serveur/nagios/notes/?host=my_hostservice=my_servicestate=$SERVICESTATEID$

instead of the waited one :
http://my_serveur/nagios/notes/?host=my_hostservice=my_servicestate=0

I checked on the macros chart given in the documentation but the $SERVICEDESC$ 
macro and the $SERVICESTATEID$ and $LASTSERVICESTATEID$ ones have the same 
ranges of use.

Is it possible to use those macros in notes URL (and in that case where am I 
doing wrong ?) or should I use an other way to generate my note pages 
dynamically depending on the service's state ?

Marc-André

--
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] HELP: To make graphs with plugin output!!!!

2009-03-19 Thread MAD
You can use Pnp4Nagios (www.pnp4nagios.org/pnp/start). This will use the 
performance data plugin output. A plugin output can be cut in two parts: the 
message printed in Nagios and the data used to make graphs. Read the Nagios 
documentation, section Plugin API for more information, or the guidelines for 
plugin development 
(http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN203).

Pnp4Nagios will read the perfdata, analyse it through a Perl script and create 
some graphs.

Marc-André

- Mail Original -
De: Sergio Ariel sergio.ar...@iris.uh.cu
À: nagios-users nagios-users@lists.sourceforge.net
Envoyé: Jeudi 19 Mars 2009 15h38:31 GMT +01:00 Amsterdam / Berlin / Berne / 
Rome / Stockholm / Vienne
Objet: [Nagios-users] HELP: To make graphs with plugin output

I need to put into graphs some plugin outputs. Some of them I did by 
myself, so, I need to know: what tool to use to make graphs, and  the
output format for those plugins made by me.
-- 
Sergio Ariel de la Campa Saiz
Administrador Red UH


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

--
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] Migration of a nagios servers and logs

2009-03-06 Thread MAD
Hi everyone,

Sorry if that questions was already answered but I browsed the web for a while 
and  didn't find a clear answer (and I now this looks like a newbie question).

I had installed Nagios on a server I used to run some tests and now I have 
validate my developments I have to transfer Nagios from this server to a 
production one. Till then, there is no problem...

Unfortunately, I had to run some hosts and services' checks and I want to keep 
these results on the new server. Should I only copy the old log files to the 
new installation or do I need to do something else ? I understood the checks' 
history are only kept in the log files so I imagine all I have to do is some 
copy but will my new Nagios look at them as its own log files?

Thanks in advance

Marc-André

--
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] Using '!' in check_* argument

2009-03-06 Thread MAD
Hi all,

I'm monitoring through my Nagios some web pages which need authentication. For 
some reasons, some passwords use the character '!', the delimiter between the 
check commands' arguments. So the '!' in the passwords aren't seen as a 
character but as a delimiter, wich make the password false and create some 
false arguments.

Is there a way to use '!' in arguments ? I tried by escaping it with a '\', 
quoting it... Nothing worked.

Thanks in advance.

Marc-André

--
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] Using '!' in check_* argument

2009-03-06 Thread MAD
I'm using Nagios 3.0.6 on a CentOS 5.2

I tryed escaping the (!) with  a (\) but it didn't work. I forgot to tell
(and I've just realized it is probably important) I use NagiosQL to create
the service. Is it possible that NagiosQL didn't escape the (! ) but the (\)
when he writes the cfg file ?

Macr-André

- Original Message - 
From: Marc Powell m...@ena.com
To: Nagios Users Nagios-users@lists.sourceforge.net
Sent: Friday, March 06, 2009 4:04 PM
Subject: Re: [Nagios-users] Using '!' in check_* argument



 On Mar 6, 2009, at 8:54 AM, MAD wrote:

 Is there a way to use '!' in arguments ? I tried by escaping it with
 a '\', quoting it... Nothing worked.



 What version of nagios are  you using? New in 3.x --

 http://nagios.sourceforge.net/docs/3_0/macros.html

 TipTip: If you need to pass bang (!) characters in your command
 arguments, you can do so by escaping them with a backslash (\). If you
 need to include backslashes in your command arguments, they should
 also be escaped with a backslash. 

 --
 Marc


 --
 Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
 CA
 -OSBC tackles the biggest issue in open source: Open Sourcing the
 Enterprise
 -Strategies to boost innovation and cut costs with open source
 participation
 -Receive a $600 discount off the registration fee with the source code:
 SFAD
 http://p.sf.net/sfu/XcvMzF8H
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when
 reporting any issue.
 ::: Messages without supporting info will risk being sent to /dev/null



--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Problem with web interface

2009-02-13 Thread MAD
May be that's because PHP is not installed on your system ?

Marc-André

  - Original Message - 
  From: Pravin Kumar 
  To: nagios-users@lists.sourceforge.net 
  Sent: Friday, February 13, 2009 10:25 AM
  Subject: [Nagios-users] Problem with web interface


  Dear All,

  I am trying to install nagios in ubuntu.When I try to connect to my server 
through the url http://myserver/nagios ,its prompting me to open or save a 
file. Not sure where I am making the mistake. Your help on this is highly 
appreciated.

  Regards,
  Pravin.



--


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


--


  ___
  Nagios-users mailing list
  Nagios-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/nagios-users
  ::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
  ::: Messages without supporting info will risk being sent to /dev/null--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] nagios does not produce performance data forcheck_total_procs

2009-02-13 Thread MAD
May be I'm wrong (I don't know yet all the check present in the nagios-plugins 
package...) but I think check_total_procs do not produce any performance data. 
See the service details on your Nagios web interface and look for the 
performance data field. If it is blank that just means this check do not 
provide any perf data and so the rrd and xml files are not created because 
there is nothing to process.

Marc-André
  - Original Message - 
  From: Rahul Nabar 
  To: nagios-users Mailinglist 
  Sent: Friday, February 13, 2009 6:54 PM
  Subject: [Nagios-users] nagios does not produce performance data 
forcheck_total_procs


  While getting PNP to graph stuff for my Nagios services I get an error 
whenever I try to plot the Total Processes field. 

  RRD Database/usr/local/nagios/share/perfdata/star23/Total_Processes.rrd not 
found.

  I checked and that file for performance data indeed seems absent. I do have 
the process_perf_data set to 1. Any ideas why Nagios is not producing 
performance data for this particular service?  

  define service{
  hostgroup_name npre-compute-nodes
  service_description Total Processes
  check_command check_nrpe!check_total_procs  
  process_perf_data 1 
  use srv-pnp-rpn-intermediate
  }

  -- 
  Rahul



--


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


--


  ___
  Nagios-users mailing list
  Nagios-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/nagios-users
  ::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
  ::: Messages without supporting info will risk being sent to /dev/null--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] AIX monitor

2008-08-10 Thread Mad Unix
I have a linux server RHEL5 64bit running cacti/nagios, I am in process to
capture the snmp data of my AIX5.3 clients (10x), any help how to proceed
with this.

-- 
Your search - madunix - did not match any documents.
-
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=100url=/___
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 graph

2008-01-14 Thread Mad Unix
I added the nagiosgraph for current_load when i call it from the web
http://10.5.1.32/nagiosgraph/show.cgi?host=linux1service=db=load,avg1min,avg5min,avg15mingeom=500x100rrdopts=%2Dl%200%20%2Du%20%2010%20%2Dt%20CPU%2DLoad
it gave :

!DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN
htmlhead
title500 Internal Server Error/title
/headbody
h1Internal Server Error/h1
pThe server encountered an internal error or
misconfiguration and was unable to complete
your request./p
pPlease contact the server administrator,
 [EMAIL PROTECTED] and inform them of the time the error occurred,
and anything you might have done that may have
caused the error./p
pMore information about this error may be available
in the server error log./p
hr
addressApache/2.2.3 (Red Hat) Server at 10.5.1.32 Port 80/address



in the servicetext form
define serviceextinfo {
   service_description  Current Load
   host_name  linux1, linux2
   notes_url /nagiosgraph/show.cgi?host=$HOSTNAME$service=$
SERVICEDESC$db=load,avg1min,avg5min,avg15mingeom=500x100rrdopts=%2Dl%200%20%2Du
%2010%20%2Dt%20CPU%2DLoad
   #icon_image  linux.gif
   icon_image_alt  View graphs
 }


On Jan 14, 2008 10:22 AM, Alex Dehaini [EMAIL PROTECTED] wrote:

 Depending on where you installed nagios, run this command

 /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

 That will tell you what is wrong.

 Post the error message and we can help.

 Alex



 On Jan 14, 2008 5:05 AM, Brock Kuhse [EMAIL PROTECTED] wrote:

  Any time you receive that message, try running nagios –v config
  file.  Look for ERROR indications in the output for a better idea of where
  your problems lie.
 
  - Brock
 
  
 
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  ] On Behalf Of Mad Unix
  Sent: Sunday, January 13, 2008 7:36 AM
  To: Alex Dehaini
  Cc: nagios-users@lists.sourceforge.net
  Subject: Re: [Nagios-users] nagios graph
 
  I installed, but i can get it up
  [EMAIL PROTECTED] logos]# service nagios restart
  Running configuration check... FAILED!  Restart aborted.  Check your
  Nagios configuration.
 
  when I add the following only in the commands.cfg
  # nagios_graph
   define command {
command_name  process-service-perfdata
command_line  /usr/bin/perl
  /usr/local/nagios/nagiosgraph/insert.pl
  }
 
 
  in the nagios.cfg i done this
  ###nagiosgraph#
  process_performance_data=1
  service_perfdata_file=/var/spool/nagios/perfdata.log
  service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$
 
  service_perfdata_file_mode=a
  service_perfdata_file_processing_interval=30
  service_perfdata_file_processing_command=process-service-perfdata
 
 
  what could be the problem, i did all required steps in the INSTLL
  document.?
 
  Thanks
 
 
  On Jan 12, 2008 2:01 PM, Alex Dehaini [EMAIL PROTECTED] wrote:
  Have you read the nagiosgraph manual. Read that first, when you run into
  any issues, post your errors and then we can help you.
 
  Alex
  On Jan 12, 2008 2:48 AM, Mad Unix  [EMAIL PROTECTED] wrote:
  am running nagios 2, what would be the best way to add the
  nagiosgraph..
  and other packages should be install inorder to install/run nagiosgraph
 
  thanks
 
  --
  madunix
 
 
  -
  Check out the new SourceForge.net Marketplace.
  It's the best place to buy or sell services for
  just about anything Open Source.
 
  http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
  ___
  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
 
 
 
  --
  Alex Dehaini
  Developer
  Site - www.alexdehaini.com
  Email - [EMAIL PROTECTED]
 
 
 
  --
  madunix
 
 


 --
 Alex Dehaini
 Developer
 Site - www.alexdehaini.com
 Email - [EMAIL PROTECTED]

 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.

 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
 ___
 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




-- 
madunix
-
Check out the new SourceForge.net Marketplace.
It's the best

Re: [Nagios-users] nagios graph

2008-01-13 Thread Mad Unix
I installed, but i can get it up
[EMAIL PROTECTED] logos]# service nagios restart
Running configuration check... FAILED!  Restart aborted.  Check your Nagios
configuration.

when I add the following only in the commands.cfg
# nagios_graph
 define command {
   command_name  process-service-perfdata
   command_line  /usr/bin/perl /usr/local/nagios/nagiosgraph/insert.pl
 }


in the nagios.cfg i done this
###nagiosgraph#
process_performance_data=1
service_perfdata_file=/var/spool/nagios/perfdata.log
service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$
service_perfdata_file_mode=a
service_perfdata_file_processing_interval=30
service_perfdata_file_processing_command=process-service-perfdata


what could be the problem, i did all required steps in the INSTLL document.?

Thanks



On Jan 12, 2008 2:01 PM, Alex Dehaini [EMAIL PROTECTED] wrote:

 Have you read the nagiosgraph manual. Read that first, when you run into
 any issues, post your errors and then we can help you.

 Alex

 On Jan 12, 2008 2:48 AM, Mad Unix  [EMAIL PROTECTED] wrote:

  am running nagios 2, what would be the best way to add the
  nagiosgraph..
  and other packages should be install inorder to install/run nagiosgraph
 
  thanks
 
  --
  madunix
 
 
  -
  Check out the new SourceForge.net Marketplace.
  It's the best place to buy or sell services for
  just about anything Open Source.
 
  http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
  ___
  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
 



 --
 Alex Dehaini
 Developer
 Site - www.alexdehaini.com
 Email - [EMAIL PROTECTED]




-- 
madunix
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
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] ***SPAM*** sms from Nagios

2008-01-11 Thread Mad Unix
what about using smstools, any help in this issue?

On Jan 11, 2008 10:57 AM, Michael Hüttig 
[EMAIL PROTECTED] wrote:

 Hi,
 i´m using for several years sms_client (http://www.smsclient.org/) . It´s
 working very stable with german T-Mobile.
 Please look at Nagios-Faq:
 http://www.nagios.org/faqs/viewfaq.php?faq_id=279

 with best regards
 Michael

 Am Freitag, 11. Januar 2008 08:45 schrieb Jacques FAN:
  Hi All,
 
  I need some answer from you about sms from nagios. I install nagios 2.8and
  mail notification is working well, for sms notification I used lynx
 but
  with lynx I'm not abble to dispatch sms alerts, I mean the sms alert
 can
  be sent, but no way to manage it to specification persons. So I want to
  know if sms alert can be done directly by nagios?
 
 
 
  Thx

 **
 Diese E-Mail ist auf Viren geprüft.

 www.clearswift.com
 **


 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.

 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
 ___
 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




-- 
madunix
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
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] NSClient

2008-01-11 Thread Mad Unix
I installed the Nagios client (nsclient ... pNSClient.exe) to extend nagios
ability to monitor Windows servers.
my nagios server is hosted on RHEL5 64bit Server
What should i add on my nagios server to be able to see the CPU/
Disk/RAM/No. Process for the Windows Server?

Thanks
-- 
madunix
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
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 graph

2008-01-11 Thread Mad Unix
am running nagios 2, what would be the best way to add the nagiosgraph..
and other packages should be install inorder to install/run nagiosgraph

thanks

-- 
madunix
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
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 agent on linux issue after reboot ...

2008-01-09 Thread Mad Unix
try to reconfugure the xinetd service,
my   cat /etc/xinetd.d/nrpe

# default: on
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
flags   = REUSE
socket_type = stream
port= 5666
wait= no
user= nagios
group   = nagios
server  = /usr/local/nagios/bin/nrpe
server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
log_on_failure  += USERID
disable = no
only_from   = x.x.x.x http://127.0.0.1/
}



Madunix


On 1/10/08, Justin Hennessy [EMAIL PROTECTED] wrote:

 Hi All,

 I am having an issue with the NRPE agent on linux servers (happens on
 all flavours I have tried).

 I am using TCP Wrappers to implement it. When the server is rebooted the
 port for NRPE (5666) isn't available until I manually restart it.

 Here is the config I am using for the nrpe xinetd file:

 # default: on
 # description: NRPE (Nagios Remote Plugin Executor)
 service nrpe
 {
flags   = REUSE
socket_type = stream
port= 5666
wait= no
user= nagios
group   = nagios
server  = /usr/local/nagios/bin/nrpe
server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
log_on_failure  += USERID
disable = no
only_from   = xxx.xxx.xxx.xxx
 }


 Any ideas?

 Thanks in advance.

 Justin


 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.

 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
 ___
 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




-- 
madunix
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
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 agent on linux issue after reboot ...

2008-01-09 Thread Mad Unix
Check iptables
ACCEPT tcp  --  anywhere anywherestate NEW tcp
dpt:nrpe


Check netstat
--
[EMAIL PROTECTED] libexec]# netstat -at | grep nrpe
tcp0  0 *:nrpe  *:*
LISTEN



On 1/10/08, Mad Unix [EMAIL PROTECTED] wrote:

 try to reconfugure the xinetd service,
 my   cat /etc/xinetd.d/nrpe

 # default: on
 # description: NRPE (Nagios Remote Plugin Executor)
 service nrpe
 {
 flags   = REUSE
 socket_type = stream
 port= 5666
 wait= no
 user= nagios
 group   = nagios
 server  = /usr/local/nagios/bin/nrpe
 server_args = -c /usr/local/nagios/etc/ nrpe.cfg --inetd
 log_on_failure  += USERID
 disable = no
 only_from   =  x.x.x.x http://127.0.0.1/
 }



 Madunix


  On 1/10/08, Justin Hennessy [EMAIL PROTECTED] wrote:
 
  Hi All,
 
  I am having an issue with the NRPE agent on linux servers (happens on
  all flavours I have tried).
 
  I am using TCP Wrappers to implement it. When the server is rebooted the
  port for NRPE (5666) isn't available until I manually restart it.
 
  Here is the config I am using for the nrpe xinetd file:
 
  # default: on
  # description: NRPE (Nagios Remote Plugin Executor)
  service nrpe
  {
 flags   = REUSE
 socket_type = stream
 port= 5666
 wait= no
 user= nagios
 group   = nagios
 server  = /usr/local/nagios/bin/nrpe
 server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
 log_on_failure  += USERID
 disable = no
 only_from   = xxx.xxx.xxx.xxx
  }
 
 
  Any ideas?
 
  Thanks in advance.
 
  Justin
 
 
  -
 
  Check out the new SourceForge.net Marketplace.
  It's the best place to buy or sell services for
  just about anything Open Source.
 
  http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
  ___
  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
 



 --
 madunix




-- 
madunix
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
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] 10g

2008-01-08 Thread Mad Unix
sorry, yes i mean Oracle10g

On 1/8/08, Roger [EMAIL PROTECTED] wrote:

 On Jan 8, 2008 10:16 AM, Mad Unix [EMAIL PROTECTED] wrote:

  Does Nagios work with 10g ?



 Are you talking about Oracle 10g?




-- 
madunix
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
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 gateway

2008-01-06 Thread Mad Unix
Am trying to send an sms through smstools my GSM modem connected via serial
port

sendsms  0777488x 'lord2'

2008-01-06 11:01:01,6, GSM1: Modem is registered to the network
2008-01-06 11:01:01,6, GSM1: Selecting PDU mode
2008-01-06 11:01:01,7, GSM1: - AT+CMGF=0
2008-01-06 11:01:01,7, GSM1: Command is sent, waiting for the answer
2008-01-06 11:01:02,7, GSM1: - AT+CMGF=0
OK
2008-01-06 11:01:02,6, GSM1: Checking memory size
2008-01-06 11:01:02,7, GSM1: - AT+CPMS?
2008-01-06 11:01:02,7, GSM1: Command is sent, waiting for the answer
2008-01-06 11:01:02,7, GSM1: - AT+CPMS?
+CPMS: MT,0,65,MT,0,65,MT,0,65
OK
2008-01-06 11:01:02,6, GSM1: Used memory is 0 of 65
2008-01-06 11:01:02,6, GSM1: No SMS received
2008-01-06 11:01:10,6, smsd: Moved file /var/spool/sms/outgoing/send_JD7682
to /var/spool/sms/checked
2008-01-06 11:01:13,6, smsd: I have to send 1 short message for
/var/spool/sms/checked/send_JD7682
2008-01-06 11:01:13,6, GSM1: Sending SMS from  to 0777xxx
2008-01-06 11:01:13,6, GSM1: Checking if modem is ready
2008-01-06 11:01:13,7, GSM1: - AT
2008-01-06 11:01:13,7, GSM1: Command is sent, waiting for the answer
2008-01-06 11:01:13,7, GSM1: - AT
OK
2008-01-06 11:01:13,6, GSM1: Checking if Modem is registered to the network
2008-01-06 11:01:13,7, GSM1: - AT+CREG?
2008-01-06 11:01:13,7, GSM1: Command is sent, waiting for the answer
2008-01-06 11:01:14,7, GSM1: - AT+CREG?
+CREG: 0,1
OK
2008-01-06 11:01:14,6, GSM1: Modem is registered to the network
2008-01-06 11:01:14,6, GSM1: Selecting PDU mode
2008-01-06 11:01:14,7, GSM1: - AT+CMGF=0
2008-01-06 11:01:14,7, GSM1: Command is sent, waiting for the answer
2008-01-06 11:01:14,7, GSM1: - AT+CMGF=0
OK
2008-01-06 11:01:14,7, GSM1: - AT+CMGS=18
2008-01-06 11:01:14,7, GSM1: Command is sent, waiting for the answer
2008-01-06 11:01:14,7, GSM1: - AT+CMGS=18

2008-01-06 11:01:14,7, GSM1: -
0011000A9.F05ECB79C2C03
2008-01-06 11:01:14,7, GSM1: Command is sent, waiting for the answer
2008-01-06 11:01:18,7, GSM1: -
0011000A9..F1FF05ECB79C2C03
ERROR
2008-01-06 11:01:18,3, GSM1: The modem said ERROR or did not answer.
2008-01-06 11:01:18,5, GSM1: Waiting 10 sec. before retrying
2008-01-06 11:01:28,6, GSM1: Checking if modem is ready
2008-01-06 11:01:28,7, GSM1: - AT
2008-01-06 11:01:28,7, GSM1: Command is sent, waiting for the answer
2008-01-06 11:01:28,7, GSM1: - AT
OK
2008-01-06 11:01:28,6, GSM1: Checking if Modem is registered to the network
2008-01-06 11:01:28,7, GSM1: - AT+CREG?
2008-01-06 11:01:28,7, GSM1: Command is sent, waiting for the answer
2008-01-06 11:01:29,7, GSM1: - AT+CREG?
+CREG: 0,1
OK
2008-01-06 11:01:29,6, GSM1: Modem is registered to the network
2008-01-06 11:01:29,6, GSM1: Selecting PDU mode
2008-01-06 11:01:29,7, GSM1: - AT+CMGF=0
2008-01-06 11:01:29,7, GSM1: Command is sent, waiting for the answer
2008-01-06 11:01:29,7, GSM1: - AT+CMGF=0
OK
2008-01-06 11:01:29,7, GSM1: - AT+CMGS=18

[EMAIL PROTECTED] ~]#


my config


# Example smsd.conf. Read the manual for a description

devices = GSM1
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
failed = /var/spool/sms/failed
sent = /var/spool/sms/sent
incoming = /var/spool/sms/incoming
logfile = /var/log/smsd.log
loglevel = 7

[GSM1]
device = /dev/ttyS0
incoming = yes
#baudrate = 115200
#cs_convert = yes
#pin = 
#mode = nw
#baudrate = 115200
#rtscts = yes
#pin = 


what could be wrong?


On Jan 5, 2008 10:15 PM, Dario B. Bestetti [EMAIL PROTECTED]
wrote:


 - Original Message -
 From: Mad Unix [EMAIL PROTECTED]
 To: Peter Edmonds [EMAIL PROTECTED]
 Cc: nagios-users@lists.sourceforge.net
 Sent: Saturday, January 5, 2008 4:53:56 PM (GMT-0300) Auto-Detected
 Subject: Re: [Nagios-users] SMS gateway



 in the future am thinking of a good enhancements of SMS (gnokii or
 smstools) to be 2 way communications, i.e. so the server can be controled
 via mobile phone.
 if a server/service goes down, you can reply to the
 alert SMS message with a reboot command or start an application,
 to fix a service as long the server reachable and the signal can get to
 the server.

 What do you think ?

 Thanks Dennis and Peter for you inputs ... i have downloaded smstools
 started with the configuration.







 On 1/5/08, Peter Edmonds [EMAIL PROTECTED] wrote:
 
   which tools do you use to send sms through GSM modem (connected via
  COM)
   through nagios:
   smstools, kanal, or smsclient
 
  I use gnokii. Modem is a Telular GSM SX5D
 
  /etc/gnokiirc looks like this
 
  [global]
  port = /dev/ttyS0
  model = AT
  initlength = default
  connection = serial
  use_locking = yes
  serial_baudrate = 19200
  smsc_timeout = 10
  [gnokiid]
  bindir = /usr/sbin/
  [connect_script]
  TELEPHONE = 12345678
  [disconnect_script]
  [logging]
  debug = on
  rlpdebug = off
  xdebug = off
 
 
 
  Notify command for service notifications looks like this
 
  echo -e
  $HOSTNAME$\n$SERVICEDESC$\n$SERVICESTATE$\n$SERVICEOUTPUT$\n$LONGDATETIME$
  |gnokii --sendsms

Re: [Nagios-users] SMS gateway

2008-01-05 Thread Mad Unix
in the future am thinking of a good enhancements of SMS (gnokii or smstools)
to be 2 way communications, i.e. so the server can be controled via mobile
phone.
if a server/service goes down, you can reply to the
alert SMS message with a reboot command or start an application,
to fix a service as long the server reachable and the signal can get to the
server.

What do you think ?

Thanks Dennis and Peter for you inputs ... i have downloaded smstools
started with the configuration.







On 1/5/08, Peter Edmonds [EMAIL PROTECTED] wrote:

  which tools do you use to send sms through GSM modem (connected via COM)
  through nagios:
  smstools, kanal, or smsclient

 I use gnokii. Modem is a Telular GSM SX5D

 /etc/gnokiirc looks like this

 [global]
 port = /dev/ttyS0
 model = AT
 initlength = default
 connection = serial
 use_locking = yes
 serial_baudrate = 19200
 smsc_timeout = 10
 [gnokiid]
 bindir = /usr/sbin/
 [connect_script]
 TELEPHONE = 12345678
 [disconnect_script]
 [logging]
 debug = on
 rlpdebug = off
 xdebug = off



 Notify command for service notifications looks like this

 echo -e
 $HOSTNAME$\n$SERVICEDESC$\n$SERVICESTATE$\n$SERVICEOUTPUT$\n$LONGDATETIME$
 |gnokii --sendsms $CONTACTPAGER$ 
 /usr/local/groundwork/nagios/var/gnokii.log 21

 For host notifications this does the job

 echo -e
 $HOSTNAME$\n$SERVICEDESC$\n$SERVICESTATE$\n$HOSTOUTPUT$\n$LONGDATETIME$
 |gnokii --sendsms $CONTACTPAGER$  /usr/local/nagios/var/gnokii.log
 21

 Peter Edmonds




-- 
madunix
-
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] SMS gateway

2008-01-04 Thread Mad Unix
which tools do you use to send sms through GSM modem (connected via COM)
 through nagios:
smstools, kanal, or smsclient


On 1/3/08, Dennis Hünseler [EMAIL PROTECTED] wrote:

 Hi,

 please take a look at this postings first:


 http://sourceforge.net/mailarchive/forum.php?thread_name=iSeXznEC.1196286006.0182960.maco%40blava.netforum_name=nagios-users

 Thanks.

 On Thu, 3 Jan 2008 10:54:59 +0200, Mad Unix wrote:

 *I am trying to connect 2N Analog GSM Gateways* to my Linux Server in
 order to send SMS messages to
 my admins through nagios.

 1. any one installed this device before on RHEL5 server if yes your help
 appreciated.
 2. how can modify the nagios config in order to send SMS messages

 --
 madunix

 kind regards,Dennis Hünseler




-- 
madunix
-
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] SMS gateway

2008-01-04 Thread Mad Unix
can you send me how did you configure the GSM modem (Serial Port) under
linux, and the smstools configuration and also how did you add the sms to
your nagios config, would be really appreciated


Thanks

On 1/4/08, Dennis Hünseler [EMAIL PROTECTED] wrote:

 Hello Mad Unix,

 I use smstools to send the sms through gsm modem.

 Kind regards,
 Dennis

 Mad Unix schrieb:
  which tools do you use to send sms through GSM modem (connected via
  COM)  through nagios:
  smstools, kanal, or smsclient
 
 
  On 1/3/08, *Dennis Hünseler* [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote:
 
  Hi,
 
  please take a look at this postings first:
 
 
 http://sourceforge.net/mailarchive/forum.php?thread_name=iSeXznEC.1196286006.0182960.maco%40blava.netforum_name=nagios-users
  
 http://sourceforge.net/mailarchive/forum.php?thread_name=iSeXznEC.1196286006.0182960.maco%40blava.netforum_name=nagios-users
 
 
  Thanks.
 
  On Thu, 3 Jan 2008 10:54:59 +0200, Mad Unix wrote:
 
  *I am trying to connect 2N Analog GSM Gateways* to my Linux
  Server in order to send SMS messages to
  my admins through nagios.
 
  1. any one installed this device before on RHEL5 server if yes
  your help appreciated.
  2. how can modify the nagios config in order to send SMS
 messages
 
  --
  madunix
 
  kind regards,Dennis Hünseler
 
 
 
 
  --
  madunix




-- 
madunix
-
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] SMS gateway

2008-01-03 Thread Mad Unix
*I am trying to connect 2N Analog GSM Gateways* to my Linux Server in order
to send SMS messages to
my admins through nagios.

1. any one installed this device before on RHEL5 server if yes your help
appreciated.
2. how can modify the nagios config in order to send SMS messages

-- 
madunix
-
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] Connection refused or timed out

2008-01-02 Thread Mad Unix
I have the foloowing error now on all item

CHECK_NRPE: Error - Could not complete SSL handshake


from the server I issued

[EMAIL PROTECTED] etc]# telnet 10.5.1.31 5666
Trying 10.5.1.31...
Connected to 10.5.1.31 (10.5.1.31).
Escape character is '^]'.
Connection closed by foreign host.


On Jan 2, 2008 10:45 AM, Mad Unix [EMAIL PROTECTED] wrote:
 the nagios shows

 Current Users
  CRITICAL 01-02-2008 11:35:13 0d 0h 47m 47s 4/4 Connection refused or
 timed out
  PING

  CRITICAL 01-02-2008 11:36:20 0d 0h 46m 40s 4/4 Connection refused or
 timed out
  Root Partition

  CRITICAL 01-02-2008 11:37:27 0d 0h 45m 33s 4/4 Connection refused or
 timed out
  Total Processes

  CRITICAL 01-02-2008 11:30:04 0d 0h 44m 27s 4/4 Connection refused or
 timed out


 on the monitor server i made this:
 define host{
 use generic-host; Name of host
 template to use
 host_name   linux1
 alias   linux1
 address 10.5.1.31
 check_command   check-host-alive
 max_check_attempts  10
 check_period24x7
 notification_interval   120
 notification_period 24x7
 notification_optionsd,r
 contact_groups  admins
 }



 define service{
 use generic-service ; Name
 of service template to use
 host_name   linux1
 service_description PING
 is_volatile 0
 check_period24x7
 max_check_attempts  4
 normal_check_interval   5
 retry_check_interval1
 contact_groups  admins
 notification_optionsw,u,c,r
 notification_interval   960
 notification_period 24x7
 check_command
 check_nrpe!check_ping!100.0,20%!500.0,60%
 }

 define service{
 use generic-service ; Name
 of service template to use
 host_name   linux1
 service_description Root Partition
 is_volatile 0
 check_period24x7
 max_check_attempts  4
 normal_check_interval   5
 retry_check_interval1
 contact_groups  admins
 notification_optionsw,u,c,r
 notification_interval   960
 notification_period 24x7
 check_command   check_nrpe!check_local_disk!20%!10%!/
 }

 define service{
 use generic-service ; Name
 of service template to use
 host_name   linux1
 service_description Current Users
 is_volatile 0
 check_period24x7
 max_check_attempts  4
 normal_check_interval   5
 retry_check_interval1
 contact_groups  admins
 notification_optionsw,u,c,r
 notification_interval   960
 notification_period 24x7
 check_command   check_nrpe!check_local_users!20!50
 }

 define service{
 use generic-service ; Name
 of service template to use
 host_name   linux1
 service_description Total Processes
 is_volatile 0
 check_period24x7
 max_check_attempts  4
 normal_check_interval   5
 retry_check_interval1
 contact_groups  admins
 notification_optionsw,u,c,r
 notification_interval   960
 notification_period 24x7
 check_command   check_nrpe!check_local_procs!100!125
 }




 on the remote client agent i did this

 [EMAIL PROTECTED] nagiosinstall]# netstat -at | grep nrpe
 tcp0  0 *:nrpe  *:*
  LISTEN
 [EMAIL PROTECTED] nagiosinstall]# ps -ef | grep nrpe
 nagios   17326 1  0 10:56 ?00:00:00 /usr/local/nagios/nrpe
 -c /usr/local/nagios/nrpe.cfg -d
 root 17447 16952  0 11:38 pts/100:00:00 grep nrpe




 --
 madunix




-- 
madunix

-
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

[Nagios-users] ping

2008-01-02 Thread Mad Unix
my nagios shows the following

check_ping: %s: Warning threshold must be integer or percentage!
on the server
define service{
use generic-service ; Name of
service template to use
host_name   linux1
service_description PING
is_volatile 0
check_period24x7
max_check_attempts  4
normal_check_interval   5
retry_check_interval1
contact_groups  admins
notification_optionsw,u,c,r
notification_interval   960
notification_period 24x7
check_command
check_nrpe!check_ping!100.0,20%!500.0,60%
}
on the client runnig nrpe

command[check_ping]=/usr/local/nagios/libexec/check_ping -H $ARG1$ -w $ARG2$
-c $ARG3$ -p 5

-- 
madunix
-
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] ping

2008-01-02 Thread Mad Unix
it gave now
check_ping: Invalid hostname/address - $
other commands work, only the ping it gave eror

i changed the ping the client to
command[check_local_disk]=/usr/local/nagios/libexec/check_disk -w $ARG1$ -c
$ARG2$ -p $ARG3$
command[check_local_users]=/usr/local/nagios/libexec/check_users -w $ARG1$
-c $ARG2$
command[check_local_load]=/usr/local/nagios/libexec/check_load -w $ARG1$ -c
$ARG2$
command[check_local_procs]=/usr/local/nagios/libexec/check_procs -w $ARG1$
-c $ARG2$
#command[check_ping]=/usr/local/nagios/libexec/check_ping -H $ARG1$ -w
$ARG2$ -c $ARG3$ -p 5
command[check_ping]=/usr/local/nagios/libexec/check_ping -H $HOSTADDRESS$ -w
$ARG1$ -c $ARG2$ -p 5

On Jan 2, 2008 2:29 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 not sure but I think your check_ping command has an error, try
 changing it to

 //edit(based on your cfg):

 command[check_ping]=/usr/local/nagios/libexec/check_ping -H
 $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5


 Mad Unix wrote:
  my nagios shows the following
 
  check_ping: %s: Warning threshold must be integer or percentage!
  on the server
  define service{
  use generic-service ;
  Name of service template to use
  host_name   linux1
  service_description PING
  is_volatile 0
  check_period24x7
  max_check_attempts  4
  normal_check_interval   5
  retry_check_interval1
  contact_groups  admins
  notification_optionsw,u,c,r
  notification_interval   960
  notification_period 24x7
  check_command
  check_nrpe!check_ping!100.0,20%!500.0,60%
  }
  on the client runnig nrpe
 
  command[check_ping]=/usr/local/nagios/libexec/check_ping -H $ARG1$
  -w $ARG2$ -c $ARG3$ -p 5
 
  --
  madunix
 
  --
 
 
 -
  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

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.7 (MingW32)

 iD8DBQFHe4O1dS4H/t4eKFARAtK+AJ9R5VT5N9qILMNIwKkoREiSIdxzzACg5Vy0
 ojI09Q7Saf64fhw+qfCwZ7k=
 =6szX
 -END PGP SIGNATURE-




-- 
madunix
-
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] ping

2008-01-02 Thread Mad Unix
i can ping the server with a name
[EMAIL PROTECTED] etc]# ping linux1
PING linux1.sdc.lan (10.5.1.31) 56(84) bytes of data.
64 bytes from 10.5.1.31: icmp_seq=1 ttl=64 time=0.147 ms
64 bytes from 10.5.1.31: icmp_seq=2 ttl=64 time=0.132 ms

the error is starnge
check_ping: %s: Warning threshold must be integer or percentage



On Jan 2, 2008 3:03 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Probably because the hostname you defined in the service

 host_name   linux1

 is unknown, try changing it to localhost or the correct local domain

 Mad Unix wrote:
  it gave now check_ping: Invalid hostname/address - $ other commands
  work, only the ping it gave eror
 
  i changed the ping the client to
  command[check_local_disk]=/usr/local/nagios/libexec/check_disk -w
  $ARG1$ -c $ARG2$ -p $ARG3$
  command[check_local_users]=/usr/local/nagios/libexec/check_users -w
  $ARG1$ -c $ARG2$
  command[check_local_load]=/usr/local/nagios/libexec/check_load -w
  $ARG1$ -c $ARG2$
  command[check_local_procs]=/usr/local/nagios/libexec/check_procs -w
  $ARG1$ -c $ARG2$
  #command[check_ping]=/usr/local/nagios/libexec/check_ping -H $ARG1$
  -w $ARG2$ -c $ARG3$ -p 5
  command[check_ping]=/usr/local/nagios/libexec/check_ping -H
  $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5
 
  On Jan 2, 2008 2:29 PM, [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote:
 
  not sure but I think your check_ping command has an error, try
  changing it to
 
  //edit(based on your cfg):
 
  command[check_ping]=/usr/local/nagios/libexec/check_ping -H
  $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5
 
 
  Mad Unix wrote:
  my nagios shows the following
 
  check_ping: %s: Warning threshold must be integer or percentage!
  on the server define service{ use
  generic-service ; Name of service template to use
  host_name   linux1 service_description
  PING is_volatile 0 check_period
  24x7 max_check_attempts  4 normal_check_interval
  5 retry_check_interval1 contact_groups
  admins notification_optionsw,u,c,r
  notification_interval   960 notification_period
  24x7 check_command check_nrpe!check_ping!100.0,20%!500.0,60% } on
  the client runnig nrpe
 
  command[check_ping]=/usr/local/nagios/libexec/check_ping -H
  $ARG1$ -w $ARG2$ -c $ARG3$ -p 5
 
  -- madunix
 
  --
 
 
 
 
 -
 
  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
  mailto: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
 

  -- madunix

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.7 (MingW32)

 iD8DBQFHe4uudS4H/t4eKFARAs2AAJ96P7cFl6FbjfyyziCteVC1f6jjzQCeOUsD
 lPm5a/zsumegOtL//METaRI=
 =5Tau
 -END PGP SIGNATURE-




-- 
madunix
-
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] ping

2008-01-02 Thread Mad Unix
$
command[check_local_load]=/usr/local/nagios/libexec/check_load -w $ARG1$ -c
$ARG2$
command[check_local_procs]=/usr/local/nagios/libexec/check_procs -w $ARG1$
-c $ARG2$
command[check_ping]=/usr/local/nagios/libexec/check_ping -H $ARG1$ -w $ARG2$
-c $ARG3$ -p 5
#command[check_ping]=/usr/local/nagios/libexec/check_ping -H $HOSTADDRESS$
-w $ARG1$ -c $ARG2$ -p 5
#command[check_ping]=/usr/local/nagios/libexec/check_ping -H $HOSTADDRESS$
-w $ARG1$ -c $ARG2$

On Jan 2, 2008 4:56 PM, Marc Powell [EMAIL PROTECTED] wrote:



  -Original Message-
  From: [EMAIL PROTECTED] [mailto:nagios-users-
  [EMAIL PROTECTED] On Behalf Of Mad Unix
  Sent: Wednesday, January 02, 2008 7:52 AM
  To: [EMAIL PROTECTED]
  Cc: nagios-users@lists.sourceforge.net
  Subject: Re: [Nagios-users] ping


  the error is starnge
  check_ping: %s: Warning threshold must be integer or percentage

 It means that the argument to -w on the machine running check_ping is
 blank or not an integer or percentage.

 --
 Marc

 -
 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




-- 
madunix
-
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] ping

2008-01-02 Thread Mad Unix
Thanks , I ll check it , when i get back to my office 

On 1/2/08, Penno, Jeff J [EMAIL PROTECTED] wrote:

  This is probably either a firewall issue or you haven't configured xinetd
 properly for your nagios server:



 Try:  cat /etc/xinetd.d/nrpe



 # default: on

 # description: NRPE (Nagios Remote Plugin Executor)

 service nrpe

 {

 flags   = REUSE

 socket_type = stream

 port= 5666

 wait= no

 user= nagios

 group   = nagios

 server  = /usr/local/nagios/bin/nrpe

 server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd

 log_on_failure  += USERID

 disable = no

 only_from   = 127.0.0.1 10.5.1.32 ß You need to make
 sure your server IP is listed here – just need a space between the IPs (no
 comma, quotes etc).

 }



 IP restrictions in nrpe.cfg aren't used if you are using xinetd





 *From:* [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] *On Behalf Of *Mad Unix
 *Sent:* Wednesday, January 02, 2008 10:13 AM
 *To:* Marc Powell
 *Cc:* nagios-users@lists.sourceforge.net
 *Subject:* Re: [Nagios-users] ping



 my nrpe.cfg

 [EMAIL PROTECTED] nagios]# vi nrpe.cfg


 #
 # Sample NRPE Config File
 # Written by: Ethan Galstad ( [EMAIL PROTECTED])
 #
 # Last Modified: 11-23-2007
 #
 # NOTES:
 # This is a sample configuration file for the NRPE daemon.  It needs to be
 # located on the remote host that is running the NRPE daemon, not the host

 # from which the check_nrpe client is being executed.

 #


 # LOG FACILITY
 # The syslog facility that should be used for logging purposes.

 log_facility=daemon



 # PID FILE
 # The name of the file in which the NRPE daemon should write it's process
 ID
 # number.  The file is only written if the NRPE daemon is started by the
 root
 # user and is running in standalone mode.

 pid_file=/var/run/nrpe.pid



 # PORT NUMBER
 # Port number we should wait for connections on.
 # NOTE: This must be a non-priviledged port (i.e.  1024).
 # NOTE: This option is ignored if NRPE is running under either inetd or
 xinetd

 server_port=5666



 # SERVER ADDRESS
 /dont
 #
 # NOTE: This option is ignored if NRPE is running under either inetd or
 xinetd

 allowed_hosts=127.0.0.1, 10.5.1.32



 # COMMAND ARGUMENT PROCESSING
 # This option determines whether or not the NRPE daemon will allow clients

 # to specify arguments to commands that are executed.  This option only
 works
 # if the daemon was configured with the --enable-command-args configure
 script
 # option.
 #
 # *** ENABLING THIS OPTION IS A SECURITY RISK! ***
 # Read the SECURITY file for information on some of the security
 implications
 # of enabling this variable.
 #
 # Values: 0=do not allow arguments, 1=allow command arguments

 dont_blame_nrpe=1



 # COMMAND PREFIX
 # This option allows you to prefix all commands with a user-defined
 string.
 # A space is automatically added between the specified prefix string and
 the
 # command line from the command definition.
 #
 # *** THIS EXAMPLE MAY POSE A POTENTIAL SECURITY RISK, SO USE WITH
 CAUTION! ***
 # Usage scenario:
 # Execute restricted commmands using sudo.  For this to work, you need to
 add
 # the nagios user to your /etc/sudoers.  An example entry for alllowing
 # execution of the plugins from might be:
 #
 # nagios  ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/
 #
 # This lets the nagios user run all commands in that directory (and only
 them)
 # without asking for a password.  If you do this, make sure you don't give

 # random users write access to that directory or its contents!


 #
 # Sample NRPE Config File
 # Written by: Ethan Galstad ( [EMAIL PROTECTED])
 #
 # Last Modified: 11-23-2007
 #
 # NOTES:
 # This is a sample configuration file for the NRPE daemon.  It needs to be
 # located on the remote host that is running the NRPE daemon, not the host

 # from which the check_nrpe client is being executed.

 #


 # LOG FACILITY
 # The syslog facility that should be used for logging purposes.

 log_facility=daemon



 # PID FILE
 # The name of the file in which the NRPE daemon should write it's process
 ID
 # number.  The file is only written if the NRPE daemon is started by the
 root
 # user and is running in standalone mode.

 pid_file=/var/run/nrpe.pid



 # PORT NUMBER
 # Port number we should wait for connections on.
 # NOTE: This must be a non-priviledged port (i.e.  1024).
 # NOTE: This option is ignored if NRPE is running under either inetd or
 xinetd

 server_port=5666



 # SERVER ADDRESS
 # Address that nrpe should bind to in case there are more than one