Article 59HH9 Shell script to generate nagios data for nrdp transfer

Shell script to generate nagios data for nrdp transfer

by
eashleyfl
from LinuxQuestions.org on (#59HH9)
Greetings all,

I'm new to the world of Nagios. I used Big Brother forever and rather than restart it after some system rebuilds, I thought I'd catch up to the modern world. My configurations won't run nagiosxi so I'm using core + plugins + nrdp on a Fedora32 virtual host. Nagiosxi on Linux is very particular about the platforms and the eval VMware virtual host won't run on any of my Fedora boxes or my Win10 systems. (It's VMware that won't run on my Win10 hosts, actually, as it says that I have Hyper-V installed when I don't. M$ always creates some Hyper-V network resources that VMware seems to be seeing and assuming the Hyper-V is installed. I don't run virtual hosts under Windows and haven't since WinNT 4.x.)

After wasting a couple of days falling down the nrpe, nsca, nscp and nrds rabbit holes, I finally found nrdp. Now I want to use a bash script to collect all the quivalent data as running nagios core on each of my Fedora hosts. I don't see any value of running nagios core on each machine when I can collect the same data with a cron executed script and transfer it all in a single XML result set with nrdp.

I've found the check_linux_stats.pl script and it is the basics of what I'm after, but I would rather use bash to directly collect the data since I will generate a single xml file containing all the core stats then transfer the file. It's a lot of churning to spin up the perl script 8 or 10 times when all the data is available without using perl. I can grep and awk my way to such a script, but I thought I'd ask if anyone has one that I can start from. I also see the nagiosxi plugins for cpu stats, file, services and procs.

Thanks in advance,
Ericlatest?d=yIl2AUoC8zA latest?i=7bcVAPqrBLQ:ChkgImgF8jg:F7zBnMy latest?i=7bcVAPqrBLQ:ChkgImgF8jg:V_sGLiP latest?d=qj6IDK7rITs latest?i=7bcVAPqrBLQ:ChkgImgF8jg:gIN9vFw7bcVAPqrBLQ
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments