toleolu wrote:
That's not a Windows versus Linux statement mind you, just trying to understand how all this works.
No problem, we do not engage in religious wars here, so all is well. We save that for time-honored arguments like Batman vs. Spiderman, Romans vs. Gauls, and Acetone vs. Mineral Spirits.
Well, I digress. Digest what myself and Trevor posted, and we can pick this up on Monday. If you have access to the ticket system, it may be beneficial to open a ticket so you can get a small demo of installing and configuring the linux agent during a remote session.
Enjoy the weekend!
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.
I moved all of the checks in the ARG2 to ARG1 and it's working. I put the comment symbols back in the nrpe.cfg file, and ran the command per abrist's suggestion and that worked as well.
So the big question is, how did those commands get placed in the ARG2 line? I didn't do that.My other question is, now that's it's working, I want to wipe it and do it again. What's the best way to remove nrpe from the Linux laptop? yum remove?
You do not have the required permissions to view the files attached to this post.
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
Nope, as the agent was installed from source. I would just install right over the top as it will overwrite all the files anyways.
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.
Kind of a slow day today, so I wiped that Linux laptop and reinstalled CentOS 6 just to make sure there weren't any bunny tracks still lingering from the old config, downloaded and installed nrpe, ran the Linux Server config wizard, and it did the same thing with the can't parse argument and putting those check commands in $ARG2$. Cut and pasted the line from ARG2 to ARG1 and like before, it started working.
Anyone have any ideas about what's causing this? We only have a handful of Linux Servers so it's no big deal to go in and edit these commands after setting up the host, just wondering if this is a glitch, or is something else going on.
Mahalo
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
I believe the core of your issue is that your check_nrpe command has been changed from the default.
When the wizards run and create services, they assume the commands they are using have not been changed. Because your command has been changed, this has caused your issues.
Don't recall doing anything with that, but that doesn't mean it didn't happen somewhere along the line. The check_nrpe_ssl doesn't have a $ARG2$ in it either.
Do I need a -w in there somewhere? Like -w $ARG1$ -c $ARG2$.
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
I discovered that I need a lot of arguments when using complex monitoring plugins and to have a nice organisation in the UI.
Of course 2 also works but one needs to cramp everything into $ARG2$. Then there is the added hassle of scrolling to see the whole list.
You do not have the required permissions to view the files attached to this post.
Agreed, it can be nice to have those extra arguments available at a moment's notice. That is something you may want to take a look at doing down the line. If you were unable to find it, you can find your command definitions at CCM > Commands. You also have the ability to copy them, so if you want to slightly alter a single command's hard-coded line for a few checks, you may want to copy it out and name it similarly (not the case here).