Re: [Nagios-users] Querying nagios object information through command line

2012-05-16 Thread Wenhua Zhang
Hi Yu,
I think status-txt may do some help for you.
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. You can also get the source
code from github "https://github.com/shiziwen/nagios-status2txt";.

Besides plain text, there have been some other format you can use, XML and JSON.
JOSN: 
http://exchange.nagios.org/directory/Addons/APIs/JSON/status-2Djson/details
XML: http://svn.jasonantman.com/nagios-xml/statusXML-krzywanski.php,
and this(c version of nagios-xml:
http://svn.jasonantman.com/nagios-xml/php_module/), which maybe more
usefull for light-weight or high-performance purpose.

I hope it can do some help for you.

2012/5/17 Yu Watanabe :
> Benny , Ritchie , Daniel
>
> Thank you for the advice.
>
> I will take a look at the mklivestatus.
>
> Thanks.
> Yu
>
> C. Bensend さんは��きました:
>>
>>> Is there a script or a module that can be called through a command line
>>> and can retrieve nagios object definition , host , service?
>>>
>>> I am thinking of calling from php program.
>>>
>>> I found that config.cgi has an ability of fetching the object definition
>>> but it seems that it returns html info.
>>>
>>> It would be helpful if someone can share their thoughts.
>>
>>Livestatus can do this, and it's MUCH quicker/more lightweight/better
>>(IMHO) than NDOUtils.
>>
>>http://mathias-kettner.de/checkmk_livestatus.html
>>
>>Benny
>>
>>
>>--
>>"The problem with quotes on the internet is that it's very hard to
>>verify their authenticity."   -- Abraham Lincoln
>>
>>
>>
>>--
>>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

--
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] Querying nagios object information through command line

2012-05-16 Thread Yu Watanabe
Benny , Ritchie , Daniel

Thank you for the advice.

I will take a look at the mklivestatus.

Thanks.
Yu

C. Bensend さんは書きました:
>
>> Is there a script or a module that can be called through a command line
>> and can retrieve nagios object definition , host , service?
>>
>> I am thinking of calling from php program.
>>
>> I found that config.cgi has an ability of fetching the object definition
>> but it seems that it returns html info.
>>
>> It would be helpful if someone can share their thoughts.
>
>Livestatus can do this, and it's MUCH quicker/more lightweight/better
>(IMHO) than NDOUtils.
>
>http://mathias-kettner.de/checkmk_livestatus.html
>
>Benny
>
>
>-- 
>"The problem with quotes on the internet is that it's very hard to
>verify their authenticity."   -- Abraham Lincoln
>
>
>
>--
>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] check_http fails for two Sprint sites

2012-05-16 Thread Frank Bulk - iName.com
FYI: Sprint did something this morning such that those sites are now
checking cleanly with check_http.

Frank


From: Frank Bulk [frnk...@iname.com]
Sent: Friday, February 24, 2012 8:27 AM
To: 'Paul Dubuc'; 'Nagios Users List'
Subject: RE: [Nagios-users] check_http fails for two Sprint sites

Yes, I did -- no go.  You can test it yourself -- there's nothing special
about where I'm testing it from. =)

It's clear that check_http is choking on it, and I suspect it's because it
redirects to a secure version of the site.

Frank

-Original Message-
From: Paul Dubuc [mailto:w...@paul.dubuc.org]
Sent: Friday, February 24, 2012 8:26 AM
To: frnk...@iname.com; Nagios Users List
Subject: Re: [Nagios-users] check_http fails for two Sprint sites

Frank Bulk wrote:
> Starting this morning two IPv6 sites, www.sprint.net and www.sprintv6.net
> failed to pass check_http.  What's strange is that the v4 version of
> www.sprint.net also fails.
>
> I see that there are 302's (redirection) to the secure version of the
site,
> but using the '-f follow' command doesn't help, either.  It seems that if
> the site one being is redirected to is secure that the check command
fails.
>

Did you try any of the other options for -f, like '-f sticky' or '-f
stickyport'?



--
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] Alerts not making it to notifications log or alert history

2012-05-16 Thread Mark Wicks
Alex,
I do not have more details about the problem but its on my radar now.
Next time it happens i will keep more detailed notes.

thanks,
Mark
--
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] Perfdata problem

2012-05-16 Thread Randal, Phil
That older perfdata problem is here:

http://tracker.nagios.org/view.php?id=247

Patch (untested) to always process perfdata (removing the early exits):

--- nagios/xdata/xpddefault.c   2012-02-07 10:15:02.0 +
+++ nagios/xdata/xpddefault.c   2012-05-16 16:48:44.0 +0100
@@ -382,6 +382,7 @@
 * bail early if we've got nothing to do so we don't spend a lot
 * of time calculating macros that never get used
 */
+   /*
if(!svc || !svc->perf_data || !*svc->perf_data) {
return OK;
}
@@ -389,6 +390,7 @@
return OK;
}

+   */
/*
 * we know we've got some work to do, so grab the necessary
 * macros and get busy
@@ -423,12 +425,14 @@
 * bail early if we've got nothing to do so we don't spend a lot
 * of time calculating macros that never get used
 */
+   /*
if(!hst || !hst->perf_data || !*hst->perf_data) {
return OK;
}
if((!xpddefault_host_perfdata_fp || 
!xpddefault_host_perfdata_file_template) && !xpddefault_host_perfdata_command) {
return OK;
}
+   */

/* set up macros and get to work */
memset(&mac, 0, sizeof(mac));

Icinga's solution was to add two new config variables:

https://dev.icinga.org/issues/1413

Cheers,

Phil
--
Phil Randal
Infrastructure Engineer
Hoople Ltd | Thorn Office Centre | Hereford HR2 6JT
Tel: 01432 260415 | Email: phil.ran...@hoopleltd.co.uk

-Original Message-
From: Andreas Ericsson [mailto:a...@op5.se]
Sent: 16 May 2012 13:37
To: Nagios Users List
Subject: Re: [Nagios-users] Nagios 3.4.0 double quote in command bug (fixed)

On 05/15/2012 03:49 PM, Dennis Kuhlmeier wrote:
> Hi Phil,
>
> On 15.05.12 15:24, Randal, Phil wrote:
>> Hi Dennis,
>>
>> Can you check out Nagios 3.4.1 and see if this fixes the problem?
>>
>
> sorry for not checking prior to posting.
>
> Anyway, I built the new version, btw., why can't you just build the
> RPM from the tar? This is what I had to do on RHEL5:
>
>
> # tar xzf nagios-3.4.1.tar.gz
> # mv nagios nagios-3.4.1
> # cd nagios-3.4.1
> # vim nagios.spec
>change "datarootdir" to "datadir" in configure statement # cd ..
> # tar czf nagios-3.4.1.tar.gz nagios-3.4.1/ # rpmbuild -tb
> nagios-3.4.1.tar.gz
>
> Tada, build works.
>
>
> Back to the problem.
> Installed the update, doesn't help. On my sample host with 31 checks
> only 18 get submitted via Perfdata. Back to nagios-3.2.3 again and all
> 31 checks are processed. Please tell me if you need any more details,
> performance data template configuration or something like that.
>

This is a slightly older bug about perfdata not being processed when there is 
no perfdata. I'll see if I get time to take a look at it.

--
Andreas Ericsson   andreas.erics...@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and terror, I 
think we should give some serious thought to declaring war on peace.

--
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
“Any opinion expressed in this e-mail or any attached files are those of the 
individual and not necessarily those of Hoople Ltd. You should be aware that 
Hoople Ltd. monitors its email service. This e-mail and any attached files are 
confidential and intended solely for the use of the addressee. This 
communication may contain material protected by law from being passed on. If 
you are not the intended recipient and have received this e-mail in error, you 
are advised that any use, dissemination, forwarding, printing or copying of 
this e-mail is strictly prohibited. If you have received this e-mail in error 
please contact the sender immediately and destroy all copies of it.
--
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] Alarm sounds playing without any alarm listed on status

2012-05-16 Thread Francisco Cabrita
Hello,

//Sorry for crossposting.


I'm having a weird behaviour under Nagios 3.3.1 (and 3.4.1). When I
specify some filters to status.cgi, I don't see any alarm on the
screen (as expected) but I get the audible alarm for critical
services. I'm passing these variables to it.


this is the argument I use on status.cgi:
status.cgi?hostgroup=all&style=detail&hostprops=270378&hoststatustypes=4&serviceprops=270378&servicestatustypes=16


(this is what I want to see)
Host Status Types: Down
Host Properties: Not In Scheduled Downtime & Has Not Been Acknowledged
& Checks Enabled & Notifications Enabled & In Hard State
Service Status Types: Critical
Service Properties: Not In Scheduled Downtime & Has Not Been
Acknowledged & Active Checks Enabled & Notifications Enabled & In Hard
State


Thanks in advance


Any tip?


-- 
Change is the essential process of all existence.

-- Spock, "Let That Be Your Last Battlefield", stardate 5730.2

--
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] Alerts not making it to notifications log or alert history

2012-05-16 Thread Alex Griffin
That's very odd, and I really don't have any concrete ideas for you. I 
haven't heard of anyone running into this issue before. Maybe 
reinstalling the packages might fix something, though?

You said it's an intermittent problem, so how often would you say it 
occurs? Have you noticed any patterns about when it happens?

Alex Griffin
---
Tech Team
agrif...@nagios.com

Mark Wicks wrote:
> Hello,
>
> I am having a intermittent problem where notifications are not making it
> into the notifications page from the web interface or the alert history
> but they show up in the event log and actually do go out to contacts via
> email.
>
> This problem is making our alert history and notifications page
> un-reliable when we are trying piece together who got what alert.
>
> I am running debian with default nagios packages.
>
> ii  nagios-images   0.7
>   Collection of images and icons for the nagios system
> ii  nagios-plugins  1.4.15-3squeeze1
> Plugins for the nagios network monitoring and management system
> ii  nagios-plugins-basic1.4.15-3squeeze1
> Plugins for the nagios network monitoring and management system
> ii  nagios-plugins-standard 1.4.15-3squeeze1
> Plugins for the nagios network monitoring and management system
> ii  nagios3 3.2.1-2  A
> host/service/network monitoring and management system
> ii  nagios3-cgi 3.2.1-2  cgi
> files for nagios3
> ii  nagios3-common  3.2.1-2
>   support files for nagios3
> ii  nagios3-core3.2.1-2  A
> host/service/network monitoring and management system
>
> Still working on duplicating problem.
>
> Has anyone run into something like this?
>
> Thanks,
>
> -Mark
>
>
>
> --
> 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] Performance data not being returned

2012-05-16 Thread Alex Griffin
You keep putting commas in your example output, but as someone else 
already pointed out, perfdata is *space*-separated. The commas shouldn't 
be there. It seems this probably isn't the issue though. Why don't you 
post your plugin's source code so I can get a better idea of what's 
going on.

Alex Griffin
---
Tech Team
agrif...@nagios.com

Jonathan Gazeley wrote:
> The newlines were introduced by my mail client. There are no unusual
> characters in the output of the plugin. As far as I can tell, the
> perfdata complies completely with the specs.
>
> status | key1=value1%;warn;crit, key2=value2%;warn;crit
>
> The perfdata string is generated in a loop by appending an item for each
> DHCP pool I am monitoring. When we come to print the variable, it seems
> to get ignored (hence the pipe is printed but nothing else).
>
> If I statically set the variable to have the same value as the perfdata
> ought to, then the plugin works properly, and the full perfdata string
> is returned.
>
> So what is it about printing this variable through NRPE that breaks it?
> I am totally confused by this. Happy to send my plugin source code to
> the list if it helps (it's only 60 lines of perl).
>
> Thanks,
> Jonathan
>
>
> On 14/05/12 16:33, Alex Griffin wrote:
>> Are the newlines in your output an artifact of sending this over email
>> or are there really newlines in your plugin output? If they're really
>> there, you should eliminate them.
>>
>> Alex Griffin
>> ---
>> Tech Team
>> agrif...@nagios.com
>>
>> Jonathan Gazeley wrote:
>>> On 10/05/12 16:39, C. Bensend wrote:

> I've narrowed it down to a stage where running the plugin directly
> returns the right results, but running the plugin through check_nrpe on
> localhost returns this:
>
> [jg4461@dhcp1 log]$ /usr/lib64/nagios/plugins/check_nrpe -H localhost -c
> check_dhcpd_pools
> OK - all pools less than 80% full |
>
> What could cause NRPE to truncate the results in such a way?

 Too much data?

 Are you using SSL?

 I don't know that I've seen this behavior before - it's always
 been *invalid* perfdata that have caused this issue for me.

>>>
>>> I am using SSL in production, although not for testing. Both cases
>>> return the same truncated results.
>>>
>>> The total status + performance data returned from this plugin is only
>>> 500-and-something bytes, less than the limits for NRPE that I'd heard about.
>>>
>>> I'm wondering if it might be something to do with the embedded perl
>>> interpreter. Does NRPE use this to execute perl-flavoured plugins?
>>>
>>> Thanks for your help,
>>> Jonathan
>>>
>>> --
>>> 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
>
>
> --
> 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] Querying nagios object information through command line

2012-05-16 Thread Daniel Wittenberg
I second livestatus, we use it all the time, plus there is a webservice as 
well, livestatusSlave which might work better with your php.

http://nagios.larsmichelsen.com/livestatusslave/

Dan


-Original Message-
From: C. Bensend [mailto:be...@bennyvision.com] 
Sent: Wednesday, May 16, 2012 7:01 AM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Querying nagios object information through command 
line


> Is there a script or a module that can be called through a command line
> and can retrieve nagios object definition , host , service?
>
> I am thinking of calling from php program.
>
> I found that config.cgi has an ability of fetching the object definition
> but it seems that it returns html info.
>
> It would be helpful if someone can share their thoughts.

Livestatus can do this, and it's MUCH quicker/more lightweight/better
(IMHO) than NDOUtils.

http://mathias-kettner.de/checkmk_livestatus.html

Benny


-- 
"The problem with quotes on the internet is that it's very hard to
verify their authenticity."   -- Abraham Lincoln



--
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] Nagios 3.4.0 double quote in command bug (fixed)

2012-05-16 Thread Andreas Ericsson
On 05/15/2012 03:49 PM, Dennis Kuhlmeier wrote:
> Hi Phil,
> 
> On 15.05.12 15:24, Randal, Phil wrote:
>> Hi Dennis,
>>
>> Can you check out Nagios 3.4.1 and see if this fixes the problem?
>>
> 
> sorry for not checking prior to posting.
> 
> Anyway, I built the new version, btw., why can't you just build the
> RPM from the tar? This is what I had to do on RHEL5:
> 
> 
> # tar xzf nagios-3.4.1.tar.gz
> # mv nagios nagios-3.4.1
> # cd nagios-3.4.1
> # vim nagios.spec
>change "datarootdir" to "datadir" in configure statement
> # cd ..
> # tar czf nagios-3.4.1.tar.gz nagios-3.4.1/
> # rpmbuild -tb nagios-3.4.1.tar.gz
> 
> Tada, build works.
> 
> 
> Back to the problem.
> Installed the update, doesn't help. On my sample host with 31 checks
> only 18 get submitted via Perfdata. Back to nagios-3.2.3 again and
> all 31 checks are processed. Please tell me if you need any more
> details, performance data template configuration or something like that.
> 

This is a slightly older bug about perfdata not being processed when
there is no perfdata. I'll see if I get time to take a look at it.

-- 
Andreas Ericsson   andreas.erics...@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

--
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] Querying nagios object information through command line

2012-05-16 Thread C. Bensend

> Is there a script or a module that can be called through a command line
> and can retrieve nagios object definition , host , service?
>
> I am thinking of calling from php program.
>
> I found that config.cgi has an ability of fetching the object definition
> but it seems that it returns html info.
>
> It would be helpful if someone can share their thoughts.

Livestatus can do this, and it's MUCH quicker/more lightweight/better
(IMHO) than NDOUtils.

http://mathias-kettner.de/checkmk_livestatus.html

Benny


-- 
"The problem with quotes on the internet is that it's very hard to
verify their authenticity."   -- Abraham Lincoln



--
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] Querying nagios object information through command line

2012-05-16 Thread RichTea
On Wed, May 16, 2012 at 9:14 AM, Yu Watanabe wrote:

> Hi all!
>
> Is there a script or a module that can be called through a command line
> and can retrieve nagios object definition , host , service?
>
> I am thinking of calling from php program.
>
> I found that config.cgi has an ability of fetching the object definition
> but it seems that it returns html info.
>
> It would be helpful if someone can share their thoughts.
>
>  I only know of "Nagios::Config" It is in CPAN.

We were using some awk for parsing the config too but I can not find that
right now, i do not remember it being "too" complicated though.

Ritchie,
--
<-- http://23.me.uk/2 -->
<--Time flies like an arrow; fruit flies like a banana.  -->



>
> Thanks,
> Yu
>
>
>
> --
> 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] Querying nagios object information through command line

2012-05-16 Thread Yu Watanabe
Hi all!

Is there a script or a module that can be called through a command line
and can retrieve nagios object definition , host , service?

I am thinking of calling from php program. 

I found that config.cgi has an ability of fetching the object definition
but it seems that it returns html info.

It would be helpful if someone can share their thoughts.

Thanks,
Yu


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