Passing arguments to Powershell

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Passing arguments to Powershell

Post by abrist »

The issue with altering the rrdtool create template is that the change will be system wide, effecting all new rrds. You would have to create the check, and then re-create the rrd with the desired settings and overwrite the original with the custom rrd. You will have to do this for each rrd that needs a different configuration.

You can disable perfdata on checks through the ccm. Open up the service in the ccm, go to the check settings tab and bullet "off" for the "Process Perf Data" option.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Passing arguments to Powershell

Post by WillemDH »

Ok, Found how to disable perfdata for some services. Tx.

About the rrdtool template. I have no idea how to start this. Do you mean i have to edit the .rrd file for the particular service? Reinhardt was talking about a template that could be used for many services?
Nagios XI 5.8.1
https://outsideit.net
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Passing arguments to Powershell

Post by sreinhardt »

You would not be able to modify, but instead completely create a new rrd and replace the one that would be created by default. Unfortunately it was pointed out to me that it is not possible to define a separate rrd creation template, as the other templates all reference a single one. Thankfully, it should be a fairly simple set of commands to create and replace the existing rrd. Let me setup some commands, and I will post back with some for you to try.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Passing arguments to Powershell

Post by WillemDH »

Hello,

Did you manage to find some information about how to do this? Some of my graphs are still empty becasue the schedule time is set too long.

Grtz
Nagios XI 5.8.1
https://outsideit.net
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Passing arguments to Powershell

Post by sreinhardt »

I know we discussed it, myself and a dev, and agreed it's less than ideal but can be done. I honestly forgot what all needed to be done. So I set a reminder for myself to speak with him again in the morning and get you a full report. Sorry for the delay!
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Passing arguments to Powershell

Post by WillemDH »

Any news about this?
Nagios XI 5.8.1
https://outsideit.net
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Passing arguments to Powershell

Post by sreinhardt »

short answer, no not really. Longer answer, we are testing it and finding a good solution. It is and has been discussed, and apparently is a bit more tricky than any of us figured for a single(set of) rrd file.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Passing arguments to Powershell

Post by WillemDH »

Ok, I'll patiently wait for you guys to come uo with some solution. :) Tx for the update!
Nagios XI 5.8.1
https://outsideit.net
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Passing arguments to Powershell

Post by sreinhardt »

ya, I'm sorry that its taking so long, as if this was a one off rrd it would be less of an issue, however since we are presuming based on past discussions that its going to be something you wish to use for an extended amount of time and for several different rrds at the least. So a full on guide\way to do it properly is what we're aiming for!
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Passing arguments to Powershell

Post by WillemDH »

We have indeed several kind of checks that are running only once a day, that would need some kind of graph to visualise growth over different timeperiods.
Nagios XI 5.8.1
https://outsideit.net
Locked