Search found 29 matches

by skol
Tue Nov 04, 2014 4:37 pm
Forum: Open Source Nagios Projects
Topic: glob service_perfdata_file
Replies: 9
Views: 1598

Re: glob service_perfdata_file

Ok. Thanks for the help!
by skol
Mon Nov 03, 2014 6:13 pm
Forum: Open Source Nagios Projects
Topic: glob service_perfdata_file
Replies: 9
Views: 1598

Re: glob service_perfdata_file

we're not running any processing on it - we just specify the filename (service_perfdata_file) and template. I'm trying to rotate the files without additional scripts (service_perfdata_file_processing_command) or use logrotate.
by skol
Mon Nov 03, 2014 6:00 pm
Forum: Open Source Nagios Projects
Topic: glob service_perfdata_file
Replies: 9
Views: 1598

Re: glob service_perfdata_file

This is just for opensource core 4.x nagios - perfdata logs just grow continuously.
by skol
Mon Nov 03, 2014 3:59 pm
Forum: Open Source Nagios Projects
Topic: glob service_perfdata_file
Replies: 9
Views: 1598

Re: glob service_perfdata_file

It just writes to the literal file: /nagios/var/service_perfdata.log.$TIMET$ - looks like it isn't expanding it properly.. any ideas?
by skol
Mon Nov 03, 2014 2:12 pm
Forum: Open Source Nagios Projects
Topic: glob service_perfdata_file
Replies: 9
Views: 1598

glob service_perfdata_file

Is it possible to glob or otherwise dynamically set the service_perfdata_file? service_perfdata_file=/nagios/var/service_perfdata.log.$TIMET$ I was hoping that would work, or something similar. Any ideas? Background: I have a process which keeps state of where its at in the perfdata.log, and I'm try...
by skol
Fri Jun 27, 2014 11:59 am
Forum: Open Source Nagios Projects
Topic: Whats the best way to verify temporary configs?
Replies: 1
Views: 441

Whats the best way to verify temporary configs?

Hey guys, I have a process which drops newly generated configs on a nagios box, but I want to verify them before copying them over and restarting. I figured copying them to /tmp/configs/$date/nagios.cfg then running nagios -v /tmp/configs/$date/nagios.cfg would do the trick.. but that doesn't work -...
by skol
Fri Dec 06, 2013 11:36 am
Forum: Open Source Nagios Projects
Topic: Is there a line length limitation for custom object vars?
Replies: 6
Views: 2313

Re: Is there a line length limitation for custom object vars

abrist wrote:I can ask one of our core devs tomorrow. Have you noticed truncation, or does it just fail?
I just wanted to make sure what I'm trying to do won't hit a limitation.
by skol
Thu Dec 05, 2013 2:47 pm
Forum: Open Source Nagios Projects
Topic: Is there a line length limitation for custom object vars?
Replies: 6
Views: 2313

Re: Is there a line length limitation for custom object vars

No, it would look like this (except much, much longer). My previous example was not very good. define service { use template host_name hostname _service_fields -m oid=.1.3.6.1... -a 10.1.1.1 -c mycommunity something=yes description=some_desc hostname=myhostname field=value field=value field=value fi...
by skol
Thu Dec 05, 2013 2:14 pm
Forum: Open Source Nagios Projects
Topic: Is there a line length limitation for custom object vars?
Replies: 6
Views: 2313

Is there a line length limitation for custom object vars?

Hey guys, is there a line length limitation for custom macros in nagios XI and nagios core? i.e: define service { use template host_name hostname _interface_description intdesc register 1 } For example if _interface_description was a combination of 100 keyword=value pairs. Thanks!