Performance Graphing in XI - Weird Output

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
matt.uebel
Posts: 84
Joined: Thu Jun 20, 2013 7:43 am

Performance Graphing in XI - Weird Output

Post by matt.uebel »

We are working on implementing Performance Graphing for a custom plugin that checks all filesystems on a host, and sends NRDS output as such:

All filesystems OK | /=52%;90;95;0;100 /boot=20%;90;95;0;100 /home=20%;90;95;0;100 /log=4%;90;95;0;100 /usr=95%;90;95;0;100 /var=55%;90;95;0;100 /var/lib/libvirt=1%;90;95;0;100 /var/log/audit=9%;90;95;0;100

This actually seems to work, and we can see graphs showing up in the XI interface for the service. However, in each case the system ends up naming the filesystem _var_lib_libvirt instead of /var/lib/libvirt

What could be replacing the "/"s with "_"?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Performance Graphing in XI - Weird Output

Post by sreinhardt »

/ is considered an illegal character that is replaced with _ to avoid issues with creating files and causing vulnerabilities in the xi system. There really isn't too much you can do about it. allowing those characters would cause some pretty severe issues within the filesystem.
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.
matt.uebel
Posts: 84
Joined: Thu Jun 20, 2013 7:43 am

Re: Performance Graphing in XI - Weird Output

Post by matt.uebel »

is there an escape character we could use?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Performance Graphing in XI - Weird Output

Post by sreinhardt »

I waited a little bit, just to confirm, and there is not a way to escape those, for the reasons mentioned above.
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.
Locked